Class ResourcesDO

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

@Entity public class ResourcesDO extends Object implements Serializable
RESOURCES OBJECT.
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

    • ResourcesDO

      public ResourcesDO()
      Default Constructor.
    • ResourcesDO

      public ResourcesDO(String resourceName)
      Constructor.
      Parameters:
      resourceName - 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 name. Primary Key.
      Returns:
      name as String
    • setName

      public void setName(String name)
      Set the resource name. Primary Key. Good Resource names are: Article and so on.
      Parameters:
      name - as String
    • getView

      public String getView()
      Define which template is to use for the given resource.
      Returns:
      view as String
    • setView

      public void setView(String view)
      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