Package com.easydesk.om
Class Item
java.lang.Object
com.easydesk.om.BaseItem
com.easydesk.om.Item
- All Implemented Interfaces:
Cacheable,Identifiable<Long>,Serializable,ColumnAccessByName,ObjectModel,Persistent
- Direct Known Subclasses:
ItemSearchImpl
DOCUMENT ME!
- Version:
- $id: Item.java $Revision$, 03-03-22 8:15:33 PM KST
- Author:
- YounghoCho
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA FederatedId has this format: DOMAIN-CODE-ID For example: nannet.co.kr-PACS-1 The domain can also be null. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringparent-child relationship childstatic final Stringparent-child relationship parentFields inherited from class com.easydesk.om.BaseItem
collActivitys, collAttachments, collAttributeValues, collDependsRelatedByObservedId, collDependsRelatedByObserverId, collItemActivitySets, collItemCounters, collItemTemplateInfos, collTemplateTemplateGroups -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassign(ActivitySet activitySet, EasyDeskUser assignee, EasyDeskUser assigner, Attribute attribute) Assigns user to item.assign(ActivitySet activitySet, EasyDeskUser assignee, EasyDeskUser assigner, Attribute attribute, Attachment attachment) Assigns user to item.assign(ActivitySet activitySet, String description, EasyDeskUser assignee, EasyDeskUser assigner, Attribute attribute, Attachment attachment) Assigns user to item.voidclear()clear this Serializable instance cachedeassign(ActivitySet activitySet, EasyDeskUser assignee, EasyDeskUser assigner, AttributeValue attVal, Attachment attachment) Used to delete a user attribute value.getActivity(EasyDeskUser user) Returns list of Activity objects associated with this Item and new userid .getActivity(EasyDeskUser user, ActivitySetType activitySetType) Returns list of Activity objects associated with this Item, new userid and acitivtySetType idgetActivity(EasyDeskUser user, Attribute attribute, ActivitySetType activitySetType) Returns list of Activity objects associated with this Item, new userid and attribute and acitivtySetType idgetActivity(EasyDeskUser user, Attribute attribute, List<ActivitySetType> activitySetTypes) Returns list of Activity objects associated with this Item, new userid and attribute and acitivtySetType idgetActivity(EasyDeskUser user, Long activitySetId) Returns list of Activity objects associated with this Item and new userid for activitySetId.getActivity(EasyDeskUser user, List<Attribute> attributes, List<ActivitySetType> activitySetTypes) Returns list of Activity objects associated with this Item, new userid and attribute and acitivtySetType idgetActivity(EasyDeskUser user, List<Attribute> attributes, List<ActivitySetType> activitySetTypes, boolean exclude) Returns list of Activity objects associated with this Item, new userid and attribute and acitivtySetType id이 item 을 생성할 때 만들어진 ActivitySet 을 구한다.Returns the combined output from getChildren() and getParents()getAllUsersToEmail(String[] action) getAttributeValue(Attribute attribute) 아이템의 속성값을 구하는 단일 Method 모든 속성값은 이 Method 를 통하여 구하여져야 한다.getAttributeValue(Attribute attribute, EasyDeskUser user) DOCUMENT ME!getAttributeValues(Criteria criteria) item 의 AttributeValue 목록을 valueId 순서로 구한다.AttributeValues that are set for this Item Includes deleted AttributeValues if the attribute is MultipleAttribute type Except personals support infoReturns list of child dependencies i.e., related to this item through the DEPEND table.getChildren(boolean hideDeleted) Returns list of child dependencies i.e., related to this item through the DEPEND table.The user that created this artifact.The date the item was created.DOCUMENT ME!getId()Get the Id of the Identifiable Entity.이 item 의 ItemActivitySet 을 구한다.The last activitySet to the item.getLastActivitySet(Attribute[] attributes, Integer... typeIds) The last modification made to the item which given activitySetTypesgetLastActivitySet(EasyDeskUser user, Integer typeId) The last modification made to the item which given activitySetTypegetLastActivitySet(EasyDeskUser user, Integer... typeIds) The last modification made to the item which given activitySetTypegetLastActivitySet(Integer... typeIds) The last modification made to the item which given activitySetTypes이 아이템의 Locale 을 구한다.DOCUMENT ME!getModuleAttribute(Attribute attribute) attribute 에 해당하는 ModuleAttribute 를 구한다.org.apache.commons.collections4.map.LinkedMap<String, AttributeValue> Calls the overloaded version by passing 'true' so that only active attributes will be considered.org.apache.commons.collections4.map.LinkedMap<String, AttributeValue> getModuleAttributeValuesMap(boolean isActiveOnly) AttributeValues that are relevant to the item's current module.The ModuleItemType related to this item's module and item type.getModuleOption(AttributeOption attributeOption) attributeOption 에 해당하는 ModuleOption 을 구한다.static ItemgetNewInstance(ModuleItemType rmit) Gets an item associated to a Module TODO : 이 method 를 직접 부르지 않고 NewItemFactory 를 통해 사용한다.static ItemgetNewInstance(Module module, ItemType itemType) Gets an item associated to a Module TODO : 이 method 를 직접 부르지 않고 NewItemFactory 를 통해 사용한다.static ItemgetNewInstance(Module module, ItemType itemType, boolean applyDefaultValue) Gets an item associated to a Module TODO : 검색 이외 에는 이 method 를 직접 부르지 않고 NewItemFactory 를 통해 사용한다.Returns list of parent dependencies i.e., related to this item through the DEPEND table.getParents(boolean hideDeleted) Returns list of parent dependencies i.e., related to this item through the DEPEND table.getParents(boolean hideDeleted, Integer... dependTypeIds) Returns list of parent dependencies i.e., related to this item through the DEPEND table.Gets the UniqueId for this Item.static StringgetUniqueId(String prefix, int count) Gets the UniqueId for this Item.static StringgetUniqueId(String prefix, String count) Gets the UniqueId for this Item.Returns attribute values for all user attributes.getUserAttributeValues(boolean includeDeleted) Returns attribute values for all active user attributes which defined in ModuleItemTypegetUserAttributeValues(Attribute attribute) Returns attribute values for all user attributes.protected List<AttributeValue> getUserAttributeValues(List<Attribute> attributes, boolean includeDeleted) user attribute 들의 값을 구한다.protected Set<EasyDeskUser> getUsersToEmail(String[] action, Item item, Set<EasyDeskUser> users) Returns the users which should be notified when this item is modified.booleanFeatureDetection 이다.booleanhasAssigned(Attribute attribute) item 이 이미 attribute 에 assigned 되어 있는지boolean이 아이템의 attribute 의 값을 가지고 있는지 확인한다. attributeValue.isSet() 의 short path 이다.boolean이 아이템의 attribute 의 값이 checkValue 를 가지고 있는지 확인한다.booleanisAssigned(EasyDeskUser assignee, Attribute attribute) 사용자가 이미 assigned 되어 있는지 확인한다.booleanisCreator(EasyDeskUser user) check getCreatedBy and anonymousbooleanWhether this item is an enter item template.voidsave(Connection dbConn) DOCUMENT ME!voidsetFederatedId(String id) DOCUMENT ME!voidSets the Id of the Identifiable Entity.voidDOCUMENT ME!voidDOCUMENT ME!voidsetUniqueId(String id) NoOp for intake's benefittoString()voidupdateLastActivitySet(ActivitySet activitySet) Item 의 update 시에 ItemActivitySet 을 update 한다.Methods inherited from class com.easydesk.om.BaseItem
addActivity, addActivity, addAttachment, addAttachment, addAttributeValue, addAttributeValue, addDependRelatedByObservedId, addDependRelatedByObservedId, addDependRelatedByObserverId, addDependRelatedByObserverId, addItemActivitySet, addItemActivitySet, addItemCounter, addItemCounter, addItemTemplateInfo, addItemTemplateInfo, addTemplateTemplateGroup, addTemplateTemplateGroup, copy, copy, copy, copy, copyInto, copyInto, copyInto, copyInto, equals, getActivitys, getActivitys, getActivitys, getActivitys, getActivitysJoinActivitySet, getActivitysJoinActivitySet, getActivitysJoinAttachment, getActivitysJoinAttachment, getActivitysJoinAttribute, getActivitysJoinAttribute, getActivitysJoinAttributeOptionRelatedByNewOptionId, getActivitysJoinAttributeOptionRelatedByNewOptionId, getActivitysJoinAttributeOptionRelatedByOldOptionId, getActivitysJoinAttributeOptionRelatedByOldOptionId, getActivitysJoinDepend, getActivitysJoinDepend, getActivitysJoinEasyDeskUserImplRelatedByNewUserId, getActivitysJoinEasyDeskUserImplRelatedByNewUserId, getActivitysJoinEasyDeskUserImplRelatedByOldUserId, getActivitysJoinEasyDeskUserImplRelatedByOldUserId, getAttachments, getAttachments, getAttachments, getAttachments, getAttachmentsJoinAttachmentType, getAttachmentsJoinAttachmentType, getAttachmentsJoinEasyDeskUserImplRelatedByCreatedBy, getAttachmentsJoinEasyDeskUserImplRelatedByCreatedBy, getAttachmentsJoinEasyDeskUserImplRelatedByModifiedBy, getAttachmentsJoinEasyDeskUserImplRelatedByModifiedBy, getAttributeValues, getAttributeValues, getAttributeValues, getAttributeValuesJoinAttribute, getAttributeValuesJoinAttribute, getAttributeValuesJoinAttributeOption, getAttributeValuesJoinAttributeOption, getAttributeValuesJoinDepend, getAttributeValuesJoinDepend, getAttributeValuesJoinEasyDeskUserImpl, getAttributeValuesJoinEasyDeskUserImpl, getByName, getByPeerName, getByPosition, getDependRelatedByObservedIds, getDependRelatedByObservedIds, getDependRelatedByObservedIds, getDependRelatedByObservedIds, getDependRelatedByObservedIdsJoinDependType, getDependRelatedByObservedIdsJoinDependType, getDependRelatedByObservedIdsJoinItemRelatedByObserverId, getDependRelatedByObservedIdsJoinItemRelatedByObserverId, getDependRelatedByObserverIds, getDependRelatedByObserverIds, getDependRelatedByObserverIds, getDependRelatedByObserverIds, getDependRelatedByObserverIdsJoinDependType, getDependRelatedByObserverIdsJoinDependType, getDependRelatedByObserverIdsJoinItemRelatedByObservedId, getDependRelatedByObserverIdsJoinItemRelatedByObservedId, getEasyDeskModule, getEasyDeskModule, getFieldNames, getForeignKeyForEasyDeskModule, getForeignKeyForItemType, getIdCount, getIdDomain, getIdPrefix, getItemActivitySets, getItemActivitySets, getItemActivitySets, getItemActivitySets, getItemActivitySetsJoinActivitySetRelatedByCreatedTransId, getItemActivitySetsJoinActivitySetRelatedByCreatedTransId, getItemActivitySetsJoinActivitySetRelatedByLastTransId, getItemActivitySetsJoinActivitySetRelatedByLastTransId, getItemCounters, getItemCounters, getItemCounters, getItemCounters, getItemCountersJoinAttribute, getItemCountersJoinAttribute, getItemId, getItemTemplateInfos, getItemTemplateInfos, getItemTemplateInfos, getItemTemplateInfos, getItemTemplateInfosJoinScope, getItemTemplateInfosJoinScope, getItemType, getItemType, getLocaleValue, getModuleId, getPeer, getPrimaryKey, getTableMap, getTemplateTemplateGroups, getTemplateTemplateGroups, getTemplateTemplateGroups, getTemplateTemplateGroups, getTemplateTemplateGroupsJoinTemplateGroup, getTemplateTemplateGroupsJoinTemplateGroup, getTypeId, hashCode, initActivitys, initAttachments, initAttributeValues, initDependRelatedByObservedIds, initDependRelatedByObserverIds, initItemActivitySets, initItemCounters, initItemTemplateInfos, initTemplateTemplateGroups, isActivitysInitialized, isAttachmentsInitialized, isAttributeValuesInitialized, isCacheOnSave, isDeleted, isDependRelatedByObservedIdsInitialized, isDependRelatedByObserverIdsInitialized, isItemActivitySetsInitialized, isItemCountersInitialized, isItemTemplateInfosInitialized, isLoading, isModified, isNew, isRemoved, isSaving, isTemplateTemplateGroupsInitialized, resetActivity, resetAttachment, resetAttributeValue, resetDependRelatedByObservedId, resetDependRelatedByObserverId, resetItemActivitySet, resetItemCounter, resetItemTemplateInfo, resetModified, resetTemplateTemplateGroup, save, save, setByName, setByPeerName, setByPosition, setDeleted, setEasyDeskModule, setEasyDeskModuleKey, setIdCount, setIdDomain, setIdPrefix, setItemId, setItemType, setItemTypeKey, setLoading, setLocaleValue, setModified, setModuleId, setNew, setPrimaryKey, setPrimaryKey, setRemoved, setSaving, setTypeId, valueEquals
-
Field Details
-
GET_CHILDREN
parent-child relationship child- See Also:
-
GET_PARENTS
parent-child relationship parent- See Also:
-
-
Constructor Details
-
Item
protected Item()new items are created only when the itemtype and module are known Or by the Peer when retrieving from db -
Item
Creates a new Item object.- Parameters:
module- item 이 속할 ModuleitemType- item 의 ItemType- Throws:
TorqueException- 생성 중 오류가 발생한 경우
-
-
Method Details
-
setId
Description copied from interface:IdentifiableSets the Id of the Identifiable Entity.- Specified by:
setIdin interfaceIdentifiable<Long>- Parameters:
id- The new Id of the entity
-
getId
Description copied from interface:IdentifiableGet the Id of the Identifiable Entity.- Specified by:
getIdin interfaceIdentifiable<Long>- Returns:
- The Id of the entity.
-
getNewInstance
Gets an item associated to a Module TODO : 이 method 를 직접 부르지 않고 NewItemFactory 를 통해 사용한다.- Parameters:
rmit- item 이 속할 ModuleItemType- Returns:
- 새 item (기본값 적용)
- Throws:
TorqueException- 생성 중 오류가 발생한 경우
-
getNewInstance
Gets an item associated to a Module TODO : 이 method 를 직접 부르지 않고 NewItemFactory 를 통해 사용한다.- Parameters:
module- item 이 속할 ModuleitemType- item 의 ItemType- Returns:
- 새 item (기본값 적용)
- Throws:
TorqueException- 생성 중 오류가 발생한 경우
-
getNewInstance
public static Item getNewInstance(Module module, ItemType itemType, boolean applyDefaultValue) throws TorqueException Gets an item associated to a Module TODO : 검색 이외 에는 이 method 를 직접 부르지 않고 NewItemFactory 를 통해 사용한다.- Parameters:
module- item 이 속할 ModuleitemType- item 의 ItemTypeapplyDefaultValue- 기본값을 적용할지 여부- Returns:
- 새 item
- Throws:
TorqueException- 생성 중 오류가 발생한 경우
-
setModule
DOCUMENT ME!- Parameters:
module- DOCUMENT ME!
-
getModule
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getLocale
이 아이템의 Locale 을 구한다.- Returns:
- locale
-
setLocale
DOCUMENT ME!- Parameters:
locale- DOCUMENT ME!
-
isCreator
check getCreatedBy and anonymous- Parameters:
user- 확인할 사용자- Returns:
- boolean
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
isTemplate
public boolean isTemplate()Whether this item is an enter item template.- Returns:
- true/false
-
has
FeatureDetection 이다. ModuleAttribute 를 가지고 있는지- Parameters:
attribute- 확인할 Attribute- Returns:
- true/false which has ModuleAttribute ( FeatureDetection )
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getModuleAttributeValuesMap
public org.apache.commons.collections4.map.LinkedMap<String,AttributeValue> getModuleAttributeValuesMap() throws TorqueExceptionCalls the overloaded version by passing 'true' so that only active attributes will be considered.MVC 로직 안에서 item 에 관련된 AttributeValue 를 처리할 때 항상 이 method 를 사용한다.
- Returns:
- active ModuleAttribute 의 { attribute 이름(대문자), AttributeValue } map
- Throws:
TorqueException- 조회 중 오류가 발생한 경우- See Also:
-
getModuleAttributeValuesMap
public org.apache.commons.collections4.map.LinkedMap<String,AttributeValue> getModuleAttributeValuesMap(boolean isActiveOnly) throws TorqueException AttributeValues that are relevant to the item's current module. Empty AttributeValues that are relevant for the module, but have not been set for the item are included. The values are ordered according to the module's preference and it has not include user specific value. 사용상 주의 :ModuleAttributeValuesMap (MVC pipeline 안에서) VS AttributeValues (Search Process 에서)
- ModuleAttributeValuesMap : Module 에 Assign 된 Item 이 가질 수 있는 속성들 (특정 사용자 값은 제외된다.)
- AttributeValues : 일반적 Method , ItemSearch 등 Module 에 한정되지 않은 것에만 적용된다.
- Parameters:
isActiveOnly- TRUE if only active attributes need to be considered and FALSE if both active and inactive attributes need to be considered ( ItemSearch 에서 사용 )- Returns:
- linkedMap
- Throws:
TorqueException- 조회 중 오류가 발생한 경우- See Also:
-
getModuleItemType
The ModuleItemType related to this item's module and item type.- Returns:
- a
ModuleItemTypeif this item's module and item type are not null, otherwise return null. - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getAttributeValuesMap
AttributeValues that are set for this Item Includes deleted AttributeValues if the attribute is MultipleAttribute type Except personals support info- Returns:
- { attribute 이름, AttributeValue } map
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getAttributeValues
item 의 AttributeValue 목록을 valueId 순서로 구한다. MultiValued 속성의 순서를 보장한다.- Overrides:
getAttributeValuesin classBaseItem- Parameters:
criteria- 조회 조건- Returns:
- AttributeValue 목록
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getItemActivitySet
이 item 의 ItemActivitySet 을 구한다.- Returns:
- ItemActivitySet
-
getActivitySet
이 item 을 생성할 때 만들어진 ActivitySet 을 구한다.- Returns:
- activitySet which was created by this item creation
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getCreatedDate
The date the item was created.- Returns:
- a
Datevalue - Throws:
TorqueException- if an error occursException
-
getCreatedBy
The user that created this artifact.- Returns:
- a
Uservalue - Throws:
Exception- 처리 중 오류가 발생한 경우
-
getModuleAttribute
attribute 에 해당하는 ModuleAttribute 를 구한다.- Parameters:
attribute- 대상 Attribute- Returns:
- moduleAttribute for input attribute
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getModuleOption
attributeOption 에 해당하는 ModuleOption 을 구한다.- Parameters:
attributeOption- 대상 AttributeOption- Returns:
- moduleOption for input attributeOption
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
hasValue
이 아이템의 attribute 의 값을 가지고 있는지 확인한다. attributeValue.isSet() 의 short path 이다.- Parameters:
attribute- 확인할 Attribute- Returns:
- 값이 설정되어 있으면
true - Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
hasValue
이 아이템의 attribute 의 값이 checkValue 를 가지고 있는지 확인한다.- Parameters:
attribute- 확인할 AttributecheckValue- 확인할 값- Returns:
- checkValue 를 가지고 있으면
true - Throws:
Exception- 처리 중 오류가 발생한 경우
-
getAttributeValue
아이템의 속성값을 구하는 단일 Method 모든 속성값은 이 Method 를 통하여 구하여져야 한다.- Parameters:
attribute- can not be null- Returns:
- attributeValue of this item
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getAttributeValue
public AttributeValue getAttributeValue(Attribute attribute, EasyDeskUser user) throws TorqueException DOCUMENT ME!- Parameters:
attribute- DOCUMENT ME!user- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
getUserAttributeValues
Returns attribute values for all user attributes.- Returns:
- attributeValue list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getUserAttributeValues
Returns attribute values for all active user attributes which defined in ModuleItemType- Parameters:
includeDeleted- 삭제된 값을 포함할지 여부- Returns:
- attributeValue list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getUserAttributeValues
Returns attribute values for all user attributes.- Parameters:
attribute- 대상 user attribute- Returns:
- attributeValue list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getUserAttributeValues
protected List<AttributeValue> getUserAttributeValues(List<Attribute> attributes, boolean includeDeleted) throws TorqueException user attribute 들의 값을 구한다.- Parameters:
attributes- user attribute 목록 (todo change to user attribute collection)includeDeleted- 삭제된 값을 포함할지 여부- Returns:
- user attributeValue ids list for this item
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getActivity
Returns list of Activity objects associated with this Item and new userid .- Parameters:
user- 대상 사용자 (new user id)- Returns:
- activity list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getActivity
Returns list of Activity objects associated with this Item and new userid for activitySetId.- Parameters:
user- can be nullactivitySetId- 대상 ActivitySet id- Returns:
- List activities
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getActivity
public List<Activity> getActivity(EasyDeskUser user, ActivitySetType activitySetType) throws TorqueException Returns list of Activity objects associated with this Item, new userid and acitivtySetType id- Parameters:
user- can be nullactivitySetType- Integer- Returns:
- activity list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getActivity
public List<Activity> getActivity(EasyDeskUser user, Attribute attribute, ActivitySetType activitySetType) throws TorqueException Returns list of Activity objects associated with this Item, new userid and attribute and acitivtySetType id- Parameters:
user- can be nullattribute- 대상 AttributeactivitySetType- 대상 ActivitySetType- Returns:
- activity list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getActivity
public List<Activity> getActivity(EasyDeskUser user, Attribute attribute, List<ActivitySetType> activitySetTypes) throws TorqueException Returns list of Activity objects associated with this Item, new userid and attribute and acitivtySetType id- Parameters:
user- can be nullattribute- if null than allactivitySetTypes- Integer- Returns:
- activity list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getActivity
public List<Activity> getActivity(EasyDeskUser user, List<Attribute> attributes, List<ActivitySetType> activitySetTypes) throws TorqueException Returns list of Activity objects associated with this Item, new userid and attribute and acitivtySetType id- Parameters:
user- can be nullattributes- 대상 Attribute 목록activitySetTypes- 대상 ActivitySetType 목록- Returns:
- activity list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getActivity
public List<Activity> getActivity(EasyDeskUser user, List<Attribute> attributes, List<ActivitySetType> activitySetTypes, boolean exclude) throws TorqueException Returns list of Activity objects associated with this Item, new userid and attribute and acitivtySetType id- Parameters:
user- can be nullattributes- 대상 Attribute 목록activitySetTypes- 대상 ActivitySetType 목록exclude- include null EndDate- Returns:
- activity list
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getLastActivitySet
The last activitySet to the item.- Returns:
- last activitySet
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
getLastActivitySet
The last modification made to the item which given activitySetTypes- Parameters:
typeIds- activitySetType ids array- Returns:
- last activitySet
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
getLastActivitySet
The last modification made to the item which given activitySetTypes- Parameters:
attributes- 대상 Attribute 배열typeIds- activitySetType ids array- Returns:
- last activitySet
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
getLastActivitySet
The last modification made to the item which given activitySetType- Parameters:
user- 대상 사용자typeId- activitySetType id- Returns:
- last activitySet
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
getLastActivitySet
The last modification made to the item which given activitySetType- Parameters:
user- 대상 사용자typeIds- activitySetType ids array- Returns:
- last activitySet
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
updateLastActivitySet
Item 의 update 시에 ItemActivitySet 을 update 한다.- Parameters:
activitySet- 마지막 ActivitySet- Throws:
Exception- 처리 중 오류가 발생한 경우
-
hasAssigned
item 이 이미 attribute 에 assigned 되어 있는지- Parameters:
attribute- 확인할 user Attribute- Returns:
- assigned 되어 있으면
true - Throws:
Exception- 처리 중 오류가 발생한 경우
-
isAssigned
사용자가 이미 assigned 되어 있는지 확인한다.- Parameters:
assignee- 확인할 사용자attribute- 확인할 user Attribute- Returns:
- assigned 되어 있으면
true - Throws:
Exception- 처리 중 오류가 발생한 경우
-
assign
public ActivitySet assign(ActivitySet activitySet, EasyDeskUser assignee, EasyDeskUser assigner, Attribute attribute) throws Exception Assigns user to item.- Parameters:
activitySet- 현재 처리중인 ActivitySetassignee- assign 받는 사용자assigner- assign 하는 사용자attribute- 대상 user Attribute- Returns:
- ActivitySet
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
assign
public ActivitySet assign(ActivitySet activitySet, EasyDeskUser assignee, EasyDeskUser assigner, Attribute attribute, Attachment attachment) throws Exception Assigns user to item.- Parameters:
activitySet- 현재 처리중인 ActivitySetassignee- assign 받는 사용자assigner- assign 하는 사용자attribute- 대상 user Attributeattachment- can be null- Returns:
- ActivitySet
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
assign
public ActivitySet assign(ActivitySet activitySet, String description, EasyDeskUser assignee, EasyDeskUser assigner, Attribute attribute, Attachment attachment) throws Exception Assigns user to item. Item 의 Status 가 assigned 가 아니면 Status 를 assgined 로 변경한다.- Parameters:
activitySet- 현재 처리중인 ActivitySetdescription- activity description can be nullassignee- assign 받는 사용자assigner- assign 하는 사용자attribute- 대상 user Attributeattachment- can be null- Returns:
- ActivitySet
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
deassign
public ActivitySet deassign(ActivitySet activitySet, EasyDeskUser assignee, EasyDeskUser assigner, AttributeValue attVal, Attachment attachment) throws Exception Used to delete a user attribute value.- Parameters:
activitySet- 현재 처리중인 ActivitySetassignee- assign 이 해제되는 사용자assigner- assign 을 해제하는 사용자attVal- 삭제할 user AttributeValueattachment- can be null- Returns:
- ActivitySet
- Throws:
Exception- 처리 중 오류가 발생한 경우
-
getUsersToEmail
protected Set<EasyDeskUser> getUsersToEmail(String[] action, Item item, Set<EasyDeskUser> users) throws Exception Returns the users which should be notified when this item is modified. The set contains those users associated with user attributes for this item, plus the creator of the item. TODO : Attribute 의 Action field 를 사용하지 않고 재 작성 필요.- Parameters:
action- TODO : Attribute 의 action field 는 사용하지 않는다.item- Usually a reference to this or a dependent item.users- The list of users to append to, ornullto create a new list.- Throws:
Exception
-
getAllUsersToEmail
- Parameters:
action-- Returns:
- Throws:
Exception
-
getAllDependencies
Returns the combined output from getChildren() and getParents()- Throws:
TorqueException
-
getChildren
Returns list of child dependencies i.e., related to this item through the DEPEND table.- Throws:
TorqueException
-
getChildren
Returns list of child dependencies i.e., related to this item through the DEPEND table.- Parameters:
hideDeleted-- Throws:
TorqueException
-
getParents
Returns list of parent dependencies i.e., related to this item through the DEPEND table.- Throws:
TorqueException
-
getParents
Returns list of parent dependencies i.e., related to this item through the DEPEND table.- Parameters:
hideDeleted- hide deleted depend or not- Returns:
- parents depend list
- Throws:
TorqueException
-
getParents
public List<Depend> getParents(boolean hideDeleted, Integer... dependTypeIds) throws TorqueException Returns list of parent dependencies i.e., related to this item through the DEPEND table.- Parameters:
hideDeleted- hide deleted depend or notdependTypeIds- array- Returns:
- parents depend list
- Throws:
TorqueException
-
save
DOCUMENT ME!- Specified by:
savein interfacePersistent- Overrides:
savein classBaseItem- Parameters:
dbConn- DOCUMENT ME!- Throws:
Exception- DOCUMENT ME!
-
toString
-
getUniqueId
Gets the UniqueId for this Item.- Returns:
- unique id (예: PACS-1)
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
getUniqueId
Gets the UniqueId for this Item.- Parameters:
prefix- moduleCodecount- seq count in module- Returns:
prefix-count형식의 unique id
-
getUniqueId
Gets the UniqueId for this Item.- Parameters:
prefix- moduleCodecount- seq count in module- Returns:
prefix-count형식의 unique id
-
setUniqueId
NoOp for intake's benefit- Parameters:
id- 사용하지 않는다.
-
getFederatedId
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
setFederatedId
DOCUMENT ME!- Parameters:
id- DOCUMENT ME!
-
getMethodCache
- Specified by:
getMethodCachein interfaceCacheable- Returns:
- MethodResultCache
-
clear
public void clear()Description copied from interface:Cacheableclear this Serializable instance cache
-