org.alfresco.repo.domain.hibernate
Class DbAccessControlListMemberImpl

java.lang.Object
  extended by org.alfresco.repo.domain.hibernate.DbAccessControlListMemberImpl
All Implemented Interfaces:
java.io.Serializable, DbAccessControlListMember

public class DbAccessControlListMemberImpl
extends java.lang.Object
implements DbAccessControlListMember, java.io.Serializable

Hibernate support to store acl-acxe entries

See Also:
Serialized Form

Constructor Summary
DbAccessControlListMemberImpl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static DbAccessControlListMember find(org.hibernate.Session session, DbAccessControlList acl, DbAccessControlEntry ace, int position)
           
 DbAccessControlEntry getAccessControlEntry()
          Get the ACE included in the ACL
 DbAccessControlList getAccessControlList()
          Get the ACL to which the ACE belongs.
 java.lang.Long getId()
          Get the ID for the membership entry
 int getPosition()
          Get the position group for this member in the ACL 0 - implies the ACE is om the object >0 - that it is inhertied in some way The lower values are checked first so take precidence.
 java.lang.Long getVersion()
          Get the version for this membership entry
 int hashCode()
           
 void setAccessControlEntry(DbAccessControlEntry ace)
          Set the ACE
 void setAccessControlList(DbAccessControlList acl)
          Set the ACL
 void setPosition(int position)
          Set the position for the ACL-ACE relationship
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DbAccessControlListMemberImpl

public DbAccessControlListMemberImpl()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getAccessControlEntry

public DbAccessControlEntry getAccessControlEntry()
Description copied from interface: DbAccessControlListMember
Get the ACE included in the ACL

Specified by:
getAccessControlEntry in interface DbAccessControlListMember
Returns:
- the ace id

getAccessControlList

public DbAccessControlList getAccessControlList()
Description copied from interface: DbAccessControlListMember
Get the ACL to which the ACE belongs.

Specified by:
getAccessControlList in interface DbAccessControlListMember
Returns:
- the acl id

getId

public java.lang.Long getId()
Description copied from interface: DbAccessControlListMember
Get the ID for the membership entry

Specified by:
getId in interface DbAccessControlListMember
Returns:
- the id

getPosition

public int getPosition()
Description copied from interface: DbAccessControlListMember
Get the position group for this member in the ACL 0 - implies the ACE is om the object >0 - that it is inhertied in some way The lower values are checked first so take precidence.

Specified by:
getPosition in interface DbAccessControlListMember
Returns:
- the position of the ace in the acl

getVersion

public java.lang.Long getVersion()
Description copied from interface: DbAccessControlListMember
Get the version for this membership entry

Specified by:
getVersion in interface DbAccessControlListMember
Returns:
- the version

setAccessControlEntry

public void setAccessControlEntry(DbAccessControlEntry ace)
Description copied from interface: DbAccessControlListMember
Set the ACE

Specified by:
setAccessControlEntry in interface DbAccessControlListMember

setAccessControlList

public void setAccessControlList(DbAccessControlList acl)
Description copied from interface: DbAccessControlListMember
Set the ACL

Specified by:
setAccessControlList in interface DbAccessControlListMember

setPosition

public void setPosition(int position)
Description copied from interface: DbAccessControlListMember
Set the position for the ACL-ACE relationship

Specified by:
setPosition in interface DbAccessControlListMember

find

public static DbAccessControlListMember find(org.hibernate.Session session,
                                             DbAccessControlList acl,
                                             DbAccessControlEntry ace,
                                             int position)
Parameters:
session -
acl - => can be null - implies all entries that match ace
ace - => can be null - implies all entries that match acl
position - => -1 is all positions Note: both acl and ace may not be null;
Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.