DBA Data[Home] [Help]

APPS.HR_SECURITY_INTERNAL dependencies on HR_SECURITY

Line 1: Package Body HR_SECURITY_INTERNAL as

1: Package Body HR_SECURITY_INTERNAL as
2: /* $Header: pesecbsi.pkb 120.24.12020000.4 2013/03/05 06:33:05 swrajapa ship $ */
3:
4: --
5: -- Stores details of what security permission have been cached for a

Line 21: g_PACKAGE CONSTANT VARCHAR2(23) := 'hr_security_internal.';

17:
18: --
19: -- Package Private Constants
20: --
21: g_PACKAGE CONSTANT VARCHAR2(23) := 'hr_security_internal.';
22:
23: --
24: -- Package Private Variables
25: --

Line 117: hr_security.add_person(p_person_id);

113: and ppl.person_id = p_person_id);
114: --
115: hr_utility.set_location(l_proc, 20);
116: --
117: hr_security.add_person(p_person_id);
118: --
119: hr_utility.set_location('Leaving:'|| l_proc, 30);
120: --
121: end;

Line 188: hr_security.add_person(p_person_id);

184: and ppl.person_id = p_person_id);
185: --
186: hr_utility.set_location(l_proc, 20);
187: --
188: hr_security.add_person(p_person_id);
189: --
190: hr_utility.set_location(' Leaving:'||l_proc, 30);
191: exception
192: when NO_DATA_FOUND then

Line 214: hr_security.remove_person(p_person_id);

210: and security_profile_id is not null;
211: --
212: hr_utility.set_location(l_proc, 20);
213: --
214: hr_security.remove_person(p_person_id);
215: --
216: hr_utility.set_location(' Leaving:'||l_proc, 30);
217: exception
218: when NO_DATA_FOUND then

Line 527: null,:l_true,hr_security_internal.evaluate_custom(

523: end if;
524: --
525: l_inst_str := ' select sec.security_profile_id '; --
526: l_comm_str := ' decode(sec.custom_restriction_flag,:l_Restrict,:l_true,:l_U,:l_FALSE,
527: null,:l_true,hr_security_internal.evaluate_custom(
528: :p_assignment_id , sec.restriction_text,
529: to_date(to_char(:p_effective_date, ''dd/mm/yyyy'')
530: , ''dd/mm/yyyy''))) = :l_true and not exists (
531: select 1 from per_person_list ppl

Line 2620: ' hr_security_internal.evaluate_custom(

2616: and sec.view_all_flag = :l_Restrict and ';
2617: --
2618: l_exec_str := l_inst_str||l_from_str||' where '||
2619: l_bggr_str||l_asgt_str||l_cond_str||
2620: ' hr_security_internal.evaluate_custom(
2621: :p_assignment_id,sec.restriction_text,
2622: to_date(to_char(:p_effective_date, ''dd/mm/yyyy'')
2623: , ''dd/mm/yyyy'')) = :l_true and not exists (
2624: select 1 from per_person_list ppl

Line 2814: hr_security.add_person(l_person_id);

2810: if g_debug then
2811: hr_utility.set_location(l_proc, 710);
2812: end if;
2813: --
2814: hr_security.add_person(l_person_id);
2815: --
2816: if g_debug then
2817: hr_utility.set_location(' Leaving:'||l_proc, 720);
2818: end if;

Line 3827: AND hr_security_internal.show_organization

3823: FROM hr_all_positions_f hapf
3824: WHERE hapf.position_id = p_position_id
3825: AND p_effective_date BETWEEN
3826: hapf.effective_start_date AND hapf.effective_end_date
3827: AND hr_security_internal.show_organization
3828: (hapf.organization_id) = 'TRUE';
3829:
3830: BEGIN
3831:

Line 3881: AND hr_security_internal.show_organization

3877: FROM hr_all_positions_f hapf
3878: WHERE hapf.position_id = p.subordinate_position_id
3879: AND p_effective_date BETWEEN
3880: hapf.effective_start_date AND hapf.effective_end_date
3881: AND hr_security_internal.show_organization
3882: (hapf.organization_id) = 'TRUE');
3883:
3884: --
3885: -- Get all the positions in the hierarchy given a top

Line 4271: open csr_rtm_candidates(hr_security.get_person_id);

