org.appfuse.model
Class Role

java.lang.Object
  extended by org.appfuse.model.BaseObject
      extended by org.appfuse.model.Role
All Implemented Interfaces:
Serializable, org.acegisecurity.GrantedAuthority

public class Role
extends BaseObject
implements Serializable, org.acegisecurity.GrantedAuthority

This class is used to represent available roles in the database.

View Source

Author:
Matt Raible Version by Dan Kibler [email protected] Extended to implement Acegi GrantedAuthority interface by David Carter [email protected]
See Also:
Serialized Form
Class:
table="role"
Form Name:
extends="BaseForm"

Constructor Summary
Role()
           
Role(String name)
           
 
Method Summary
 boolean equals(Object o)
           
 String getAuthority()
           
 String getDescription()
           
 Long getId()
           
 String getName()
           
 int hashCode()
           
 void setDescription(String description)
           
 void setId(Long id)
           
 void setName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Role

public Role()

Role

public Role(String name)
Method Detail

getId

public Long getId()
Id:
column="id" generator-class="native" unsaved-value="null"

getAuthority

public String getAuthority()
Specified by:
getAuthority in interface org.acegisecurity.GrantedAuthority
See Also:
GrantedAuthority.getAuthority()

getName

public String getName()
Property:
column="name" length="20"

getDescription

public String getDescription()
Property:
column="description" length="64"

setId

public void setId(Long id)

setName

public void setName(String name)

setDescription

public void setDescription(String description)

equals

public boolean equals(Object o)
Specified by:
equals in class BaseObject

hashCode

public int hashCode()
Specified by:
hashCode in class BaseObject

toString

public String toString()
Specified by:
toString in class BaseObject


Copyright � 2002-2006