Package org.europa.together.domain.acl
Class ResourcesDO
java.lang.Object
org.europa.together.domain.acl.ResourcesDO
- All Implemented Interfaces:
Serializable
RESOURCES OBJECT.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the used database table for this domain object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Get the name.getView()Define which template is to use for the given resource.inthashCode()booleanFlag to protect that a resource can not deleted by accident.voidsetDeleteable(boolean deleteable) Set a flag to protect that a role can not deleted by accident.voidSet the resource name.voidDefine which template will be chosen to open a resource.toString()
-
Field Details
-
TABLE_NAME
The name of the used database table for this domain object.- See Also:
-
-
Constructor Details
-
ResourcesDO
public ResourcesDO()Default Constructor. -
ResourcesDO
Constructor.- Parameters:
resourceName- as String
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
getName
Get the name. Primary Key.- Returns:
- name as String
-
setName
Set the resource name. Primary Key. Good Resource names are: Article and so on.- Parameters:
name- as String
-
getView
Define which template is to use for the given resource.- Returns:
- view as String
-
setView
Define which template will be chosen to open a resource.- Parameters:
view- as String
-
isDeleteable
public boolean isDeleteable()Flag to protect that a resource can not deleted by accident. The ACL contains by default some protected resources like Document and Article.- 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
-