|
|||||||||
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.Lifecycle
onDelete
in class LifecycleAdapter
org.hibernate.CallbackException
public java.lang.Long getId()
DbAccessControlList
getId
in interface DbAccessControlList
public java.lang.Long getVersion()
getVersion
in interface DbAccessControlList
public boolean getInherits()
DbAccessControlList
getInherits
in interface DbAccessControlList
public void setInherits(boolean inherits)
DbAccessControlList
setInherits
in interface DbAccessControlList
inherits
- true to set the permissions to inheritpublic java.lang.String getAclId()
DbAccessControlList
getAclId
in interface DbAccessControlList
public void setAclId(java.lang.String aclId)
DbAccessControlList
setAclId
in interface DbAccessControlList
public ACLType getAclType()
DbAccessControlList
getAclType
in interface DbAccessControlList
public void setAclType(ACLType aclType)
DbAccessControlList
setAclType
in interface DbAccessControlList
public long getAclVersion()
DbAccessControlList
getAclVersion
in interface DbAccessControlList
public void setAclVersion(long aclVersion)
DbAccessControlList
setAclVersion
in interface DbAccessControlList
public java.lang.Long getInheritedAclId()
DbAccessControlList
getInheritedAclId
in interface DbAccessControlList
public void setInheritedAclId(java.lang.Long inheritedAclId)
DbAccessControlList
setInheritedAclId
in interface DbAccessControlList
public boolean isLatest()
DbAccessControlList
isLatest
in interface DbAccessControlList
public void setLatest(boolean latest)
DbAccessControlList
setLatest
in interface DbAccessControlList
public boolean isVersioned()
DbAccessControlList
isVersioned
in interface DbAccessControlList
public void setVersioned(boolean versioned)
DbAccessControlList
setVersioned
in interface DbAccessControlList
public DbAccessControlListChangeSet getAclChangeSet()
DbAccessControlList
getAclChangeSet
in interface DbAccessControlList
public void setAclChangeSet(DbAccessControlListChangeSet aclChangeSet)
DbAccessControlList
setAclChangeSet
in interface DbAccessControlList
public static DbAccessControlList find(org.hibernate.Session session)
public java.lang.Long getInheritsFrom()
DbAccessControlList
getInheritsFrom
in interface DbAccessControlList
public void setInheritsFrom(java.lang.Long id)
DbAccessControlList
setInheritsFrom
in interface DbAccessControlList
public DbAccessControlList getCopy(java.lang.Long parentAcl, ACLCopyMode mode)
getCopy
in interface DbAccessControlList
public static DbAccessControlList createLayeredAcl(java.lang.Long indirectedAcl)
public boolean getRequiresVersion()
getRequiresVersion
in interface DbAccessControlList
public void setRequiresVersion(boolean requiresVersion)
setRequiresVersion
in interface DbAccessControlList
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |