Enum Class RequestedEnum

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

public enum RequestedEnum extends Enum<RequestedEnum> implements Entitiable<Integer,AttributeOption>
DOCUMENT ME!
Version:
$Revision$, $Date$
Author:
YounghoCho
  • Enum Constant Details

    • Requested

      public static final RequestedEnum Requested

      승인을 요청한다. (AttributeOption id: 2400)

      Request Pending Approve Process 를 담당한다.

      Requested/Deferred/Approved/Rejected/Closed 의 상태를 가진다.

      Workflow

      • 1.grantee 가 Requested 를 하면
      • 2. 통지
      • 3. granter 가 Deferred/Approved/Rejected 를 하고
      • 4. 통지
      • 5. granter 가 Closed 를 한다.
      • Approved, Rejected 상태에서 manual closed 가 가능하다.

      granter 설정 로직 : 담당자가 존재하면 담당자, 존재하지 않으면 moderator , moderator 가 담당자를 설정하면 이 때에도 담당자 동작

      Status 와 다른점 : Status 는 한 issue 의 lifeCycle 에서 작동하지만 , Requested 는 Confirmed 인 상태에서 편집권한이 있는 사용자가 편집을 시도할 때 ( 핵심 개념 이다. ) 승인권자에거 승인을 받는 로직.

    • Deferred

      public static final RequestedEnum Deferred
      보류 (AttributeOption id: 2401)
    • Approved

      public static final RequestedEnum Approved
      승인 (AttributeOption id: 2402)
    • Rejected

      public static final RequestedEnum Rejected
      반려 (AttributeOption id: 2403)
    • Closed

      public static final RequestedEnum Closed
      종료 (AttributeOption id: 2404)
  • Method Details

    • values

      public static RequestedEnum[] 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 RequestedEnum 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:
      attribute
    • getInProcess

      public static Set<RequestedEnum> getInProcess()
      승인 절차가 진행 중인 상태
      Returns:
      Requested, Approved, Deferred 상태의 Set