4267: if g_dbg then op('Entering: '||l_proc, 1); end if;
4268: --
4269: if g_dbg then op(l_proc, 20); end if;
4270: --
4271: open csr_rtm_candidates(hr_security.get_person_id);
4272: fetch csr_rtm_candidates bulk collect into l_temp_per_tbl,l_temp_asg_tbl;
4273: close csr_rtm_candidates;
4274: --
4275: if l_temp_per_tbl.count > 0 then

Line 4662: 'hr_security_internal.show_organization(hr_asg.organization_id) = ''TRUE''';

4658: l_emp_str VARCHAR2(32) := 'hr_asg.assignment_type = ''E''';
4659: l_cwk_str VARCHAR2(32) := 'hr_asg.assignment_type = ''C''';
4660: l_apl_str VARCHAR2(32) := 'hr_asg.assignment_type = ''A''';
4661: l_org_str VARCHAR2(150) :=
4662: 'hr_security_internal.show_organization(hr_asg.organization_id) = ''TRUE''';
4663: l_pos_str VARCHAR2(150) :=
4664: '(hr_asg.position_id IS NULL OR hr_security_internal.show_position(hr_asg.position_id) = ''TRUE'')';
4665: l_pay_str VARCHAR2(150) :=
4666: '(hr_security_internal.show_payroll(hr_asg.payroll_id) = ''TRUE'')';

Line 4664: '(hr_asg.position_id IS NULL OR hr_security_internal.show_position(hr_asg.position_id) = ''TRUE'')';

4660: l_apl_str VARCHAR2(32) := 'hr_asg.assignment_type = ''A''';
4661: l_org_str VARCHAR2(150) :=
4662: 'hr_security_internal.show_organization(hr_asg.organization_id) = ''TRUE''';
4663: l_pos_str VARCHAR2(150) :=
4664: '(hr_asg.position_id IS NULL OR hr_security_internal.show_position(hr_asg.position_id) = ''TRUE'')';
4665: l_pay_str VARCHAR2(150) :=
4666: '(hr_security_internal.show_payroll(hr_asg.payroll_id) = ''TRUE'')';
4667: -- '(hr_asg.payroll_id IS NULL OR hr_security_internal.show_payroll(hr_asg.payroll_id) = ''TRUE'')'; -- Modified the statement for bug 11737636.
4668:

Line 4666: '(hr_security_internal.show_payroll(hr_asg.payroll_id) = ''TRUE'')';

4662: 'hr_security_internal.show_organization(hr_asg.organization_id) = ''TRUE''';
4663: l_pos_str VARCHAR2(150) :=
4664: '(hr_asg.position_id IS NULL OR hr_security_internal.show_position(hr_asg.position_id) = ''TRUE'')';
4665: l_pay_str VARCHAR2(150) :=
4666: '(hr_security_internal.show_payroll(hr_asg.payroll_id) = ''TRUE'')';
4667: -- '(hr_asg.payroll_id IS NULL OR hr_security_internal.show_payroll(hr_asg.payroll_id) = ''TRUE'')'; -- Modified the statement for bug 11737636.
4668:
4669: --- Bug # 12739699 ---
4670: l_paaf_name varchar2(30) := 'per_all_assignments_f';

Line 4667: -- '(hr_asg.payroll_id IS NULL OR hr_security_internal.show_payroll(hr_asg.payroll_id) = ''TRUE'')'; -- Modified the statement for bug 11737636.

4663: l_pos_str VARCHAR2(150) :=
4664: '(hr_asg.position_id IS NULL OR hr_security_internal.show_position(hr_asg.position_id) = ''TRUE'')';
4665: l_pay_str VARCHAR2(150) :=
4666: '(hr_security_internal.show_payroll(hr_asg.payroll_id) = ''TRUE'')';
4667: -- '(hr_asg.payroll_id IS NULL OR hr_security_internal.show_payroll(hr_asg.payroll_id) = ''TRUE'')'; -- Modified the statement for bug 11737636.
4668:
4669: --- Bug # 12739699 ---
4670: l_paaf_name varchar2(30) := 'per_all_assignments_f';
4671: --- Bug # 12739699 ---

Line 5128: IF (hr_security.g_IS_SSHR = 1) THEN

5124: END IF;
5125: ELSE
5126: /*-- SUPERVISOR SECURITY IS SET */
5127:
5128: IF (hr_security.g_IS_SSHR = 1) THEN
5129: l_supervisor_levels := 2;
5130: IF g_dbg THEN
5131: hr_utility.trace('Call made from SSHR - Supervisor Level - '||l_supervisor_levels);
5132: END IF;

Line 8015: if nvl(l_rtm_security,'N') ='Y' and hr_security.is_user_rtm then

