Class Role

java.lang.Object
org.deltava.beans.Role
All Implemented Interfaces:
Serializable, Comparable<Role>

public class Role extends Object implements Serializable, Comparable<Role>
A bean to store an access role.
Since:
9.0
Version:
11.0
Author:
Luke
See Also:
  • Field Details

    • PILOT

      public static final Role PILOT
    • ADMIN

      public static final Role ADMIN
    • ANONYMOUS

      public static final Role ANONYMOUS
    • APPLICANT

      public static final Role APPLICANT
  • Constructor Details

    • Role

      Role(String name, boolean isPersistent)
      Creates the bean.
      Parameters:
      name - the Role name
      isPersistent - TRUE if membership is persisted in the database, otherwise FALSE
  • Method Details

    • getName

      public String getName()
      Returns the security role name.
      Returns:
      the name
    • isPersistent

      public boolean isPersistent()
      Returns if membership is persisted in the database.
      Returns:
      TRUE if persisted, otherwise FALSE
    • compareTo

      public int compareTo(Role r)
      Specified by:
      compareTo in interface Comparable<Role>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object