Enum Class DomainProperties

java.lang.Object
java.lang.Enum<DomainProperties>
org.emau.icmvc.ganimed.ttp.psn.config.DomainProperties
All Implemented Interfaces:
Serializable, Comparable<DomainProperties>, Constable

public enum DomainProperties extends Enum<DomainProperties>
  • Enum Constant Details

    • MAX_DETECTED_ERRORS

      public static final DomainProperties MAX_DETECTED_ERRORS
      int
      numbers of check digits for
      invalid reference
      org.emau.icmvc.ganimed.ttp.psn.generator.ReedSolomonLagrange

      default 2
    • PSN_LENGTH

      public static final DomainProperties PSN_LENGTH
      int
      length of the generated pseudonym
      default 8
    • PSN_PREFIX

      public static final DomainProperties PSN_PREFIX
      string
      additional prefix
      default ""
    • PSN_SUFFIX

      public static final DomainProperties PSN_SUFFIX
      string
      additional suffix
      default ""
    • INCLUDE_PREFIX_IN_CHECK_DIGIT_CALCULATION

      public static final DomainProperties INCLUDE_PREFIX_IN_CHECK_DIGIT_CALCULATION
      boolean
      should the prefix be used to calculate the check digit(s)
      default false
    • INCLUDE_SUFFIX_IN_CHECK_DIGIT_CALCULATION

      public static final DomainProperties INCLUDE_SUFFIX_IN_CHECK_DIGIT_CALCULATION
      boolean
      should the suffix be used to calculate the check digit(s)
      default false
    • USE_LAST_CHAR_AS_DELIMITER_AFTER_X_CHARS

      public static final DomainProperties USE_LAST_CHAR_AS_DELIMITER_AFTER_X_CHARS
      int
      use last char of the given alphabet as delimiter symbol after the given number of other chars within the pseudonym
      e.g. 123.456.789 or abcd-efgh-ijkl
      default 0 (which means dont use ...)
    • PSNS_DELETABLE

      public static final DomainProperties PSNS_DELETABLE
      boolean
      is it allowed to delete entries within this domain
      attention! ValidateViaParents.CASCADE_DELETE ignores this config entry
      default false
    • FORCE_CACHE

      public static final DomainProperties FORCE_CACHE
      enum
      should a cache be used for faster psn generation, see ForceCache
      memory consumption is one bit per possible pseudonym: mem_for_cache = alphabet_length ^ pseudonym_length / 8 / 1024 / 1024 MB
      e.g. alphabet = numbers, length = 8 -> mem_for_cache = 10 ^ 8 / (8 * 1024 * 1024) = 11.92 MB
      default ForceCache.DEFAULT if memory consumption invalid input: '<' 120 MB (numbers with length = 9) then true, else false
    • VALIDATE_VALUES_VIA_PARENTS

      public static final DomainProperties VALIDATE_VALUES_VIA_PARENTS
      enum
      should the values in this domain be validated against the rules of their parent domains, see ValidateViaParents
      throws an InvalidParameterException if there's no parent domain set
      default ValidateViaParents.OFF
    • SEND_NOTIFICATIONS_WEB

      public static final DomainProperties SEND_NOTIFICATIONS_WEB
      Use notifications when creating, anonymising, deleting or inserting pseudonyms from Web interface.
      default = false
    • MULTI_PSN_DOMAIN

      public static final DomainProperties MULTI_PSN_DOMAIN
      True to allow multiple (different) pseudonyms for the same value in this domain.
      default = false
  • Method Details

    • values

      public static DomainProperties[] 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 DomainProperties 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