Class ModuleItemType

All Implemented Interfaces:
Cacheable, Deletable, Orderable<ModuleItemType>, Serializable, Comparable<ModuleItemType>, ColumnAccessByName, ObjectModel, Persistent

public class ModuleItemType extends BaseModuleItemType implements Deletable, Orderable<ModuleItemType>, Cacheable
ModuleItemType
  • Constructor Details

    • ModuleItemType

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

    • setModule

      public void setModule(Module module)
      DOCUMENT ME!
      Parameters:
      module - DOCUMENT ME!
    • getModule

      public Module getModule() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • save

      public void save() throws Exception
      (non-Javadoc)
      Specified by:
      save in interface Persistent
      Overrides:
      save in class BaseModuleItemType
      Throws:
      Exception - if an error occurs during saving.
      See Also:
    • delete

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

      public ModuleAttribute getModuleAttribute(Attribute attribute) throws TorqueException
      attribute 에 해당하는 ModuleAttribute 를 구한다.
      Parameters:
      attribute - 대상 Attribute
      Returns:
      moduleAttribute or null
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getModuleAttributes

      public List<ModuleAttribute> getModuleAttributes() throws TorqueException
      ModuleItemType 에 정의되어 있는 ModuleAttribute list 를 구한다. inactive 도 포함한다.
      Returns:
      moduleAttribute list
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getModuleAttributes

      public List<ModuleAttribute> getModuleAttributes(boolean activeOnly) throws TorqueException
      ModuleAttribute 목록을 구한다.
      Parameters:
      activeOnly - active 인 것만 구할지 여부
      Returns:
      moduleAttribute list
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getModuleAttributes

      public List<ModuleAttribute> getModuleAttributes(boolean activeOnly, String attributeType) throws TorqueException
      attribute 유형에 해당하는 ModuleAttribute 목록을 구한다.
      Parameters:
      activeOnly - active 인 것만 구할지 여부
      attributeType - attribute 유형 (AttrTypeEnum 이름)
      Returns:
      moduleAttribute list
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getDefaultTemplate

      public Item getDefaultTemplate(Scope scope, ActivitySet activitySet) throws TorqueException
      Default Template 를 구한다. Default Template 는 system reserved name 을 같고 있다. 구하는 로직 해당 Scope 에 생성된 것이 없으면, ModuleScope 로 생성되어 있는 것을 찾는다. 만약 ModuleScope 에도 없으면 Module 의 TemplateModule 에 있는 ModuleScope 의 것을 찾는다. 만약 TemplateModule 이 SystemDefined TemplateModule 인데 존재하지 않으면 새로 생성한다. TODO : 내용 정리가 필요하다.
      Parameters:
      scope - 대상 Scope
      activitySet - 새로 생성시 필요
      Returns:
      template Item
      Throws:
      TorqueException - 조회 또는 생성 중 오류가 발생한 경우
      IllegalArgumentException - template module 에 mit 가 정의되지 않았을 때
    • getDedupeGroupsWithAttributes

      public List<AttributeGroup> getDedupeGroupsWithAttributes() throws TorqueException
      This method is used within Wizard1 to get a list of attribute groups which are marked as dedupe and have a list of attributes in them. Wizard1 : 등록 첫번쨰 시작 화면 ( 중복 check 등이 목적이다. Email, 약관 승인, 법적 확인 사항 등등 ) Wizard2 : 주요 등록 내용 ( 본문 등등 ) Wizard3 : 추가 첨부 파일 등등 입력 사항 마무리
      Returns:
      attribute 가 있는 dedupe AttributeGroup 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getDedupeAttributeGroups

      public List<AttributeGroup> getDedupeAttributeGroups() throws TorqueException
      List of active dedupe attribute groups associated with this module.
      Returns:
      active dedupe AttributeGroup 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getDedupeAttributeGroups

      public List<AttributeGroup> getDedupeAttributeGroups(boolean activeOnly) throws TorqueException
      List of dedupe attribute groups associated with this module.
      Parameters:
      activeOnly - active 인 것만 구할지 여부
      Returns:
      dedupe AttributeGroup 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getDedupeSequence

      public int getDedupeSequence() throws Exception
      Gets the sequence where the dedupe screen fits between groups.
      Returns:
      dedupe 화면의 순서
      Throws:
      Exception - 조회 중 오류가 발생한 경우
    • getAttributeGroup

      public AttributeGroup getAttributeGroup(String name) throws TorqueException
      get named attributeGroup which defined in this modueItemType
      Parameters:
      name - AttributeGroup 이름
      Returns:
      named attributeGroup or 없으면 null
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • has

      public boolean has(AttributeGroupType agType) throws TorqueException
      DOCUMENT ME!
      Parameters:
      agType - DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • has

      public boolean has(AttributeType attributeType) throws TorqueException
      active attribute 중에 주어진 유형이 있는지 확인한다.
      Parameters:
      attributeType - 확인할 AttributeType
      Returns:
      true/false
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • has

      public boolean has(Attribute attribute)
      attribute 가 이 ModuleItemType 에 등록되어 있는지 확인한다.
      Parameters:
      attribute - 확인할 Attribute
      Returns:
      true/false
    • getQuickSearchAttributes

      public List<Attribute> getQuickSearchAttributes() throws TorqueException
      Array of Attributes used for quick search.
      Returns:
      an List of Attribute objects
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getActiveAttributes

      public List<Attribute> getActiveAttributes() throws TorqueException
      Deprecated.
      move to module
      Array of active Attributes for an item type.
      Returns:
      an List of Attribute objects
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getRequiredAttributes

      public List<Attribute> getRequiredAttributes() throws TorqueException
      Array of Attributes which are active and required by this module. Whose attribute group's are also active.
      Returns:
      an List of Attribute objects
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getDefaultTextAttribute

      public Attribute getDefaultTextAttribute() throws Exception
      if an RMA is the chosen attribute for email subjects then return it. if not explicitly chosen, choose the highest ordered text attribute.
      Returns:
      the Attribute to use as the email subject, or null if no suitable Attribute could be found.
      Throws:
      Exception - 처리 중 오류가 발생한 경우
    • getAttributeGroup

      public AttributeGroup getAttributeGroup(Attribute attribute) throws TorqueException
      attribute 가 속한 AttributeGroup 을 구한다.
      Parameters:
      attribute - 대상 Attribute
      Returns:
      attributeGroup
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getAvailableAttributes

      public List<Attribute> getAvailableAttributes(String attributeType) throws Exception
      gets a list of all of the global Attributes that are not associated with this module and item type
      Parameters:
      attributeType - attribute 유형
      Returns:
      List
      Throws:
      Exception - 조회 중 오류가 발생한 경우
    • getAttributeGroups

      public List<AttributeGroup> getAttributeGroups() throws TorqueException
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
      Throws:
      TorqueException - DOCUMENT ME!
    • getAttributeGroups

      public List<AttributeGroup> getAttributeGroups(boolean activeOnly) throws TorqueException
      DOCUMENT ME!
      Parameters:
      activeOnly - DOCUMENT ME!
      Returns:
      AttributeGroup List
      Throws:
      TorqueException - DOCUMENT ME!
    • getUserAttributes

      public List<Attribute> getUserAttributes() throws TorqueException
      gets a list of all of the active User Attributes in a Module.
      Returns:
      User Attribute 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • getUserAttributes

      public List<Attribute> getUserAttributes(boolean activeOnly) throws TorqueException
      gets a list of all of the User Attributes in a Module.
      Parameters:
      activeOnly - active 인 것만 구할지 여부
      Returns:
      User Attribute 목록
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우
    • initialize

      public void initialize() throws Exception
      ModuleItemType 이 db 에 등록이 되면, 추가로 관련된 Default AttributeGroup, Attribute 들을 등록한다.
      Throws:
      Exception - 등록 중 오류가 발생한 경우
    • getMethodCache

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

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