org.alfresco.repo.domain.hibernate
Class DbAccessControlEntryImpl

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

public class DbAccessControlEntryImpl
extends java.lang.Object
implements DbAccessControlEntry, java.io.Serializable

Persisted permission entries

See Also:
Serialized Form

Constructor Summary
DbAccessControlEntryImpl()
           
 
Method Summary
 void delete()
          Helper method to delete the instance and make sure that all inverse associations are properly maintained.
 boolean equals(java.lang.Object obj)
           
static DbAccessControlEntry find(org.hibernate.Session session, ACEType type, boolean allow, java.lang.String authority, DbPermissionKey permissionKey)
           
 ACEType getAceType()
          Get the ACE type
 DbAuthority getAuthority()
           
 DbAccessControlEntryContext getContext()
          Get the ACE context - may be null and may well mostly be null
 java.lang.Long getId()
           
 DbPermission getPermission()
           
 java.lang.Long getVersion()
           
 int hashCode()
           
 boolean isAllowed()
           
 void setAceType(ACEType aceType)
          Set the ACEType
 void setAllowed(boolean allowed)
          Set if this permission is allowed, otherwise it is denied.
 void setAuthority(DbAuthority recipient)
           
 void setContext(DbAccessControlEntryContext context)
          Set the ACE context
 void setPermission(DbPermission permissionReference)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DbAccessControlEntryImpl

public DbAccessControlEntryImpl()
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

getId

public java.lang.Long getId()
Specified by:
getId in interface DbAccessControlEntry
Returns:
Returns the identifier for this object

getVersion

public java.lang.Long getVersion()
Specified by:
getVersion in interface DbAccessControlEntry
Returns:
Returns the version number for optimistic locking

getPermission

public DbPermission getPermission()
Specified by:
getPermission in interface DbAccessControlEntry
Returns:
Returns the permission to which this entry applies

setPermission

public void setPermission(DbPermission permissionReference)
Specified by:
setPermission in interface DbAccessControlEntry
Parameters:
permissionReference - the permission to which the entry applies

getAuthority

public DbAuthority getAuthority()
Specified by:
getAuthority in interface DbAccessControlEntry
Returns:
Returns the authority to which this entry applies

setAuthority

public void setAuthority(DbAuthority recipient)
Specified by:
setAuthority in interface DbAccessControlEntry
Parameters:
recipient - the authority to which this entry applies

isAllowed

public boolean isAllowed()
Specified by:
isAllowed in interface DbAccessControlEntry
Returns:
Returns true if this permission is allowed

setAllowed

public void setAllowed(boolean allowed)
Description copied from interface: DbAccessControlEntry
Set if this permission is allowed, otherwise it is denied.

Specified by:
setAllowed in interface DbAccessControlEntry

getAceType

public ACEType getAceType()
Description copied from interface: DbAccessControlEntry
Get the ACE type

Specified by:
getAceType in interface DbAccessControlEntry
Returns:

setAceType

public void setAceType(ACEType aceType)
Description copied from interface: DbAccessControlEntry
Set the ACEType

Specified by:
setAceType in interface DbAccessControlEntry

getContext

public DbAccessControlEntryContext getContext()
Description copied from interface: DbAccessControlEntry
Get the ACE context - may be null and may well mostly be null

Specified by:
getContext in interface DbAccessControlEntry
Returns:

setContext

public void setContext(DbAccessControlEntryContext context)
Description copied from interface: DbAccessControlEntry
Set the ACE context

Specified by:
setContext in interface DbAccessControlEntry

delete

public void delete()
Description copied from interface: DbAccessControlEntry
Helper method to delete the instance and make sure that all inverse associations are properly maintained.

Specified by:
delete in interface DbAccessControlEntry

find

public static DbAccessControlEntry find(org.hibernate.Session session,
                                        ACEType type,
                                        boolean allow,
                                        java.lang.String authority,
                                        DbPermissionKey permissionKey)


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