|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gisgraphy.model.BaseObject
com.gisgraphy.model.Role
public class Role
This class is used to represent available roles in the database.
Constructor Summary | |
---|---|
Role()
Default constructor - creates a new instance with no values set. |
|
Role(String name)
Create a new instance and set the name. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compares object equality. |
String |
getAuthority()
|
String |
getDescription()
|
Long |
getId()
|
String |
getName()
|
int |
hashCode()
When you override equals, you should override hashCode. |
void |
setDescription(String description)
|
void |
setId(Long id)
|
void |
setName(String name)
|
String |
toString()
Returns a multi-line String with key=value pairs. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Role()
public Role(String name)
name
- name of the role.Method Detail |
---|
public Long getId()
public String getAuthority()
getAuthority
in interface org.acegisecurity.GrantedAuthority
GrantedAuthority.getAuthority()
public String getName()
public String getDescription()
public void setId(Long id)
public void setName(String name)
public void setDescription(String description)
public boolean equals(Object o)
equals
in class BaseObject
o
- object to compare to
public int hashCode()
hashCode
in class BaseObject
public String toString()
toString
in class BaseObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |