Class NewItemFactory

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

public class NewItemFactory extends Object
새로운 Item 을 등록하기 위하여 해당 Module 에서의 Item object 을 새로 만든다. 실제로 Item 의 내용을 등록하는 곳은 ItemFactory.getFactory(item) 이다. NewItemFactory
Author:
Youngho Cho
  • Constructor Details

    • NewItemFactory

      public NewItemFactory(Module module)
      Module 에 대한 factory 를 생성한다.
      Parameters:
      module - 대상 Module
  • Method Details

    • getFactory

      public static NewItemFactory getFactory(Module module)
      Module 에 대한 NewItemFactory 를 구한다. MVC pipeline 에서 new Item 을 얻는 point 이다.
      Parameters:
      module - 대상 Module
      Returns:
      NewItemFactory
    • getNewItem

      public Item getNewItem(ItemType itemType, ActivitySet activitySet) throws Exception
      Creates a new Item with a template item. Module 에 TemplateName 이 'Defaut' + itemType.getName() 이 존재하면, 이것을 적용한다.
      Parameters:
      itemType - 생성할 item 의 ItemType
      activitySet - 현재 처리중인 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 의 ItemType
      scope - 생성할 item 의 Scope
      activitySet - can be null, activitySet 이 필요한 경우는 새로운 모듈생성시에 기본 template 를 생성할 때 필요
      Returns:
      new item
      Throws:
      TorqueException - item 생성 중 오류가 발생한 경우
    • getNewItem

      public Item getNewItem(Item template) throws TorqueException
      Creates a new Item by template item.
      Parameters:
      template - item
      Returns:
      new item
      Throws:
      TorqueException - item 생성 중 오류가 발생한 경우