DBA Data[Home] [Help]

APPS.PA_CONTROL_API_PUB dependencies on PA_CI_SECURITY_PKG

Line 1482: if 'T' <> Pa_ci_security_pkg.check_update_access (l_ci_id) then

1478: close Check_Valid_CI_TRANS_ID;
1479: END IF;
1480:
1481: /*Security check for the CI_ID UpdateAccess*/
1482: if 'T' <> Pa_ci_security_pkg.check_update_access (l_ci_id) then
1483: PA_UTILS.add_Message( p_app_short_name => 'PA'
1484: ,p_msg_name => 'PA_CI_NO_UPDATE_ACCESS');
1485: x_return_status := FND_API.G_RET_STS_ERROR;
1486: if l_debug_mode = 'Y' then

Line 1852: check_s := pa_ci_security_pkg.check_update_access(p_ci_id);

1848: to have project authority or to have open actions and status controls are satisfied.
1849: The page will not be updateable when the current status has approval workflow attached*/
1850:
1851: /*Security check for the CI_ID UpdateAccess*/
1852: check_s := pa_ci_security_pkg.check_update_access(p_ci_id);
1853:
1854: if 'T' <> check_s then
1855: PA_UTILS.add_Message( p_app_short_name => 'PA'
1856: ,p_msg_name => 'PA_CI_NO_UPDATE_ACCESS');

Line 5129: check_s := pa_ci_security_pkg.check_item_owner_project_auth(l_ci_id);

5125: end if;
5126:
5127:
5128: /*Security check - whether the cancel button is existing in the UI*/
5129: check_s := pa_ci_security_pkg.check_item_owner_project_auth(l_ci_id);
5130:
5131: if check_s <> 'T' then
5132: PA_UTILS.add_Message( p_app_short_name => 'PA'
5133: ,p_msg_name => 'PA_CI_NO_UPDATE_ACCESS');

Line 5808: IF (PA_CI_SECURITY_PKG.Check_View_Access (p_Ci_Id, l_ProjectId, l_StatusCode, l_CiTypeClassCode) = 'T') THEN

5804:
5805: -- Adding of Comments is only allowed on a Control Item if
5806: -- 1. The User has View access on the Control Item, ie
5807: -- he would be able to see the Control Item on the UI.
5808: IF (PA_CI_SECURITY_PKG.Check_View_Access (p_Ci_Id, l_ProjectId, l_StatusCode, l_CiTypeClassCode) = 'T') THEN
5809: -- For each Comment in the passed in array, insert it.
5810: if l_debug_mode = 'Y' then
5811: pa_debug.g_err_stage:= 'Before Calling PA_CI_ACTIONS_PUB.Add_CI_Comment in a for loop';
5812: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

Line 6048: l_UpdateAccess := PA_CI_SECURITY_PKG.Check_Update_Access (p_Ci_Id);

6044: -- Adding of Related Items is only allowed on a Control Item if
6045: -- 1. The User has Update access on the Control Item.
6046: -- 2. Update is allowed on the Control Item in this particular
6047: -- status.
6048: l_UpdateAccess := PA_CI_SECURITY_PKG.Check_Update_Access (p_Ci_Id);
6049: l_UpdateAllowed := PA_CONTROL_ITEMS_UTILS.CheckCIActionAllowed ('CONTROL_ITEM', l_StatusCode, 'CONTROL_ITEM_ALLOW_UPDATE', p_Ci_Id);
6050: IF (l_UpdateAllowed = 'Y' AND l_UpdateAccess = 'T') THEN
6051: -- For each Related Item in the passed in array, insert it.
6052: FOR i IN 1..p_Related_Items_Tbl.COUNT LOOP

Line 6377: l_UpdateAccess := PA_CI_SECURITY_PKG.Check_Update_Access (p_Ci_Id);

