public class DefaultPermissionProvider extends Object implements PermissionProviderLocal
Constructor and Description |
---|
DefaultPermissionProvider() |
Modifier and Type | Method and Description |
---|---|
String[] |
getAliasPermissions(String perm) |
String[] |
getPermissionGroups(String perm) |
String[] |
getPermissions() |
String[] |
getSubPermissions(String perm) |
List<UserVisiblePermission> |
getUserVisiblePermissionDescriptors() |
List<UserVisiblePermission> |
getUserVisiblePermissionDescriptors(String typeName) |
void |
registerDescriptor(PermissionDescriptor descriptor) |
void |
registerDescriptor(PermissionVisibilityDescriptor descriptor) |
void |
unregisterDescriptor(PermissionDescriptor descriptor) |
void |
unregisterDescriptor(PermissionVisibilityDescriptor descriptor) |
public List<UserVisiblePermission> getUserVisiblePermissionDescriptors(String typeName) throws ClientException
getUserVisiblePermissionDescriptors
in interface PermissionProvider
typeName
- the name of a Core type of the document whose ACP is to be edited by the userClientException
public List<UserVisiblePermission> getUserVisiblePermissionDescriptors() throws ClientException
getUserVisiblePermissionDescriptors
in interface PermissionProvider
ClientException
public String[] getSubPermissions(String perm) throws ClientException
getSubPermissions
in interface PermissionProvider
perm
- the name of a registered compound permissionClientException
- if 'perm' is not a registered permissionpublic String[] getAliasPermissions(String perm) throws ClientException
getAliasPermissions
in interface PermissionProvider
perm
- the name of a registered permissionClientException
- if 'perm' is not a registered permissionpublic String[] getPermissionGroups(String perm)
getPermissionGroups
in interface PermissionProvider
perm
- the name of a registered permissions that belongs to permission groups (aka compound permissions)public String[] getPermissions()
getPermissions
in interface PermissionProvider
public void registerDescriptor(PermissionDescriptor descriptor)
registerDescriptor
in interface PermissionProviderLocal
public void unregisterDescriptor(PermissionDescriptor descriptor)
unregisterDescriptor
in interface PermissionProviderLocal
public void registerDescriptor(PermissionVisibilityDescriptor descriptor)
registerDescriptor
in interface PermissionProviderLocal
public void unregisterDescriptor(PermissionVisibilityDescriptor descriptor)
unregisterDescriptor
in interface PermissionProviderLocal
Copyright © 2015 Nuxeo SA. All rights reserved.