3.1.1.1.41.2.1 GetPolicyById
The GetPolicyById procedure can be used to retrieve a specific UserAccessPolicy (section 2.2.4.453) for the specified record identifier.
The following input parameter is used.
Param_policyId: This is a 64-bit signed integer that specifies the PolicyId of the UserAccessPolicy that is being requested.
The following is the output parameter from this procedure.
Result_accessPolicy: Of type UserAccessPolicy.
The following processing steps are involved:
Look up the row in the ADM_UserAccessPolicyTable with the PolicyId value being Param_policyId.
If the row is not found, return NULL. Otherwise initialize Result_accessPolicy with UserAccessPolicy.
Assign Result_accessPolicy.PolicyId with PolicyId of the row.
Copy the UserAccessPolicyDetails into Result_accessPolicy.
Call GetPolicyMapEntriesForPolicyId procedure of ADM_PolicyMapTable with Param_policyId as the parameter. Assign the Result_policyEntries to Result_accessPolicy.PolicyDefinition.
Return Result_accessPolicy as the output of the procedure.