Package com.easydesk.util.word
Class QueryResult
java.lang.Object
com.easydesk.util.word.QueryResult
- All Implemented Interfaces:
Serializable
This class is created by the ItemSearch object to contain a single result. It represents a row on the ItemList.vm
screen. It is mostly a data structure with some additional functionality to format a multivalued attribute as CSV.
Emblem, Scope 는 특별 처리
- Author:
- 조 영 호
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ActivitySetTypeGet theAttributerelated thru getModuleId().final ListGet the AttributeValues value.final ListGet the AttributeValues value as CSV.final ListgetAttributeValuesAsCSV(List preferences, Format format) preferences 가 주어지면 Emblem 과 SystemUniqueId 는 별도 처리한다.final StringContentId 를 구한다.final LongDOCUMENT ME!final EasyDeskUserFOR CACHEfinal DateDOCUMENT ME!final StringEmblem 은 db 에 원본 이미지의 full 경로가 저장되고 있다.final StringGet the IdCount value.final StringGet the IdPrefix value.getItem()DOCUMENT ME!final StringGet the ItemId value.final IntegerGet the ItemTypeId value.getJSONKeyValueString(List muas, Map alias, Format format) Query Result 를 json format 으로 처리한다.Query Result 를 json format 으로 처리한다. { attributeName: value, attributeName: [ ... ] }getJSONString(List muas, Format formatter) Query Result 를 json format 으로 처리한다. { attributeName: value, attributeName: [ ... ] }getJSONString(List muas, Format formatter, boolean skipBrace) Query Result 를 json format 으로 처리한다. { attributeName: value, attributeName: [ ... ] }getJSONString(List muas, Map alias, Format formatter) Query Result 를 json format 으로 처리한다. { attributeName: value, attributeName: [ ... ] }getJSONString(List muas, Map alias, Format formatter, boolean skipBrace) Query Result 를 json format 으로 처리한다. { attributeName: value, attributeName: [ ... ] }final StringgetLastAction(Locale locale) 아이템의 최종 행동을 보인다. verbose list 에만 적용DOCUMENT ME!DOCUMENT ME!final EasyDeskUserDOCUMENT ME!DOCUMENT ME!final ModuleGet theModulerelated thru getModuleId().final ModuleAttributegetModuleAttribute(Attribute attribute) Get theModuleAttributerelated thru getModuleId() and getItemTypeId().final LongGet the ModuleId value.final ModuleItemTypeGet theModuleItemTyperelated thru getModuleId() and getItemTypeId().final String[]getScope()DOCUMENT ME!final StringCombines getIdPrefix() and getIdCount()final voidsetAttributeValues(List newAttributeValues) Set the AttributeValues value.final voidsetCreatedBy(Long createdBy) DOCUMENT ME!final voidsetCreatedDate(Date created) DOCUMENT ME!final voidsetIdCount(String newIdCount) Set the IdCount value.final voidsetIdPrefix(String newIdPrefix) Set the IdPrefix value.final voidSet the ItemId value.final voidsetItemTypeId(Integer newItemTypeId) Set the ItemTypeId value.voidsetLastActivitySetTypeId(Integer typeId) DOCUMENT ME!voidsetModifiedBy(Long modified) DOCUMENT ME!voidsetModifiedDate(Date modifiedDate) DOCUMENT ME!final voidsetModuleId(Long newModuleId) Set the ModuleId value.
-
Constructor Details
-
QueryResult
protected QueryResult()Ctor. Should only be called by an ItemSearch.
-
-
Method Details
-
getItem
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getItemId
Get the ItemId value.- Returns:
- the ItemId value.
-
setItemId
Set the ItemId value.- Parameters:
newItemId- The new ItemId value.
-
getIdPrefix
Get the IdPrefix value.- Returns:
- the IdPrefix value.
-
setIdPrefix
Set the IdPrefix value.- Parameters:
newIdPrefix- The new IdPrefix value.
-
getIdCount
Get the IdCount value.- Returns:
- the IdCount value.
-
setIdCount
Set the IdCount value.- Parameters:
newIdCount- The new IdCount value.
-
getUniqueId
Combines getIdPrefix() and getIdCount() -
setCreatedBy
DOCUMENT ME!- Parameters:
createdBy- DOCUMENT ME!
-
getCreatedBy
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setCreatedDate
DOCUMENT ME!- Parameters:
created- DOCUMENT ME!
-
getCreatedDate
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setModifiedBy
DOCUMENT ME!- Parameters:
modified- DOCUMENT ME!
-
getModifiedBy
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setModifiedDate
DOCUMENT ME!- Parameters:
modifiedDate- DOCUMENT ME!
-
getModifiedDate
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getLastActivitySetTypeId
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setLastActivitySetTypeId
DOCUMENT ME!- Parameters:
typeId- DOCUMENT ME!
-
getAttributeValues
Get the AttributeValues value.- Returns:
- the AttributeValues value.
-
getAttributeValuesAsCSV
Get the AttributeValues value as CSV. 미리 parse 가 되어 있어야 한다.- Returns:
- the AttributeValues value.
-
getAttributeValuesAsCSV
preferences 가 주어지면 Emblem 과 SystemUniqueId 는 별도 처리한다. 이 Method 에서는 두가지의 특별한 작업을 한다. 하나는 입력 preferences 의 ModuleUserAttribute 에는 존재하지만 목록보기에서 제외 처리하는 것과 ModuleUserAttribute 에는 존재하지 않지만 목록보기에 추가 처리하는 것과 전자는 AttributeEnum.Emblem.getId(), AttributeEnum.PrimaryKey.getId(), AttributeEnum.Scope.getId() 로 별도의 Method 를 통하여 접속이 가능하도록 하였고 후자는 AttributePeer.ACTIVITY_ATTRIBUTES 로 별도의 Method 및 List 로 도 접속이 가능하도록 한다.- Parameters:
preferences-format- if null than ignore formatting- Returns:
- the AttributeValues value.
-
setAttributeValues
Set the AttributeValues value.- Parameters:
newAttributeValues- The new AttributeValues value.
-
getModuleId
Get the ModuleId value.- Returns:
- the ModuleId value.
-
setModuleId
Set the ModuleId value.- Parameters:
newModuleId- The new ModuleId value.
-
getItemTypeId
Get the ItemTypeId value.- Returns:
- the ItemTypeId value.
-
setItemTypeId
Set the ItemTypeId value.- Parameters:
newItemTypeId- The new ItemTypeId value.
-
getContentId
ContentId 를 구한다. -
getEmblem
Emblem 은 db 에 원본 이미지의 full 경로가 저장되고 있다. -
getScope
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getLastAction
아이템의 최종 행동을 보인다. verbose list 에만 적용- Parameters:
locale-
-
getCreatedByUser
FOR CACHE- Throws:
TorqueException
-
getModifiedByUser
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
TorqueException
-
getActivitySetType
Get theAttributerelated thru getModuleId(). This method provides caching so that multiple QueryResult objects in the same resultset save db hits.- Throws:
TorqueException
-
getModule
Get theModulerelated thru getModuleId(). This method provides caching so that multiple QueryResult objects in the same resultset save db hits.- Throws:
TorqueException
-
getModuleItemType
Get theModuleItemTyperelated thru getModuleId() and getItemTypeId(). This method provides caching so that multiple QueryResult objects in the same resultset save db hits.- Throws:
TorqueException
-
getModuleAttribute
Get theModuleAttributerelated thru getModuleId() and getItemTypeId(). This method provides caching so that multiple QueryResult objects in the same resultset save db hits. template 에서 사용된다.- Parameters:
attribute-- Throws:
TorqueException
-
getJSONString
Query Result 를 json format 으로 처리한다. { attributeName: value, attributeName: [ ... ] }- Returns:
- charSequence
-
getJSONString
Query Result 를 json format 으로 처리한다. { attributeName: value, attributeName: [ ... ] }- Parameters:
muas-formatter-- Returns:
- charSequence
-
getJSONString
Query Result 를 json format 으로 처리한다. { attributeName: value, attributeName: [ ... ] }- Parameters:
muas-formatter-skipBrace-- Returns:
- charSequence
-
getJSONString
Query Result 를 json format 으로 처리한다. { attributeName: value, attributeName: [ ... ] }- Parameters:
muas-alias- key alias mapformatter-- Returns:
- charSequence
-
getJSONString
Query Result 를 json format 으로 처리한다. { attributeName: value, attributeName: [ ... ] }- Parameters:
muas-alias- key alias mapformatter-skipBrace-- Returns:
- charSequence
-
getJSONKeyValueString
Query Result 를 json format 으로 처리한다.- Parameters:
muas-alias- key alias mapformat- DateAttribute 를 formatting 한다.- Returns:
- charSequence attributeName: value, attributeName: [ ... ]
-