public List < Permission > getUserPermission ( String userName ) { ACL acl = getServiceDirectoryClient ( ) . getACL ( AuthScheme . DIRECTORY , userName ) ; int permissionId = 0 ; if ( acl != null ) { permissionId = acl . getPermission ( ) ; } return PermissionUtil . id2Permissions ( permissionId ) ; }
Get the user permission .