Enum Class AccessRightsCode

java.lang.Object
java.lang.Enum<AccessRightsCode>
net.tangly.core.domain.AccessRightsCode
All Implemented Interfaces:
Serializable, Comparable<AccessRightsCode>, Constable, Code

public enum AccessRightsCode extends Enum<AccessRightsCode> implements Code
A user has different access rights for a specific domain or the whole application:
none
has no access to the domain.
restricted-user
has only read and write access to owned entities in a domain. Ownership is identified through the username of the logged-in user.
readonly user
has read access to all entities in a domain. No edition functions are available.
user
has write access to all entities in a domain. The user can create, modify, delete and duplicate aggregates.
domain-admin
has write access to all entities in a domain and access to specific domain actions. This right if necessary to import and export datasets of the domain.
app-admin
has access to application specific data and function. She does not have access to domains.
  • Enum Constant Details

  • Method Details

    • values

      public static AccessRightsCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AccessRightsCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • id

      public int id()
      Description copied from interface: Code
      Returns the unique identifier of a code table entity.
      Specified by:
      id in interface Code
      Returns:
      unique identifier of the code table instance
    • code

      public String code()
      Description copied from interface: Code
      Returns the human-readable representation of a code table entity.
      Specified by:
      code in interface Code
      Returns:
      human-readable code
    • enabled

      public boolean enabled()
      Description copied from interface: Code
      Returns true if the code table instance is enabled.
      Specified by:
      enabled in interface Code
      Returns:
      flag indicating if the code is enabled or archived