public abstract class AbstractPermissionsDaoComponentImpl extends Object implements PermissionsDaoComponent
Modifier and Type | Field and Description |
---|---|
protected AclDAO |
aclDaoComponent |
protected static boolean |
INHERIT_PERMISSIONS_DEFAULT |
Modifier and Type | Method and Description |
---|---|
protected abstract org.alfresco.repo.domain.permissions.AbstractPermissionsDaoComponentImpl.CreationReport |
createAccessControlList(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean inherit,
Acl existing) |
void |
deletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String authority,
PermissionReference permission)
Deletes all permission entries (access control list entries) that match the given criteria.
|
void |
deletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
String authority,
PermissionReference permission)
Remove part of a permission mask from a store
|
void |
deletePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String authority)
Delete permission entries for the given node and authority
|
void |
deletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
Remove all permission masks from a store
|
void |
deletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef,
String authority)
Delete entries from a permission mask on a store by authority
|
void |
deletePermissions(String authority)
Remove all permissions for the specified authority
|
boolean |
equals(Object obj)
Checks equality by type and uuid
|
Set<org.alfresco.service.cmr.repository.NodeRef> |
findNodeByPermission(String authority,
PermissionReference permission,
boolean allow) |
protected Acl |
getAccessControlList(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
AccessControlListProperties |
getAccessControlListProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the properties for the access control list
|
protected AccessControlListDAO |
getACLDAO(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Helper to choose appropriate NodeService for the given NodeRef
|
Map<org.alfresco.service.cmr.repository.NodeRef,Set<org.alfresco.service.cmr.security.AccessPermission>> |
getAllSetPermissions(String authority) |
boolean |
getInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Return the inheritance behaviour for permissions on a given node.
|
protected org.alfresco.repo.domain.permissions.AbstractPermissionsDaoComponentImpl.CreationReport |
getMutableAccessControlList(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
NodePermissionEntry |
getPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get the permissions that have been set on a given node.
|
NodePermissionEntry |
getPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
Get permission masks set on a store
|
int |
hashCode() |
void |
setAclDAO(AclDAO aclDaoComponent)
Set the ACL DAO component
|
void |
setDefaultACLDAO(AccessControlListDAO defaultACLDAO)
Set the default DAO
|
void |
setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean inheritParentPermissions)
Set the inheritance behaviour for permissions on a given node.
|
void |
setPermission(NodePermissionEntry nodePermissionEntry)
Create a persisted node permission entry given a template object from which to copy.
|
void |
setPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String authority,
PermissionReference permission,
boolean allow)
Set a permission on a node.
|
void |
setPermission(PermissionEntry permissionEntry)
Create a persisted permission entry given and other representation of a permission entry.
|
void |
setPermission(org.alfresco.service.cmr.repository.StoreRef storeRef,
String authority,
PermissionReference permission,
boolean allow)
Set part of a permission mask on a store.
|
void |
setProtocolToACLDAO(Map<String,AccessControlListDAO> map)
Set the mapping of protocol to DAO
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
deletePermissions
protected static final boolean INHERIT_PERMISSIONS_DEFAULT
protected AclDAO aclDaoComponent
public void setAclDAO(AclDAO aclDaoComponent)
aclDaoComponent
- AclDAOpublic boolean equals(Object obj)
public void setProtocolToACLDAO(Map<String,AccessControlListDAO> map)
public void setDefaultACLDAO(AccessControlListDAO defaultACLDAO)
defaultACLDAO
- AccessControlListDAOprotected AccessControlListDAO getACLDAO(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- The NodeRef to dispatch from.protected Acl getAccessControlList(org.alfresco.service.cmr.repository.NodeRef nodeRef)
protected org.alfresco.repo.domain.permissions.AbstractPermissionsDaoComponentImpl.CreationReport getMutableAccessControlList(org.alfresco.service.cmr.repository.NodeRef nodeRef)
public NodePermissionEntry getPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
PermissionsDaoComponent
getPermissions
in interface PermissionsDaoComponent
public Map<org.alfresco.service.cmr.repository.NodeRef,Set<org.alfresco.service.cmr.security.AccessPermission>> getAllSetPermissions(String authority)
public Set<org.alfresco.service.cmr.repository.NodeRef> findNodeByPermission(String authority, PermissionReference permission, boolean allow)
public boolean getInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef)
PermissionsDaoComponent
getInheritParentPermissions
in interface PermissionsDaoComponent
public void deletePermissions(String authority)
PermissionsDaoComponent
deletePermissions
in interface PermissionsDaoComponent
public void deletePermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef, String authority)
PermissionsDaoComponent
deletePermissions
in interface PermissionsDaoComponent
nodeRef
- the node to query againstauthority
- the specific authority to query againstpublic void deletePermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, String authority, PermissionReference permission)
deletePermission
in interface PermissionsDaoComponent
nodeRef
- the node with the access control listauthority
- the specific authority to look forpermission
- the permission to look forpublic void setPermission(org.alfresco.service.cmr.repository.NodeRef nodeRef, String authority, PermissionReference permission, boolean allow)
PermissionsDaoComponent
setPermission
in interface PermissionsDaoComponent
public void setPermission(PermissionEntry permissionEntry)
PermissionsDaoComponent
setPermission
in interface PermissionsDaoComponent
public void setPermission(NodePermissionEntry nodePermissionEntry)
PermissionsDaoComponent
setPermission
in interface PermissionsDaoComponent
public void setInheritParentPermissions(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean inheritParentPermissions)
PermissionsDaoComponent
setInheritParentPermissions
in interface PermissionsDaoComponent
public void deletePermission(org.alfresco.service.cmr.repository.StoreRef storeRef, String authority, PermissionReference permission)
PermissionsDaoComponent
deletePermission
in interface PermissionsDaoComponent
public void deletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef, String authority)
PermissionsDaoComponent
deletePermissions
in interface PermissionsDaoComponent
public void deletePermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
PermissionsDaoComponent
deletePermissions
in interface PermissionsDaoComponent
public void setPermission(org.alfresco.service.cmr.repository.StoreRef storeRef, String authority, PermissionReference permission, boolean allow)
PermissionsDaoComponent
setPermission
in interface PermissionsDaoComponent
public NodePermissionEntry getPermissions(org.alfresco.service.cmr.repository.StoreRef storeRef)
PermissionsDaoComponent
getPermissions
in interface PermissionsDaoComponent
public AccessControlListProperties getAccessControlListProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef)
PermissionsDaoComponent
getAccessControlListProperties
in interface PermissionsDaoComponent
protected abstract org.alfresco.repo.domain.permissions.AbstractPermissionsDaoComponentImpl.CreationReport createAccessControlList(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean inherit, Acl existing)
Copyright © 2005–2017 Alfresco Software. All rights reserved.