|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.domain.hibernate.LifecycleAdapter
org.alfresco.repo.domain.hibernate.DbAccessControlListImpl
public class DbAccessControlListImpl
The hibernate persisted class for node permission entries.
| Field Summary |
|---|
| Fields inherited from interface org.hibernate.classic.Lifecycle |
|---|
NO_VETO, VETO |
| Constructor Summary | |
|---|---|
DbAccessControlListImpl()
|
|
| Method Summary | |
|---|---|
static DbAccessControlList |
createLayeredAcl(java.lang.Long indirectedAcl)
|
static DbAccessControlList |
find(org.hibernate.Session session)
|
DbAccessControlListChangeSet |
getAclChangeSet()
Get the change set |
java.lang.String |
getAclId()
Get the ACL ID |
ACLType |
getAclType()
Get the type for this ACL |
long |
getAclVersion()
Get the ACL version |
DbAccessControlList |
getCopy(java.lang.Long parentAcl,
ACLCopyMode mode)
|
java.lang.Long |
getId()
Get the long key |
java.lang.Long |
getInheritedAclId()
Get the ACL inherited from nodes which have this ACL |
boolean |
getInherits()
Get inheritance behaviour |
java.lang.Long |
getInheritsFrom()
Get the ACL from which this one inherits |
boolean |
getRequiresVersion()
|
java.lang.Long |
getVersion()
|
boolean |
isLatest()
Is this the latest version of the acl identified by the acl id string? |
boolean |
isVersioned()
Is this ACL versioned - if not there will be no old versions of the ACL and the long id will remain unchanged. |
boolean |
onDelete(org.hibernate.Session session)
Support cascade delete of ACLs from DM nodes (which cascade delete the ACL) |
void |
setAclChangeSet(DbAccessControlListChangeSet aclChangeSet)
Set the change set |
static void |
setAclDaoComponent(AclDaoComponent aclDaoComponent)
|
void |
setAclId(java.lang.String aclId)
Set the string ACL ID (not the auto generated long) |
void |
setAclType(ACLType aclType)
Set the ACL Type |
void |
setAclVersion(long aclVersion)
Set the ACL version (not the optimistic version used by hibernate) |
void |
setInheritedAclId(java.lang.Long inheritedAclId)
Set the ACL that should be set when inheriting from this one. |
void |
setInherits(boolean inherits)
Set inheritance behaviour |
void |
setInheritsFrom(java.lang.Long id)
Set the ACL from which this one inherits |
void |
setLatest(boolean latest)
Set if this ACL is the latest version of the ACL as identified by getAclId() |
void |
setRequiresVersion(boolean requiresVersion)
|
void |
setVersioned(boolean versioned)
Set if this ACL is versioned on write |
java.lang.String |
toString()
|
| Methods inherited from class org.alfresco.repo.domain.hibernate.LifecycleAdapter |
|---|
getSession, onLoad, onSave, onUpdate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DbAccessControlListImpl()
| Method Detail |
|---|
public static void setAclDaoComponent(AclDaoComponent aclDaoComponent)
public java.lang.String toString()
toString in class java.lang.Object
public boolean onDelete(org.hibernate.Session session)
throws org.hibernate.CallbackException
onDelete in interface org.hibernate.classic.LifecycleonDelete in class LifecycleAdapterorg.hibernate.CallbackExceptionpublic java.lang.Long getId()
DbAccessControlList
getId in interface DbAccessControlListpublic java.lang.Long getVersion()
getVersion in interface DbAccessControlListpublic boolean getInherits()
DbAccessControlList
getInherits in interface DbAccessControlListpublic void setInherits(boolean inherits)
DbAccessControlList
setInherits in interface DbAccessControlListinherits - true to set the permissions to inheritpublic java.lang.String getAclId()
DbAccessControlList
getAclId in interface DbAccessControlListpublic void setAclId(java.lang.String aclId)
DbAccessControlList
setAclId in interface DbAccessControlListpublic ACLType getAclType()
DbAccessControlList
getAclType in interface DbAccessControlListpublic void setAclType(ACLType aclType)
DbAccessControlList
setAclType in interface DbAccessControlListpublic long getAclVersion()
DbAccessControlList
getAclVersion in interface DbAccessControlListpublic void setAclVersion(long aclVersion)
DbAccessControlList
setAclVersion in interface DbAccessControlListpublic java.lang.Long getInheritedAclId()
DbAccessControlList
getInheritedAclId in interface DbAccessControlListpublic void setInheritedAclId(java.lang.Long inheritedAclId)
DbAccessControlList
setInheritedAclId in interface DbAccessControlListpublic boolean isLatest()
DbAccessControlList
isLatest in interface DbAccessControlListpublic void setLatest(boolean latest)
DbAccessControlList
setLatest in interface DbAccessControlListpublic boolean isVersioned()
DbAccessControlList
isVersioned in interface DbAccessControlListpublic void setVersioned(boolean versioned)
DbAccessControlList
setVersioned in interface DbAccessControlListpublic DbAccessControlListChangeSet getAclChangeSet()
DbAccessControlList
getAclChangeSet in interface DbAccessControlListpublic void setAclChangeSet(DbAccessControlListChangeSet aclChangeSet)
DbAccessControlList
setAclChangeSet in interface DbAccessControlListpublic static DbAccessControlList find(org.hibernate.Session session)
public java.lang.Long getInheritsFrom()
DbAccessControlList
getInheritsFrom in interface DbAccessControlListpublic void setInheritsFrom(java.lang.Long id)
DbAccessControlList
setInheritsFrom in interface DbAccessControlList
public DbAccessControlList getCopy(java.lang.Long parentAcl,
ACLCopyMode mode)
getCopy in interface DbAccessControlListpublic static DbAccessControlList createLayeredAcl(java.lang.Long indirectedAcl)
public boolean getRequiresVersion()
getRequiresVersion in interface DbAccessControlListpublic void setRequiresVersion(boolean requiresVersion)
setRequiresVersion in interface DbAccessControlList
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||