Enum Class LifeCycleEnum

java.lang.Object
java.lang.Enum<LifeCycleEnum>
com.easydesk.enums.LifeCycleEnum
All Implemented Interfaces:
Entitiable<Integer,AttributeOption>, Serializable, Comparable<LifeCycleEnum>, Constable

public enum LifeCycleEnum extends Enum<LifeCycleEnum> implements Entitiable<Integer,AttributeOption>
아이템의 LifeCycle 상태를 나타내는 AttributeOption 을 정의한 enum.
Author:
Youngho Cho
  • Enum Constant Details

    • Entered

      public static final LifeCycleEnum Entered
      입력된 상태 (AttributeOption id: 220)
    • Checked

      public static final LifeCycleEnum Checked
      확인(Check)된 상태 (AttributeOption id: 221)
    • Confirmed

      public static final LifeCycleEnum Confirmed
      Checker 와 승인자가 다를 수 있음으로 구분 처리한다.
    • Locked

      public static final LifeCycleEnum Locked
      Locked 에서는 Checked/Deleted 로 만 갈 수 있다. (AttributeOption id: 223)
    • Deleted

      public static final LifeCycleEnum Deleted
      Deleted 에서는 특별한 경우에 한하여 Locked 로 만 갈 수 있다. (AttributeOption id: 224)
  • Method Details

    • values

      public static LifeCycleEnum[] 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 LifeCycleEnum 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
    • getId

      public Integer getId()
      attributeOptionId
      Specified by:
      getId in interface Entitiable<Integer,AttributeOption>
      Returns:
      attributeOptionId
    • getInstance

      public AttributeOption getInstance()
      Description copied from interface: Entitiable
      enum 에 해당하는 entity 를 저장소에서 구한다.
      Specified by:
      getInstance in interface Entitiable<Integer,AttributeOption>
      Returns:
      enum 에 해당하는 om object
    • getNeedApprovals

      public static Set<LifeCycleEnum> getNeedApprovals()
      item 의 속성값이 변경되려면 승인을 받아야 하는 상태
      Returns:
      Confirmed, Locked, Deleted 상태의 Set