Class Role
java.lang.Object
org.deltava.beans.Role
- All Implemented Interfaces:
Serializable
,Comparable<Role>
A bean to store an access role.
- Since:
- 9.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PILOT
-
ADMIN
-
ANONYMOUS
-
APPLICANT
-
-
Constructor Details
-
Role
Role(String name, boolean isPersistent) Creates the bean.- Parameters:
name
- the Role nameisPersistent
- TRUE if membership is persisted in the database, otherwise FALSE
-
-
Method Details
-
getName
-
isPersistent
public boolean isPersistent()Returns if membership is persisted in the database.- Returns:
- TRUE if persisted, otherwise FALSE
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Role>
-
toString
-
hashCode
-
equals
-