Enum Class SplibUtil.LoginStateEnum

java.lang.Object
java.lang.Enum<SplibUtil.LoginStateEnum>
jp.ecuacion.splib.web.util.SplibUtil.LoginStateEnum
All Implemented Interfaces:
Serializable, Comparable<SplibUtil.LoginStateEnum>, Constable
Enclosing class:
SplibUtil

public static enum SplibUtil.LoginStateEnum extends Enum<SplibUtil.LoginStateEnum>
ログイン状態を指定。 public=loginなし、account=一般ユーザログイン、admin=管理者/サービス提供側のログイン、を想定。

以下の用途で使用。

  • URLの一部に入る。https://domain/contextPath/xxx/.... のxxx部分。
  • navBarの種類を指定。loginStateにより全く異なるメニューのnavBarを表示することが可能。
  • Enum Constant Details

    • PUBLIC

      public static final SplibUtil.LoginStateEnum PUBLIC
      loginStateと言う意味では、本当はpublicよりnoneなどの方がわかりやすいのだが、 この名称がそのままhttps://domain/contextPath/xxx/....のxxx部分に載り、urlにnoneがあるのも違和感あるのでpublicとした。
    • ACCOUNT

      public static final SplibUtil.LoginStateEnum ACCOUNT
    • ADMIN

      public static final SplibUtil.LoginStateEnum ADMIN
    • ECUACION_PUBLIC

      public static final SplibUtil.LoginStateEnum ECUACION_PUBLIC
      config画面など、ecuacionとして共通で持たせる画面に使用するpath。 urlの一部になる際はecuacion/publicの形となる
  • Method Details

    • values

      public static SplibUtil.LoginStateEnum[] 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 SplibUtil.LoginStateEnum 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
    • getCode

      public String getCode()