Package com.easydesk.context
Class TransactionContext
java.lang.Object
com.easydesk.context.TransactionContext
UserId, Current Module, Current ItemType, Current ActivitySetType
Request 진입 초기에 설정된다. LoginController 보다 앞서서.
만약 Anonymous 가 중간에 Login 을 하면 TransactionContext 는 내용을 복사 새로 생성되어 내용은 전달되어야 한다.
TransactionContext
]* @author Youngho Cho
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionContext(Long userId, Long moduleId, Integer itemTypeId, Integer activitySetTypeId) -
Method Summary
Modifier and TypeMethodDescriptiontoString()withActivitySetTypeId(Integer newActivitySetTypeId) activitySetTypeId 만 바꾼 새 TransactionContext 를 만든다 (immutable copy).withItemTypeId(Integer newItemTypeId) itemTypeId 만 바꾼 새 TransactionContext 를 만든다 (immutable copy).
-
Constructor Details
-
Method Details
-
getUserId
- Returns:
- userId
-
getModuleId
- Returns:
- moduleId current Module Id (= EasyDesk Group Id)
-
getItemTypeId
- Returns:
- itemTypeId
-
getActivitySetTypeId
- Returns:
- activitySetTypeId
-
withItemTypeId
itemTypeId 만 바꾼 새 TransactionContext 를 만든다 (immutable copy).- Parameters:
newItemTypeId- 새 itemTypeId- Returns:
- 새 TransactionContext
-
withActivitySetTypeId
activitySetTypeId 만 바꾼 새 TransactionContext 를 만든다 (immutable copy).- Parameters:
newActivitySetTypeId- 새 activitySetTypeId- Returns:
- 새 TransactionContext
-
toString
-