Class RolesDO

java.lang.Object
org.europa.together.domain.acl.RolesDO
All Implemented Interfaces:
Serializable

@Entity public class RolesDO extends Object implements Serializable
USER ROLES OBJECT. Default roles are:
  • Guest
  • User
  • Moderator
  • Administrator
See Also:
  • Field Details

    • TABLE_NAME

      public static final String TABLE_NAME
      The name of the used database table for this domain object.
      See Also:
  • Constructor Details

    • RolesDO

      public RolesDO()
      Default Constructor.
    • RolesDO

      public RolesDO(String name)
      Constructor.
      Parameters:
      name - as String
  • Method Details

    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

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

      public String getName()
      Get the Role name. Primary Key.
      Returns:
      name as String
    • setName

      public void setName(String name)
      Set the Role name. Primary Key.
      Parameters:
      name - as String
    • getDescription

      public String getDescription()
      Get the description of a role.
      Returns:
      description as String
    • setDescription

      public void setDescription(String description)
      Set the description of a role.
      Parameters:
      description - as String
    • isDeleteable

      public boolean isDeleteable()
      Flag to protect that a role can not deleted by accident. The ACL contains by default tree protected roles: Guest, User & Administrator.
      Returns:
      true on success
    • setDeleteable

      public void setDeleteable(boolean deleteable)
      Set a flag to protect that a role can not deleted by accident. The ACL contains by default four protected roles: Guest, User, Moderator & Administrator.
      Parameters:
      deleteable - as boolean