This is an example of getting the List of PermissionInfoInterface instances for a single IdentityInterface.
try
{
MetadataInterface object; // any Services-level MetadataInterface object type will work here (your code must fill this in)
AuthorizationUtilInterface authUtil = object.getAuthorizationUtil();
IdentityInterface identity; // Some IdentityInterface object (probably from the List returned by Example 2.
List <String>permissions = null; // Indicate to get all applicable Permissions for the object
List <PermissionInfoInterface>permInfoList = authUtil.getAuthorizations(identity, permissions);
}
catch (ServiceException e)
{
e.printStackTrace();
}
catch (RemoteException e)
{
e.printStackTrace();
}