Class AttributeGroupFactory

java.lang.Object
com.easydesk.om.util.AttributeGroupFactory

public class AttributeGroupFactory extends Object
ItemType 의 AttributeGroup 을 생성하고 관리하는 factory.
  • Constructor Details

    • AttributeGroupFactory

      public AttributeGroupFactory(ItemType itemType)
      ItemType 에 대한 factory 를 생성한다.
      Parameters:
      itemType - 대상 ItemType
  • Method Details

    • getFactory

      public static AttributeGroupFactory getFactory(ItemType itemType)
      ItemType 에 대한 factory 를 구한다.
      Parameters:
      itemType - 대상 ItemType
      Returns:
      AttributeGroupFactory
    • createNewGroup

      public AttributeGroup createNewGroup(AttributeGroupType template) throws Exception
      Creates new global attribute group.
      Parameters:
      template - 생성할 group 의 AttributeGroupType
      Returns:
      new global attribute group
      Throws:
      Exception - group 생성 중 오류가 발생한 경우
    • createDefaultGroups

      public void createDefaultGroups() throws Exception
      Create default groups upon global item type creation and add add system default ItemTypeAttribute.
      Throws:
      Exception - group 생성 중 오류가 발생한 경우
    • createDefaultGroups

      public void createDefaultGroups(boolean includes) throws Exception
      Create default groups upon global item type creation.
      Parameters:
      includes - if true add system default ItemTypeAttribute
      Throws:
      Exception - group 생성 중 오류가 발생한 경우
    • getArtifactizableColumnMap

      protected Map<String,ColumnMap> getArtifactizableColumnMap(String attrGroupName) throws TorqueException
      schema 에 정의된 artifactizable attribute 를 구한다.
      Parameters:
      attrGroupName - attribute group 이름
      Returns:
      Map<String, ColumnMap> 형식의 { attributeName, columnMap } map
      Throws:
      TorqueException - schema 정보를 구하는 중 오류가 발생한 경우
    • getProperties

      public List<String> getProperties(String attrGroupName)
      configure 에 정의된 attribute 를 구한다.
      Parameters:
      attrGroupName - attribute group 이름
      Returns:
      attributeName List
    • getArtifactizableClassName

      public Class<?> getArtifactizableClassName() throws TorqueException
      이 ItemType 이 서술하고 있는 Artifacatizable class 를 구한다.
      Returns:
      Artifactizable class
      Throws:
      TorqueException - 조회 중 오류가 발생한 경우