Enum Class StoreType

java.lang.Object
java.lang.Enum<StoreType>
de.espirit.firstspirit.base.store.StoreType
All Implemented Interfaces:
Serializable, Comparable<StoreType>, Constable

@GwtCompatible public enum StoreType extends Enum<StoreType>
The type of a Store.
Since:
4.1.1
See Also:
  • Enum Constant Details

    • PAGE

      public static final StoreType PAGE
      PageStore
      Since:
      4.1.1
    • CONTENT

      public static final StoreType CONTENT
      ContentStore
      Since:
      4.1.1
    • SITE

      public static final StoreType SITE
      SiteStore
      Since:
      4.1.1
    • MEDIA

      public static final StoreType MEDIA
      MediaStore
      Since:
      4.1.1
    • TEMPLATE

      public static final StoreType TEMPLATE
      TemplateStore
      Since:
      4.1.1
    • GLOBAL

      public static final StoreType GLOBAL
      GlobalStore
      Since:
      4.1.1
  • Method Details

    • values

      public static StoreType[] 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 StoreType 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
    • getTypeChar

      public char getTypeChar()
      Provides the one character abbreviation identifying a store.
      Since:
      4.1.1
    • getName

      @NotNull public @NotNull String getName()
      Returns old style store name (e.g. "pagestore" for PAGE).
      Returns:
      Old style store name.
      Since:
      5.0.2
    • forName

      @NotNull public static @NotNull StoreType forName(@NotNull @NotNull String name) throws IllegalArgumentException
      Returns the StoreType with the specified store-name (e.g. PAGE for "pagestore").
      Parameters:
      name - store-name (e.g. "pagestore" or "SITESTORE").
      Returns:
      enum constant with the specified store-name.
      Throws:
      IllegalArgumentException - if the specified store-name is unknown.
      Since:
      5.0.2