|
|
To programmatically manage roles and permissions using the AuthorizationManagerService client web service API, perform the following tasks:
•
• Create a AuthorizationManagerServiceService object by using your proxy class’ constructor.To assign a role to a principal, invoke the AuthorizationManagerServiceService object’s assignRole method and pass the following values:
• A string object that contains the role identifier.
• An array of string objects containing the principal identifiers. In the example below, the principal identifier being used already exists in the system and is obtained by creating a DirectoryManagerServiceService object and invoking its findPrincipalsWithFilter method (see Managing Users and Groups for more information). Similarly, an existing role is found by invoking the AuthorizationManagerServiceClient object’s findRoles method.To determine which roles a principal has, there are several methods to choose from. As shown in the example below, you can invoke the AuthorizationManagerServiceClient object’s findRolesForPrincipal method and pass the principal’s identifier. That method returns an object[] through which you can iterate.To remove a role from a principal, invoke the AuthorizationManagerServiceService object’s unassignRole method and pass the following values:
• A string object that contains the role identifier.
• An array of string objects containing the principal identifiers.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/manageUsersManageRolesPerms.117.4.html