|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.domain.hibernate.AbstractPermissionsDaoComponentImpl
public abstract class AbstractPermissionsDaoComponentImpl
Common support for permissions DAO Sub classes determine how ACLs are cascaded to children and how changes may COW/version children as ACLs are pushed down. TODO: remove the protocol to DAO mapping
Field Summary | |
---|---|
protected AclDaoComponent |
aclDaoComponent
|
protected static boolean |
INHERIT_PERMISSIONS_DEFAULT
|
Method Summary | |
---|---|
void |
beforeCommit()
NO-OP |
protected abstract org.alfresco.repo.domain.hibernate.AbstractPermissionsDaoComponentImpl.CreationReport |
createAccessControlList(NodeRef nodeRef,
boolean inherit,
DbAccessControlList existing)
|
void |
deletePermission(NodeRef nodeRef,
java.lang.String authority,
PermissionReference permission)
Deletes all permission entries (access control list entries) that match the given criteria. |
void |
deletePermission(StoreRef storeRef,
java.lang.String authority,
PermissionReference permission)
Remove part of a permission mask from a store |
void |
deletePermissions(NodeRef nodeRef,
java.lang.String authority)
Delete permission entries for the given node and authority |
void |
deletePermissions(StoreRef storeRef)
Remove all permission masks from a store |
void |
deletePermissions(StoreRef storeRef,
java.lang.String authority)
Delete entries from a permission mask on a store by authority |
void |
deletePermissions(java.lang.String authority)
Remove all permissions for the specified authority |
boolean |
equals(java.lang.Object obj)
Checks equality by type and uuid |
void |
flush()
Just flushes the session |
protected DbAccessControlList |
getAccessControlList(NodeRef nodeRef)
|
AccessControlListProperties |
getAccessControlListProperties(NodeRef nodeRef)
Get the properties for the access control list |
protected AccessControlListDAO |
getACLDAO(NodeRef nodeRef)
Helper to choose appropriate NodeService for the given NodeRef |
AclDaoComponent |
getAclDaoComponent()
Get the ACL DAO component |
boolean |
getInheritParentPermissions(NodeRef nodeRef)
Return the inheritance behaviour for permissions on a given node. |
protected org.alfresco.repo.domain.hibernate.AbstractPermissionsDaoComponentImpl.CreationReport |
getMutableAccessControlList(NodeRef nodeRef)
|
NodePermissionEntry |
getPermissions(NodeRef nodeRef)
Get the permissions that have been set on a given node. |
NodePermissionEntry |
getPermissions(StoreRef storeRef)
Get permission masks set on a store |
int |
hashCode()
|
boolean |
isDirty()
Does this Session contain any changes which must be synchronized with the store? |
void |
setAclDaoComponent(AclDaoComponent aclDaoComponent)
Set the ACL DAO component |
void |
setDefaultACLDAO(AccessControlListDAO defaultACLDAO)
Set the default DAO |
void |
setInheritParentPermissions(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(NodeRef nodeRef,
java.lang.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(StoreRef storeRef,
java.lang.String authority,
PermissionReference permission,
boolean allow)
Set part of a permission mask on a store. |
void |
setProtocolToACLDAO(java.util.Map map)
Set the mapping of protocol to DAO |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.repo.security.permissions.impl.PermissionsDaoComponent |
---|
deletePermissions |
Field Detail |
---|
protected static final boolean INHERIT_PERMISSIONS_DEFAULT
protected AclDaoComponent aclDaoComponent
Method Detail |
---|
public AclDaoComponent getAclDaoComponent()
public void setAclDaoComponent(AclDaoComponent aclDaoComponent)
aclDaoComponent
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
AbstractPermissionsDaoComponentImpl.uuid
public boolean isDirty()
isDirty
in interface TransactionalDao
public void flush()
flush
in interface TransactionalDao
public void beforeCommit()
beforeCommit
in interface TransactionalDao
public void setProtocolToACLDAO(java.util.Map map)
map
- public void setDefaultACLDAO(AccessControlListDAO defaultACLDAO)
defaultACLDAO
- protected AccessControlListDAO getACLDAO(NodeRef nodeRef)
nodeRef
- The NodeRef to dispatch from.
protected DbAccessControlList getAccessControlList(NodeRef nodeRef)
protected org.alfresco.repo.domain.hibernate.AbstractPermissionsDaoComponentImpl.CreationReport getMutableAccessControlList(NodeRef nodeRef)
public NodePermissionEntry getPermissions(NodeRef nodeRef)
PermissionsDaoComponent
getPermissions
in interface PermissionsDaoComponent
public boolean getInheritParentPermissions(NodeRef nodeRef)
PermissionsDaoComponent
getInheritParentPermissions
in interface PermissionsDaoComponent
public void deletePermissions(java.lang.String authority)
PermissionsDaoComponent
deletePermissions
in interface PermissionsDaoComponent
public void deletePermissions(NodeRef nodeRef, java.lang.String authority)
PermissionsDaoComponent
deletePermissions
in interface PermissionsDaoComponent
nodeRef
- the node to query againstauthority
- the specific authority to query againstpublic void deletePermission(NodeRef nodeRef, java.lang.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(NodeRef nodeRef, java.lang.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(NodeRef nodeRef, boolean inheritParentPermissions)
PermissionsDaoComponent
setInheritParentPermissions
in interface PermissionsDaoComponent
public void deletePermission(StoreRef storeRef, java.lang.String authority, PermissionReference permission)
PermissionsDaoComponent
deletePermission
in interface PermissionsDaoComponent
public void deletePermissions(StoreRef storeRef, java.lang.String authority)
PermissionsDaoComponent
deletePermissions
in interface PermissionsDaoComponent
public void deletePermissions(StoreRef storeRef)
PermissionsDaoComponent
deletePermissions
in interface PermissionsDaoComponent
public void setPermission(StoreRef storeRef, java.lang.String authority, PermissionReference permission, boolean allow)
PermissionsDaoComponent
setPermission
in interface PermissionsDaoComponent
public NodePermissionEntry getPermissions(StoreRef storeRef)
PermissionsDaoComponent
getPermissions
in interface PermissionsDaoComponent
public AccessControlListProperties getAccessControlListProperties(NodeRef nodeRef)
PermissionsDaoComponent
getAccessControlListProperties
in interface PermissionsDaoComponent
protected abstract org.alfresco.repo.domain.hibernate.AbstractPermissionsDaoComponentImpl.CreationReport createAccessControlList(NodeRef nodeRef, boolean inherit, DbAccessControlList existing)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |