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 String
The name of the used database table for this domain object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
Get the name.getView()
Define which template is to use for the given resource.int
hashCode()
boolean
Flag to protect that a resource can not deleted by accident.void
setDeleteable
(boolean deleteable) Set a flag to protect that a role can not deleted by accident.void
Set the resource name.void
Define 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
-