6373: -- 1. The User has Update access on the Control Item.
6374: -- 2. Update is allowed on the Control Item in this particular
6375: -- status.
6376: l_UpdateAllowed := PA_CONTROL_ITEMS_UTILS.CheckCIActionAllowed ('CONTROL_ITEM', l_StatusCode, 'CONTROL_ITEM_ALLOW_UPDATE', p_Ci_Id);
6377: l_UpdateAccess := PA_CI_SECURITY_PKG.Check_Update_Access (p_Ci_Id);
6378: IF (l_UpdateAllowed = 'Y' AND l_UpdateAccess = 'T') THEN
6379: if l_debug_mode = 'Y' then
6380: pa_debug.g_err_stage:= 'Before Calling PA_CONTROL_ITEMS_PVT.Delete_Related_Item';
6381: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

Line 6874: l_check_update_access := pa_ci_security_pkg.check_update_access(p_ci_id);

6870:
6871: /* Check if the user can update the item. This requires the user to be owner or to have project authority or
6872: to have open UPDATE actions and status controls are satisfied. */
6873:
6874: l_check_update_access := pa_ci_security_pkg.check_update_access(p_ci_id);
6875:
6876: IF (l_check_update_access = 'F') THEN
6877:
6878: PA_UTILS.ADD_MESSAGE('PA', 'PA_CI_NO_UPDATE_ACCESS');

Line 6884: pa_debug.write(l_module, 'After call to pa_ci_security_pkg.check_update_access', l_debug_level3);

6880:
6881: END IF;
6882:
6883: IF l_debug_mode = 'Y' THEN
6884: pa_debug.write(l_module, 'After call to pa_ci_security_pkg.check_update_access', l_debug_level3);
6885: END IF;
6886:
6887: /* Check for the status control: check whether the action CONTROL_ITEM_ALLOW_UPDATE is allowed on the current status of the issue. */
6888:

Line 7060: l_chgowner_allowed := pa_ci_security_pkg.check_change_owner_access(p_ci_id);

7056: ,p_msg_name => 'PA_CI_CHANGE_OWNER_INVALID');
7057: x_return_status := 'E';
7058:
7059: ELSIF (l_owner_id <> l_curr_owner_id) then
7060: l_chgowner_allowed := pa_ci_security_pkg.check_change_owner_access(p_ci_id);
7061: IF (l_chgowner_allowed <> 'T') then
7062: PA_UTILS.Add_Message( p_app_short_name => 'PA'
7063: ,p_msg_name => 'PA_CI_OWNER_CHG_NOT_ALLOWED');
7064: x_return_status := 'E';

Line 7066: l_to_owner_allowed := pa_ci_security_pkg.is_to_owner_allowed(p_ci_id, l_owner_id);

7062: PA_UTILS.Add_Message( p_app_short_name => 'PA'
7063: ,p_msg_name => 'PA_CI_OWNER_CHG_NOT_ALLOWED');
7064: x_return_status := 'E';
7065: else
7066: l_to_owner_allowed := pa_ci_security_pkg.is_to_owner_allowed(p_ci_id, l_owner_id);
7067: if (l_to_owner_allowed <> 'T') then
7068: PA_UTILS.Add_Message( p_app_short_name => 'PA'
7069: ,p_msg_name => 'PA_CI_TO_OWNER_NOT_ALLOWED');
7070: x_return_status := 'E';

Line 8135: l_check_update_access := pa_ci_security_pkg.check_update_access(p_ci_id);

8131:
8132: /* Check if the user can update the item. This requires the user to be owner or to have project authority or
8133: to have open UPDATE actions and status controls are satisfied. */
8134:
8135: l_check_update_access := pa_ci_security_pkg.check_update_access(p_ci_id);
8136:
8137: IF (l_check_update_access = 'F') THEN
8138:
8139: PA_UTILS.ADD_MESSAGE('PA', 'PA_CI_NO_UPDATE_ACCESS');

Line 8145: pa_debug.write(l_module, 'After call to pa_ci_security_pkg.check_update_access', l_debug_level3);

8141:
8142: END IF;
8143:
8144: IF l_debug_mode = 'Y' THEN
8145: pa_debug.write(l_module, 'After call to pa_ci_security_pkg.check_update_access', l_debug_level3);
8146: END IF;
8147:
8148: /* Check for the status control: check whether the action CONTROL_ITEM_ALLOW_UPDATE is allowed on the current status of the issue. */
8149:

