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:

  1. Look up the row in the ADM_UserAccessPolicyTable with the PolicyId value being Param_policyId.

  2. If the row is not found, return NULL. Otherwise initialize Result_accessPolicy with UserAccessPolicy.

  3. Assign Result_accessPolicy.PolicyId with PolicyId of the row.

  4. Copy the UserAccessPolicyDetails into Result_accessPolicy.

  5. Call GetPolicyMapEntriesForPolicyId procedure of ADM_PolicyMapTable with Param_policyId as the parameter. Assign the Result_policyEntries to Result_accessPolicy.PolicyDefinition.

  6. Return Result_accessPolicy as the output of the procedure.