Package org.europa.together.domain.acl
Class RolesDO
java.lang.Object
org.europa.together.domain.acl.RolesDO
- All Implemented Interfaces:
Serializable
USER ROLES OBJECT. Default roles are:
- Guest
- User
- Moderator
- Administrator
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The name of the used database table for this domain object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the description of a role.getName()
Get the Role name.int
hashCode()
boolean
Flag to protect that a role can not deleted by accident.void
setDeleteable
(boolean deleteable) Set a flag to protect that a role can not deleted by accident.void
setDescription
(String description) Set the description of a role.void
Set the Role name.toString()
-
Field Details
-
TABLE_NAME
The name of the used database table for this domain object.- See Also:
-
-
Constructor Details
-
RolesDO
public RolesDO()Default Constructor. -
RolesDO
Constructor.- Parameters:
name
- as String
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
getName
Get the Role name. Primary Key.- Returns:
- name as String
-
setName
Set the Role name. Primary Key.- Parameters:
name
- as String
-
getDescription
Get the description of a role.- Returns:
- description as String
-
setDescription
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
-