Line 8309: l_chgowner_allowed := pa_ci_security_pkg.check_change_owner_access(p_ci_id);

8305: ,p_msg_name => 'PA_CI_CHANGE_OWNER_INVALID');
8306: x_return_status := 'E';
8307:
8308: ELSIF (l_owner_id <> l_curr_owner_id) then
8309: l_chgowner_allowed := pa_ci_security_pkg.check_change_owner_access(p_ci_id);
8310: IF (l_chgowner_allowed <> 'T') then
8311: PA_UTILS.Add_Message( p_app_short_name => 'PA'
8312: ,p_msg_name => 'PA_CI_OWNER_CHG_NOT_ALLOWED');
8313: x_return_status := 'E';

Line 8315: l_to_owner_allowed := pa_ci_security_pkg.is_to_owner_allowed(p_ci_id, l_owner_id);

8311: PA_UTILS.Add_Message( p_app_short_name => 'PA'
8312: ,p_msg_name => 'PA_CI_OWNER_CHG_NOT_ALLOWED');
8313: x_return_status := 'E';
8314: else
8315: l_to_owner_allowed := pa_ci_security_pkg.is_to_owner_allowed(p_ci_id, l_owner_id);
8316: if (l_to_owner_allowed <> 'T') then
8317: PA_UTILS.Add_Message( p_app_short_name => 'PA'
8318: ,p_msg_name => 'PA_CI_TO_OWNER_NOT_ALLOWED');
8319: x_return_status := 'E';

Line 9391: l_check_update_access := pa_ci_security_pkg.check_update_access(p_ci_id);

9387:
9388: /* Check if the user can update the item. This requires the user to be owner or to have project authority or
9389: to have open UPDATE actions and status controls are satisfied. */
9390:
9391: l_check_update_access := pa_ci_security_pkg.check_update_access(p_ci_id);
9392:
9393: IF (l_check_update_access = 'F') THEN
9394:
9395: PA_UTILS.ADD_MESSAGE('PA', 'PA_CI_NO_UPDATE_ACCESS');

Line 9401: pa_debug.write(l_module, 'After call to pa_ci_security_pkg.check_update_access', l_debug_level3);

9397:
9398: END IF;
9399:
9400: IF l_debug_mode = 'Y' THEN
9401: pa_debug.write(l_module, 'After call to pa_ci_security_pkg.check_update_access', l_debug_level3);
9402: END IF;
9403:
9404: /* Check for the status control: check whether the action CONTROL_ITEM_ALLOW_UPDATE is allowed on the current status of the issue. */
9405:

Line 9566: l_chgowner_allowed := pa_ci_security_pkg.check_change_owner_access(p_ci_id);

9562: ,p_msg_name => 'PA_CI_CHANGE_OWNER_INVALID');
9563: x_return_status := 'E';
9564:
9565: ELSIF (l_owner_id <> l_curr_owner_id) then
9566: l_chgowner_allowed := pa_ci_security_pkg.check_change_owner_access(p_ci_id);
9567: IF (l_chgowner_allowed <> 'T') then
9568: PA_UTILS.Add_Message( p_app_short_name => 'PA'
9569: ,p_msg_name => 'PA_CI_OWNER_CHG_NOT_ALLOWED');
9570: x_return_status := 'E';

Line 9572: l_to_owner_allowed := pa_ci_security_pkg.is_to_owner_allowed(p_ci_id, l_owner_id);

9568: PA_UTILS.Add_Message( p_app_short_name => 'PA'
9569: ,p_msg_name => 'PA_CI_OWNER_CHG_NOT_ALLOWED');
9570: x_return_status := 'E';
9571: else
9572: l_to_owner_allowed := pa_ci_security_pkg.is_to_owner_allowed(p_ci_id, l_owner_id);
9573: if (l_to_owner_allowed <> 'T') then
9574: PA_UTILS.Add_Message( p_app_short_name => 'PA'
9575: ,p_msg_name => 'PA_CI_TO_OWNER_NOT_ALLOWED');
9576: x_return_status := 'E';