Package com.easydesk.om.util
Class AttributeGroupFactory
java.lang.Object
com.easydesk.om.util.AttributeGroupFactory
ItemType 의 AttributeGroup 을 생성하고 관리하는 factory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreate default groups upon global item type creation and add add system default ItemTypeAttribute.voidcreateDefaultGroups(boolean includes) Create default groups upon global item type creation.createNewGroup(AttributeGroupType template) Creates new global attribute group.Class<?> 이 ItemType 이 서술하고 있는 Artifacatizable class 를 구한다.getArtifactizableColumnMap(String attrGroupName) schema 에 정의된 artifactizable attribute 를 구한다.static AttributeGroupFactorygetFactory(ItemType itemType) ItemType 에 대한 factory 를 구한다.getProperties(String attrGroupName) configure 에 정의된 attribute 를 구한다.
-
Constructor Details
-
AttributeGroupFactory
ItemType 에 대한 factory 를 생성한다.- Parameters:
itemType- 대상 ItemType
-
-
Method Details
-
getFactory
ItemType 에 대한 factory 를 구한다.- Parameters:
itemType- 대상 ItemType- Returns:
- AttributeGroupFactory
-
createNewGroup
Creates new global attribute group.- Parameters:
template- 생성할 group 의 AttributeGroupType- Returns:
- new global attribute group
- Throws:
Exception- group 생성 중 오류가 발생한 경우
-
createDefaultGroups
Create default groups upon global item type creation and add add system default ItemTypeAttribute.- Throws:
Exception- group 생성 중 오류가 발생한 경우
-
createDefaultGroups
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
configure 에 정의된 attribute 를 구한다.- Parameters:
attrGroupName- attribute group 이름- Returns:
- attributeName List
-
getArtifactizableClassName
이 ItemType 이 서술하고 있는 Artifacatizable class 를 구한다.- Returns:
- Artifactizable class
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-