[TIBCO.EMS .NET Admin client library 6.3 documentation]
Assembly: TIBCO.EMS.ADMIN (in TIBCO.EMS.ADMIN.dll)
Get user permissions based on the flags set.
Namespace:
TIBCO.EMS.ADMINAssembly: TIBCO.EMS.ADMIN (in TIBCO.EMS.ADMIN.dll)
Syntax
public Object[] GetPermissions( UserInfo target, int flags ) |
Public Function GetPermissions ( _ target As UserInfo, _ flags As Integer _ ) As Object() |
public: array<Object^>^ GetPermissions( UserInfo^ target, int flags ) |
Parameters
- target
- Type: TIBCO.EMS.ADMIN..::.UserInfo
the userinfo object
- flags
- Type: System..::.Int32
the flags, based on which the different permissions are returned
Return Value
ACL entries for specified target object as defined by the flags, Array elements are be either ACLEntry, AdminACLEntry objects or both.
Remarks
- If no flags are specified i.e flags == 0, then all the permissions for the user are returned.
- If flags == PERMISSIONS_ALL, then all the permissions are returned for the specified user, (i.e direct, inhertied i.e dest (user and admin) and other admin).
- If flags == PERMISSIONS_ALL_DEST, then all the destination permissions for the user are returned, both direct and indirect (i.e inherited from groups).
- If flags == PERMISSIONS_ALL_ADMIN, then all direct and inherited admin permissions are returned.
- If flags == PERMISSIONS_DIRECT, then all direct destination permissions (user and admin) are returned (i.e the one directly assigned to the user).
- If flags == PERMISSIONS_DIRECT_DEST all direct destination permissions for the user are returned.
- If flags == PERMISSIONS_DIRECT_ADMIN, then all direct admin permissions are returned (i.e the ones directly assigned to the user).
- NOTE: If arbitrary combinations of flags are chosen then the supersed'ing flag is chosen. e.g flags = PERMISSIONS_ALL | PERMISSIONS_ALL_DEST here the ALL superseds ALL_DEST flag, so all permissions are returned.
NOTE: Inherited permissions cannot be modified (i.e removed)
Exceptions
Exception | Condition |
---|---|
TIBCO.EMS.ADMIN..::.AdminException | if not authorized or an error occurred. |