8011:
8012: /* Check Enable RTM Security is 'Yes' and current user is
8013: an RTM in this context */
8014:
8015: if nvl(l_rtm_security,'N') ='Y' and hr_security.is_user_rtm then
8016: add_rtm_candidates_to_cache(p_sec_prof_rec);
8017: end if;
8018: --
8019: if p_update_static_lists and l_user_restriction then

Line 8300: if nvl(l_rtm_security,'N') ='Y' and hr_security.is_user_rtm then

8296:
8297: /* Check Enable RTM Security is 'Yes' and current user is
8298: an RTM in this context */
8299:
8300: if nvl(l_rtm_security,'N') ='Y' and hr_security.is_user_rtm then
8301: add_rtm_candidates_to_cache(p_sec_prof_rec);
8302: end if;
8303: --
8304: if p_update_static_lists and l_user_restriction then

Line 9283: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.DELETE_PER_FROM_SECURITY_LIST';

9279: PROCEDURE delete_per_from_security_list(P_PERSON_ID IN number)
9280: IS
9281: --
9282: -- bug fix 3760559. l_proc size increased to 80.
9283: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.DELETE_PER_FROM_SECURITY_LIST';
9284: begin
9285: hr_utility.set_location('Entering:'|| l_proc, 10);
9286: delete from per_person_list l
9287: where l.person_id = P_PERSON_ID;

Line 9301: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.ADD_ORG_TO_SECURITY_LIST';

9297: PROCEDURE add_org_to_security_list(p_security_profile_id in number,
9298: p_organization_id in number)
9299: IS
9300: --
9301: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.ADD_ORG_TO_SECURITY_LIST';
9302: --
9303: p_program_id number;
9304: p_request_id number;
9305: p_program_application_id number;

Line 9350: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.DELETE_ORG_FROM_SECURITY_LIST';

9346: -- ----------------------------------------------------------------------------
9347: PROCEDURE delete_org_from_security_list(P_Organization_Id in number)
9348: IS
9349: --
9350: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.DELETE_ORG_FROM_SECURITY_LIST';
9351: begin
9352: hr_utility.set_location('Entering:'|| l_proc, 10);
9353: DELETE FROM PER_ORGANIZATION_LIST
9354: WHERE organization_id = P_Organization_Id;

Line 9369: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.ADD_POS_TO_SECURITY_LIST';

9365: PROCEDURE add_pos_to_security_list(p_security_profile_id in number,
9366: p_position_id in number)
9367: IS
9368: --
9369: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.ADD_POS_TO_SECURITY_LIST';
9370: --
9371: begin
9372: --
9373: insert into per_position_list

Line 9387: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.DELETE_POS_FROM_SECURITY_LIST';

9383: -- ----------------------------------------------------------------------------
9384: PROCEDURE delete_pos_from_security_list(p_position_Id in number)
9385: IS
9386: --
9387: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.DELETE_POS_FROM_SECURITY_LIST';
9388: begin
9389: hr_utility.set_location('Entering:'|| l_proc, 10);
9390: DELETE FROM PER_POSITION_LIST
9391: WHERE position_id = p_position_Id;

Line 9403: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.DELETE_PAY_FROM_SECURITY_LIST';

9399: -- ----------------------------------------------------------------------------
9400: PROCEDURE delete_pay_from_security_list(p_payroll_id number)
9401: IS
9402: --
9403: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.DELETE_PAY_FROM_SECURITY_LIST';
9404: begin
9405: hr_utility.set_location('Entering:'|| l_proc, 10);
9406: DELETE FROM PAY_PAYROLL_LIST
9407: WHERE payroll_id = p_payroll_id;

Line 9421: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.POPULATE_ASG_PERF_TABLE';

9417: ,retcode OUT NOCOPY VARCHAR2
9418: ,p_table IN VARCHAR2)
9419: IS
9420: --
9421: l_proc varchar2(80) := 'HR_SECURITY_INTERNAL.POPULATE_ASG_PERF_TABLE';
9422: begin
9423: fnd_file.put_line(fnd_file.log,'==========================================');
9424: fnd_file.put_line(fnd_file.log,' Synchronize Security Performance Tables ');
9425: fnd_file.put_line(fnd_file.log,'==========================================');

Line 9458: END hr_security_internal;

9454: errbuf := errbuf||SQLERRM;
9455: END populate_asg_perf_table;
9456: --
9457:
9458: END hr_security_internal;