Class Permission


@Entity public class Permission extends AuditableModel
This object stores the permissions.
  • Constructor Details

    • Permission

      public Permission()
    • Permission

      public Permission(String name)
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in class Model
    • setId

      public void setId(Long id)
      Specified by:
      setId in class Model
    • getName

      public String getName()
      An unique permission name.
      Returns:
      the property value
    • setName

      public void setName(String name)
    • getObject

      public String getObject()
      Fully qualified object name or wild card package name.
      Returns:
      the property value
    • setObject

      public void setObject(String object)
    • getCanRead

      public Boolean getCanRead()
      Whether to grant read access.
      Returns:
      the property value
    • setCanRead

      public void setCanRead(Boolean canRead)
    • getCanWrite

      public Boolean getCanWrite()
      Whether to grant write access.
      Returns:
      the property value
    • setCanWrite

      public void setCanWrite(Boolean canWrite)
    • getCanCreate

      public Boolean getCanCreate()
      Whether to grant create access.
      Returns:
      the property value
    • setCanCreate

      public void setCanCreate(Boolean canCreate)
    • getCanRemove

      public Boolean getCanRemove()
      Whether to grant remove access.
      Returns:
      the property value
    • setCanRemove

      public void setCanRemove(Boolean canRemove)
    • getCanImport

      public Boolean getCanImport()
      Whether to grant import access.
      Returns:
      the property value
    • setCanImport

      public void setCanImport(Boolean canImport)
    • getCanExport

      public Boolean getCanExport()
      Whether to grant export access.
      Returns:
      the property value
    • setCanExport

      public void setCanExport(Boolean canExport)
    • getCondition

      public String getCondition()
      Domain filter as condition.
      Returns:
      the property value
    • setCondition

      public void setCondition(String condition)
    • getConditionParams

      public String getConditionParams()
      Comma separated list of params for the condition.
      Returns:
      the property value
    • setConditionParams

      public void setConditionParams(String conditionParams)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object