org.alfresco.repo.domain.hibernate
Class DbAuthorityAliasImpl

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

public class DbAuthorityAliasImpl
extends java.lang.Object
implements DbAuthorityAlias, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
DbAuthorityAliasImpl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static DbAuthorityAlias find(org.hibernate.Session session, java.lang.String authority, java.lang.String alias)
          Helper method to find an authority alias based on the authority and alias
 DbAuthority getAlias()
          Get the alias for the authority
 DbAuthority getAuthority()
          Get the authority for which this is an alias
 java.lang.Long getId()
          Get the object id.
 java.lang.Long getVersion()
          Get the version used for optimistic locking
 int hashCode()
           
 void setAlias(DbAuthority alias)
          Set the alias
 void setAuthority(DbAuthority authority)
          Set the authority
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DbAuthorityAliasImpl

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

getAlias

public DbAuthority getAlias()
Description copied from interface: DbAuthorityAlias
Get the alias for the authority

Specified by:
getAlias in interface DbAuthorityAlias
Returns:

getAuthority

public DbAuthority getAuthority()
Description copied from interface: DbAuthorityAlias
Get the authority for which this is an alias

Specified by:
getAuthority in interface DbAuthorityAlias
Returns:

getId

public java.lang.Long getId()
Description copied from interface: DbAuthorityAlias
Get the object id.

Specified by:
getId in interface DbAuthorityAlias
Returns:

getVersion

public java.lang.Long getVersion()
Description copied from interface: DbAuthorityAlias
Get the version used for optimistic locking

Specified by:
getVersion in interface DbAuthorityAlias
Returns:

setAlias

public void setAlias(DbAuthority alias)
Description copied from interface: DbAuthorityAlias
Set the alias

Specified by:
setAlias in interface DbAuthorityAlias

setAuthority

public void setAuthority(DbAuthority authority)
Description copied from interface: DbAuthorityAlias
Set the authority

Specified by:
setAuthority in interface DbAuthorityAlias

find

public static DbAuthorityAlias find(org.hibernate.Session session,
                                    java.lang.String authority,
                                    java.lang.String alias)
Helper method to find an authority alias based on the authority and alias

Parameters:
session - the Hibernate session to use
authority - the authority name
Returns:
Returns an existing instance or null if not found


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