1: Package Body IRC_DOCUMENT_API as
2: /* $Header: iridoapi.pkb 120.3.12010000.2 2008/08/05 10:48:24 ubhat ship $ */
3: --
4: -- Package Variables
5: --
2: /* $Header: iridoapi.pkb 120.3.12010000.2 2008/08/05 10:48:24 ubhat ship $ */
3: --
4: -- Package Variables
5: --
6: g_package varchar2(33) := 'IRC_DOCUMENT_API.';
7: g_full_mode varchar2(30) := 'FULL';
8: g_online_mode varchar2(30) := 'ONLINE';
9: g_none_mode varchar(30) :='NONE';
10: --
929: If csr_doc_exists%isopen
930: then
931: close csr_doc_exists;
932: End if;
933: if(fnd_log.test(fnd_log.level_error,'per.irc_document_api.process_document')) then
934: hr_utility.log_at_error_level('per'
935: ,'irc_document_api.process_document'
936: ,'unable to process'
937: ,dbms_utility.format_error_stack);
931: close csr_doc_exists;
932: End if;
933: if(fnd_log.test(fnd_log.level_error,'per.irc_document_api.process_document')) then
934: hr_utility.log_at_error_level('per'
935: ,'irc_document_api.process_document'
936: ,'unable to process'
937: ,dbms_utility.format_error_stack);
938: end if;
939: fnd_message.set_name('PER', 'IRC_UNABLE_TO_INDEX_DOC');
995: fetch csr_doc_type into l_file_name;
996: if(csr_doc_type%found) then
997: l_type := lower(substr(l_file_name,- 4));
998: if(l_type = '.pdf') then
999: ame_util.runtimeexception('IRC_DOCUMENT_API','get_html_preview',-9999,'Adding the customizations');
1000: l_output_clob := '
1058:
1059: return l_output_clob;
1060: exception
1061: when others then
1062: if(fnd_log.test(fnd_log.level_error,'per.irc_document_api.get_html_preview')) then
1063: hr_utility.log_at_error_level('per'
1064: ,'irc_document_api.get_html_preview'
1065: ,'unable to preview'
1066: ,dbms_utility.format_error_stack);
1060: exception
1061: when others then
1062: if(fnd_log.test(fnd_log.level_error,'per.irc_document_api.get_html_preview')) then
1063: hr_utility.log_at_error_level('per'
1064: ,'irc_document_api.get_html_preview'
1065: ,'unable to preview'
1066: ,dbms_utility.format_error_stack);
1067: end if;
1068: hr_utility.log_at_error_level('per','get_html_preview','unable to preview'
1113:
1114: End is_internet_applicant;
1115:
1116:
1117: end IRC_DOCUMENT_API;