org.appfuse.model
Class Role
java.lang.Object
org.appfuse.model.BaseObject
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"
Role
public Role()
Role
public Role(String name)
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