Class TransactionContext

java.lang.Object
com.easydesk.context.TransactionContext

public class TransactionContext extends Object
UserId, Current Module, Current ItemType, Current ActivitySetType Request 진입 초기에 설정된다. LoginController 보다 앞서서. 만약 Anonymous 가 중간에 Login 을 하면 TransactionContext 는 내용을 복사 새로 생성되어 내용은 전달되어야 한다. TransactionContext ]* @author Youngho Cho
  • Constructor Details

    • TransactionContext

      public TransactionContext(Long userId, Long moduleId, Integer itemTypeId, Integer activitySetTypeId)
      Parameters:
      userId -
      moduleId - current Module Id (= EasyDesk Group Id)
      itemTypeId -
      activitySetTypeId -
  • Method Details

    • getUserId

      public Long getUserId()
      Returns:
      userId
    • getModuleId

      public Long getModuleId()
      Returns:
      moduleId current Module Id (= EasyDesk Group Id)
    • getItemTypeId

      public Integer getItemTypeId()
      Returns:
      itemTypeId
    • getActivitySetTypeId

      public Integer getActivitySetTypeId()
      Returns:
      activitySetTypeId
    • withItemTypeId

      public TransactionContext withItemTypeId(Integer newItemTypeId)
      itemTypeId 만 바꾼 새 TransactionContext 를 만든다 (immutable copy).
      Parameters:
      newItemTypeId - 새 itemTypeId
      Returns:
      새 TransactionContext
    • withActivitySetTypeId

      public TransactionContext withActivitySetTypeId(Integer newActivitySetTypeId)
      activitySetTypeId 만 바꾼 새 TransactionContext 를 만든다 (immutable copy).
      Parameters:
      newActivitySetTypeId - 새 activitySetTypeId
      Returns:
      새 TransactionContext
    • toString

      public String toString()
      Overrides:
      toString in class Object