Search Results get_instance_set_id
Overview
APPS.JTF_CAL_GRANTS_PVT is a private (PVT-classified) PL/SQL package body in the Oracle E-Business Suite CRM Foundation / Task Manager module. Its responsibility is to manage the granting and revoking of menu-based function security for Oracle Calendar and Task Manager resources. The package acts as a thin abstraction layer over the FND_GRANTS security framework, translating resource-level authorization requests into underlying fnd_grants_pkg calls that create and maintain rows in the FND security grant tables. In the 12.1.1 and 12.2.2 releases it is one of the supporting packages underpinning resource-level task access control, and it is referenced by three other packages in the EBS schema.
Key Procedures and Functions
The ETRM metadata records five documented program units in the package:
- UPDATEGRANTS — refreshes or synchronizes existing function/menu grants for calendar resources, aligning the FND_GRANTS records with current resource-task authorization data.
- REVOKEGRANTS — removes grants previously issued for a resource, effectively withdrawing access to the associated menu functions.
- INVOKEGRANTS — applies a set of grants to a resource, invoking the underlying
fnd_grants_pkg.grant_functionAPI to create the grant entries. - GET_GRANT_GUID — returns the globally unique identifier (GUID) associated with a specific grant, allowing callers to reference the grant for later update or revocation.
- HAS_ACCESS_LEVEL — evaluates whether a given resource possesses a required access level, serving as the runtime authorization check used by calendar and task security logic.
Source excerpts from the same family of code also show helper functions such as get_username and get_instance_set_id, which resolve a resource's login name from JTF_RS_RESOURCE_EXTNS and look up the FND_OBJECT_INSTANCE_SETS identifier used to scope the grant set. The get_instance_set_id function is frequently referenced when diagnosing grants that fail to resolve to the correct instance set.
Tables Accessed
- FND_GRANTS — the primary store of grant records created, updated, or revoked by the package.
- FND_OBJECT_INSTANCE_SETS — supplies the instance-set identifier used to scope grants to the correct object instance set.
- FND_MENUS and FND_OBJECTS — resolve menu names and object definitions referenced during grant creation.
- FND_USER — resolves user information associated with resources.
- JTF_RS_RESOURCE_EXTNS — maps resource identifiers to user names and related resource attributes.
- PLITBLM — the FND PL/SQL index-by table type used by the grants API for bulk processing.
Usage Notes
JTF_CAL_GRANTS_PVT is typically invoked indirectly. Oracle Forms-based Calendar and Task Manager screens, as well as concurrent programs that provision or reconcile resource security, call this package to create, refresh, or remove function grants. The package follows the FND_API convention — procedures accept api_version, return success/error code outputs, and raise FND_API.G_EXC_UNEXPECTED_ERROR when the underlying grants call does not return 'T' for success. Because it is classified PVT, it is not part of the public API surface, and customizations should not call it directly; the supported integration point remains fnd_grants_pkg. Troubleshooting efforts centered on get_instance_set_id usually trace back to mismatches between the resource task instance set and the records in FND_OBJECT_INSTANCE_SETS.
-
PACKAGE BODY: APPS.JTF_CAL_GRANTS_PVT
12.1.1
-
PACKAGE BODY: APPS.JTF_CAL_GRANTS_PVT
12.2.2
-
PACKAGE BODY: APPS.PA_SECURITY_PVT
12.2.2
-
PACKAGE BODY: APPS.PA_SECURITY_PVT
12.1.1
-
APPS.PA_SECURITY_PVT SQL Statements
12.2.2
-
APPS.PA_SECURITY_PVT SQL Statements
12.1.1
-
PACKAGE: APPS.PA_SECURITY_PVT
12.1.1
-
PACKAGE: APPS.PA_SECURITY_PVT
12.2.2
-
PACKAGE BODY: APPS.CZ_SECURITY_PVT
12.1.1
-
APPS.CZ_SECURITY_PVT dependencies on FND_GRANTS
12.1.1
-
PACKAGE BODY: APPS.CZ_SECURITY_PVT
12.2.2
-
APPS.CZ_SECURITY_PVT dependencies on FND_GRANTS
12.2.2
-
APPS.PA_SECURITY_PVT dependencies on FND_GLOBAL
12.1.1
-
APPS.PA_SECURITY_PVT dependencies on FND_PROFILE
12.1.1
-
APPS.JTF_CAL_GRANTS_PVT dependencies on FND_MESSAGE
12.2.2
-
APPS.PA_SECURITY_PVT dependencies on PA_ROLE_STATUS_MENU_UTILS
12.2.2
-
APPS.PA_SECURITY_PVT dependencies on FND_OBJECT_INSTANCE_SETS
12.2.2
-
APPS.PA_SECURITY_PVT dependencies on FND_GLOBAL
12.2.2
-
APPS.PA_SECURITY_PVT dependencies on FND_GRANTS
12.2.2
-
APPS.JTF_CAL_GRANTS_PVT dependencies on FND_MESSAGE
12.1.1
-
APPS.PA_SECURITY_PVT dependencies on PA_ROLE_STATUS_MENU_UTILS
12.1.1
-
APPS.PA_SECURITY_PVT dependencies on FND_PROFILE
12.2.2
-
APPS.PA_SECURITY_PVT dependencies on FND_GRANTS
12.1.1
-
APPS.PA_SECURITY_PVT dependencies on FND_OBJECT_INSTANCE_SETS
12.1.1
-
APPS.PA_SECURITY_PVT dependencies on FND_USER
12.1.1
-
APPS.JTF_CAL_GRANTS_PVT dependencies on JTF_TASK_SECURITY_PVT
12.1.1
-
APPS.JTF_CAL_GRANTS_PVT dependencies on JTF_TASK_SECURITY_PVT
12.2.2
-
APPS.PA_SECURITY_PVT dependencies on FND_USER
12.2.2
-
APPS.CZ_SECURITY_PVT dependencies on CZ_SECURITY_PVT
12.2.2
-
APPS.CZ_SECURITY_PVT dependencies on CZ_SECURITY_PVT
12.1.1
-
APPS.JTF_CAL_GRANTS_PVT dependencies on FND_GRANTS
12.1.1
-
APPS.JTF_CAL_GRANTS_PVT dependencies on FND_GRANTS
12.2.2
-
APPS.JTF_CAL_GRANTS_PVT dependencies on FND_MSG_PUB
12.1.1
-
APPS.JTF_CAL_GRANTS_PVT dependencies on FND_MSG_PUB
12.2.2
-
APPS.JTF_CAL_GRANTS_PVT dependencies on FND_API
12.1.1
-
APPS.JTF_CAL_GRANTS_PVT dependencies on FND_API
12.2.2
-
APPS.PA_SECURITY_PVT dependencies on PA_DEBUG
12.1.1
-
APPS.PA_SECURITY_PVT dependencies on PA_DEBUG
12.2.2