org.alfresco.repo.domain
Interface DbPermission

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DbPermissionImpl

public interface DbPermission
extends java.io.Serializable

The interface against which permission references are persisted in hibernate.


Method Summary
 java.lang.Long getId()
           
 DbPermissionKey getKey()
           
 java.lang.String getName()
           
 QName getTypeQName(QNameDAO qnameDAO)
          Convenience method to get the type QName of the permission
 java.lang.Long getTypeQNameId()
           
 java.lang.Long getVersion()
           
 void setName(java.lang.String name)
           
 void setTypeQNameId(java.lang.Long typeQNameId)
           
 

Method Detail

getTypeQName

QName getTypeQName(QNameDAO qnameDAO)
Convenience method to get the type QName of the permission

Parameters:
qnameDAO - helper DAO
Returns:
the permission's type QName

getId

java.lang.Long getId()
Returns:
Returns the automatically assigned ID

getVersion

java.lang.Long getVersion()
Returns:
Returns the version number for optimistic locking

getTypeQNameId

java.lang.Long getTypeQNameId()
Returns:
Returns the qualified name of this permission

setTypeQNameId

void setTypeQNameId(java.lang.Long typeQNameId)
Parameters:
typeQNameId - the ID of the QName for this instance

getName

java.lang.String getName()
Returns:
Returns the permission name

setName

void setName(java.lang.String name)
Parameters:
name - the name of the permission

getKey

DbPermissionKey getKey()
Returns:
Returns a key combining the type and name


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