Package com.easydesk.om.util
Class NewItemFactory
java.lang.Object
com.easydesk.om.util.NewItemFactory
새로운 Item 을 등록하기 위하여 해당 Module 에서의 Item object 을 새로 만든다.
실제로 Item 의 내용을 등록하는 곳은 ItemFactory.getFactory(item) 이다.
NewItemFactory
- Author:
- Youngho Cho
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NewItemFactorygetFactory(Module module) Module 에 대한 NewItemFactory 를 구한다.getNewItem(Item template) Creates a new Item by template item.getNewItem(ItemType itemType, ActivitySet activitySet) Creates a new Item with a template item.getNewItem(ItemType itemType, Scope scope, ActivitySet activitySet) Creates a new Item.
-
Constructor Details
-
NewItemFactory
Module 에 대한 factory 를 생성한다.- Parameters:
module- 대상 Module
-
-
Method Details
-
getFactory
Module 에 대한 NewItemFactory 를 구한다. MVC pipeline 에서 new Item 을 얻는 point 이다.- Parameters:
module- 대상 Module- Returns:
- NewItemFactory
-
getNewItem
Creates a new Item with a template item. Module 에 TemplateName 이 'Defaut' + itemType.getName() 이 존재하면, 이것을 적용한다.- Parameters:
itemType- 생성할 item 의 ItemTypeactivitySet- 현재 처리중인 ActivitySet- Returns:
- new item
- Throws:
Exception- item 생성 중 오류가 발생한 경우
-
getNewItem
public Item getNewItem(ItemType itemType, Scope scope, ActivitySet activitySet) throws TorqueException Creates a new Item.- Parameters:
itemType- 생성할 item 의 ItemTypescope- 생성할 item 의 ScopeactivitySet- can be null, activitySet 이 필요한 경우는 새로운 모듈생성시에 기본 template 를 생성할 때 필요- Returns:
- new item
- Throws:
TorqueException- item 생성 중 오류가 발생한 경우
-
getNewItem
Creates a new Item by template item.- Parameters:
template- item- Returns:
- new item
- Throws:
TorqueException- item 생성 중 오류가 발생한 경우
-