Enum Class IDProvider.UidType

java.lang.Object
java.lang.Enum<IDProvider.UidType>
de.espirit.firstspirit.access.store.IDProvider.UidType
All Implemented Interfaces:
Serializable, Comparable<IDProvider.UidType>, Constable
Enclosing interface:
IDProvider

public static enum IDProvider.UidType extends Enum<IDProvider.UidType>
Defines the name space in which the unique identifier has to be unique. Each IDProvider supporting uid's (IDProvider.hasUid()) provides a static field to the belonging UidType (e.g. PageFolder.UID_TYPE).
See usages for existing uid type mappings.
Since:
4.0
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static IDProvider.UidType[] 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 IDProvider.UidType 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
    • getStoreType

      @NotNull public Store.Type getStoreType()
      Since:
      4.0.17
    • getType

      @NotNull public de.espirit.storage.Type getType()
      Since:
      4.0.17
    • forStoreType

      @NotNull public static @NotNull EnumSet<IDProvider.UidType> forStoreType(Store.Type storeType)
      Fetch all the uid types for a given store type.
      Parameters:
      storeType - The store type to look up uid types for.
      Returns:
      A set of types.
      Since:
      5.0.103