public class PermissionsManagerImpl extends Object implements PermissionsManager
Constructor and Description |
---|
PermissionsManagerImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
getClearExistingPermissions() |
boolean |
getInheritPermissions() |
Set<String> |
getOwnerPermissions() |
Map<String,Set<String>> |
getPermissions() |
Set<String> |
getUserPermissions() |
void |
setClearExistingPermissions(boolean clearExistingPermissions) |
void |
setInheritPermissions(boolean inheritPermissions) |
void |
setOwnableService(OwnableService ownableService) |
void |
setOwnerPermissions(Set<String> ownerPermissions) |
void |
setPermissions(Map<String,Set<String>> permissions) |
void |
setPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String owner,
String user)
Set the permission as defined on the given node
|
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setUserPermissions(Set<String> userPermissions) |
boolean |
validatePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String owner,
String user)
Validate that permissions are set on a node as defined.
|
public boolean getInheritPermissions()
public void setInheritPermissions(boolean inheritPermissions)
public boolean getClearExistingPermissions()
public void setClearExistingPermissions(boolean clearExistingPermissions)
public void setOwnableService(OwnableService ownableService)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef, String owner, String user)
PermissionsManager
setPermissions
in interface PermissionsManager
nodeRef
- - the nodeRefowner
- - which should be set as the owner of the node (if configured to be set)public boolean validatePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef, String owner, String user)
PermissionsManager
validatePermissions
in interface PermissionsManager
nodeRef
- NodeRefowner
- Stringuser
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.