org.alfresco.repo.domain.hibernate
Class DbPermissionImpl
java.lang.Object
org.alfresco.repo.domain.hibernate.DbPermissionImpl
- All Implemented Interfaces:
- java.io.Serializable, DbPermission
public class DbPermissionImpl
- extends java.lang.Object
- implements DbPermission, java.io.Serializable
The persisted class for permissions.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DbPermissionImpl
public DbPermissionImpl()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getTypeQName
public QName getTypeQName(QNameDAO qnameDAO)
- Description copied from interface:
DbPermission
- Convenience method to get the type QName of the permission
- Specified by:
getTypeQName
in interface DbPermission
- Parameters:
qnameDAO
- helper DAO
- Returns:
- the permission's type QName
getId
public java.lang.Long getId()
- Specified by:
getId
in interface DbPermission
- Returns:
- Returns the automatically assigned ID
getVersion
public java.lang.Long getVersion()
- Specified by:
getVersion
in interface DbPermission
- Returns:
- Returns the version number for optimistic locking
getTypeQNameId
public java.lang.Long getTypeQNameId()
- Specified by:
getTypeQNameId
in interface DbPermission
- Returns:
- Returns the qualified name of this permission
setTypeQNameId
public void setTypeQNameId(java.lang.Long typeQNameId)
- Specified by:
setTypeQNameId
in interface DbPermission
- Parameters:
typeQNameId
- the ID of the QName for this instance
getName
public java.lang.String getName()
- Specified by:
getName
in interface DbPermission
- Returns:
- Returns the permission name
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface DbPermission
- Parameters:
name
- the name of the permission
getKey
public DbPermissionKey getKey()
- Specified by:
getKey
in interface DbPermission
- Returns:
- Returns a key combining the
type
and name
find
public static DbPermission find(org.hibernate.Session session,
QName qname,
java.lang.String name)
- Helper method to find a permission based on its natural key
- Parameters:
session
- the Hibernate session to useqname
- the type qualified namename
- the name of the permission
- Returns:
- Returns an existing instance or null if not found
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.