Class Transition

All Implemented Interfaces:
Cacheable, Deletable, Serializable, ColumnAccessByName, ObjectModel, Persistent

public class Transition extends BaseTransition implements Deletable, Cacheable
Author:
Youngho Cho
  • Constructor Details

    • Transition

      public Transition()
      새로운 Transition 인스턴스를 생성한다.
  • Method Details

    • save

      public void save() throws Exception
      Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed.
      Specified by:
      save in interface Persistent
      Overrides:
      save in class BaseTransition
      Throws:
      Exception - 저장 중 오류가 발생한 경우
    • getQueryKey

      public String getQueryKey()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • delete

      public boolean delete(EasyDeskUser user) throws Exception
      Delete the record.
      Specified by:
      delete in interface Deletable
      Parameters:
      user - who is acting
      Returns:
      true success false not success
      Throws:
      Exception - 삭제 중 오류가 발생한 경우
    • delete

      public boolean delete(EasyDeskUser user, boolean overrideLock) throws Exception
      Delete the record.
      Specified by:
      delete in interface Deletable
      Parameters:
      user - who is acting
      overrideLock - lock 이 걸려 있어도 삭제할지 여부
      Returns:
      true success false not success
      Throws:
      Exception - 삭제 중 오류가 발생한 경우
    • getDisplayName

      public String getDisplayName()
      Transition 의 Display Name [id] from > to
      Returns:
      display name
    • getDisplayName

      public String getDisplayName(boolean verbose)
      DOCUMENT ME!
      Parameters:
      verbose - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • getDisplayName

      public String getDisplayName(boolean verbose, String seperator)
      Transition 의 Display Name [id] from > to
      Parameters:
      verbose - 상세 정보를 포함할지 여부
      seperator - 구분자
      Returns:
      display name
    • getAttributeConditions

      public List<Condition> getAttributeConditions(ModuleItemType mit, Attribute attribute) throws TorqueException
      ModuleItemType 의 attribute 에 대한 attribute scope Condition 목록을 구한다. 삭제된 것은 제외한다.
      Parameters:
      mit - 대상 ModuleItemType
      attribute - 대상 Attribute
      Returns:
      Condition's List of itemType of attribute scope 가 Condition.GLOBAL_ATTRIBUTE_OBJECT, Condition.GLOBAL_ITEM_TYPE_ATTRIBUTE, Condition.MODULE_ITEM_TYPE_ATTRIBUTE
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getAttributeConditions

      public List<Condition> getAttributeConditions(ModuleItemType mit, Attribute attribute, boolean includeDelete) throws TorqueException
      ModuleItemType 의 attribute 에 대한 attribute scope Condition 목록을 구한다.
      Parameters:
      mit - 대상 ModuleItemType
      attribute - 대상 Attribute
      includeDelete - 삭제된 Condition 을 포함할지 여부
      Returns:
      Condition's List of itemType of attribute scope 가 Condition.GLOBAL_ATTRIBUTE_OBJECT, Condition.GLOBAL_ITEM_TYPE_ATTRIBUTE, Condition.MODULE_ITEM_TYPE_ATTRIBUTE
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getAttributeConditions

      public List<Condition> getAttributeConditions(ItemType type, Attribute attribute) throws TorqueException
      ItemType 의 attribute 에 대한 attribute scope Condition 목록을 구한다. 삭제된 것은 제외한다.
      Parameters:
      type - 대상 ItemType
      attribute - 대상 Attribute
      Returns:
      Condition's List of itemType of attribute scope 가 Condition.GLOBAL_ATTRIBUTE_OBJECT, Condition.GLOBAL_ITEM_TYPE_ATTRIBUTE, Condition.MODULE_ITEM_TYPE_ATTRIBUTE
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getAttributeConditions

      public List<Condition> getAttributeConditions(ItemType type, Attribute attribute, boolean includeDelete) throws TorqueException
      ItemType 의 attribute 에 대한 attribute scope Condition 목록을 구한다.
      Parameters:
      type - 대상 ItemType
      attribute - 대상 Attribute
      includeDelete - 삭제된 Condition 을 포함할지 여부
      Returns:
      Condition's List of itemType of attribute scope 가 Condition.GLOBAL_ATTRIBUTE_OBJECT, Condition.GLOBAL_ITEM_TYPE_ATTRIBUTE, Condition.MODULE_ITEM_TYPE_ATTRIBUTE
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getAttributeConditions

      public List<Condition> getAttributeConditions(Attribute attribute, boolean includeDelete) throws TorqueException
      attribute 에 대한 attribute scope Condition 목록을 구한다.
      Parameters:
      attribute - 대상 Attribute
      includeDelete - 삭제된 Condition 을 포함할지 여부
      Returns:
      Condition's List of itemType of attribute scope 가 Condition.GLOBAL_ATTRIBUTE_OBJECT, Condition.GLOBAL_ITEM_TYPE_ATTRIBUTE, Condition.MODULE_ITEM_TYPE_ATTRIBUTE
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getConditions

      public List<Condition> getConditions(ModuleItemType mit) throws TorqueException
      RAttribute 를 기준으로 Override 한다. ModuleItemType > ItemType > Global Attribute
      Parameters:
      mit - moduleItemType
      Returns:
      All Condition's List for this transition for moduleItemType if none get conditions for global itemType
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getConditions

      public List<Condition> getConditions(ModuleItemType mit, boolean includeDelete) throws TorqueException
      RAttribute 를 기준으로 Override 한다. ModuleItemType > ItemType > Global Attribute
      Parameters:
      mit - moduleItemType
      includeDelete - 삭제된 Condition 을 포함할지 여부
      Returns:
      All Condition's List for this transition for moduleItemType if none get conditions for global itemType
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getConditions

      public List<Condition> getConditions(ItemType type) throws TorqueException
      ItemType 에 대한 Condition 목록을 구한다. 삭제된 것은 제외한다.
      Parameters:
      type - 대상 ItemType
      Returns:
      Condition's List of itemType if empty all conditions of global attribute
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getConditions

      public List<Condition> getConditions(ItemType type, boolean includeDelete) throws TorqueException
      Deprecated.
      더 이상 사용하지 않는다.
      ItemType 에 대한 Condition 목록을 구한다.
      Parameters:
      type - 대상 ItemType
      includeDelete - 삭제된 Condition 을 포함할지 여부
      Returns:
      Condition's List of itemType if empty all conditions of global attribute
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getConditions

      protected List<Condition> getConditions(Collection<Condition> conditions, ModuleItemType mit) throws TorqueException
      RAttribute 를 기준으로 Condition 을 filtering 한다. ModuleItemType > ItemType > Global Attribute Security Attribute 는 모든 것을 나머지는 scope 에 의하여 filtering 된 것을 구한다.
      Parameters:
      conditions - filtering 할 Condition 들
      mit - moduleItemType
      Returns:
      All Condition's List for this transition for moduleItemType if none get conditions for global itemType
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getConditions

      protected List<Condition> getConditions(Collection<Condition> conditions, ItemType type) throws TorqueException
      RAttribute 를 기준으로 ItemType 에 대한 Condition 을 filtering 한다.
      Parameters:
      conditions - filtering 할 Condition 들
      type - 대상 ItemType
      Returns:
      Condition's List of itemType if empty all conditions of global attribute
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getConditions

      public List<Condition> getConditions() throws TorqueException
      이 transition 의 Global Attribute 의 Condition 이 포함되어 있다.
      Overrides:
      getConditions in class BaseTransition
      Returns:
      All Condition's List for this transition same as getConditions(false, false)
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getConditions

      public List<Condition> getConditions(boolean includeDelete) throws TorqueException
      이 transition 의 Global Attribute 의 Condition 이 포함되어 있다.
      Parameters:
      includeDelete - 삭제된 Condition 을 포함할지 여부
      Returns:
      All Condition's List for this transition same as getConditions(false, false)
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getConditions

      public List<Condition> getConditions(Attribute attribute) throws TorqueException
      Deprecated.
      더 이상 사용하지 않는다.
      이 transition 의 Global Attribute 의 Condition 은 포함되어 있지 않다.
      Parameters:
      attribute - 대상 Attribute
      Returns:
      Condition's List of a attribute condition for this transition
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getConditions

      public List<Condition> getConditions(Attribute attribute, boolean includeDelete) throws TorqueException
      Deprecated.
      더 이상 사용하지 않는다.
      이 transition 의 Global Attribute 의 Condition 은 포함되어 있지 않다.
      Parameters:
      attribute - 대상 Attribute
      includeDelete - 삭제된 Condition 을 포함할지 여부
      Returns:
      Condition's List of a attribute condition for this transition
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • hasAnyRelated

      public boolean hasAnyRelated(List<AttributeOption> options)
      DOCUMENT ME!
      Parameters:
      options - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • isRelated

      public boolean isRelated(AttributeOption option)
      이 Transition 이 주어진 Option 의 Transition 을 기술하는 것인지
      Parameters:
      option - 확인할 AttributeOption
      Returns:
      option 이 from 또는 to 값이면 true
    • getMethodCache

      public MethodResultCache getMethodCache()
      Specified by:
      getMethodCache in interface Cacheable
      Returns:
      MethodResultCache
    • clear

      public void clear()
      Description copied from interface: Cacheable
      clear this Serializable instance cache
      Specified by:
      clear in interface Cacheable