Package com.easydesk.util.word
Class ItemSearchImpl
java.lang.Object
com.easydesk.om.BaseItem
com.easydesk.om.Item
com.easydesk.util.word.ItemSearchImpl
- All Implemented Interfaces:
Cacheable,Identifiable<Long>,SearchConstants,ItemSearch,Serializable,ColumnAccessByName,ObjectModel,Persistent
Multiple ModuleItemType 을 지원한다.
TODO use torque fully
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.easydesk.om.Item
Item.FederatedId -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME!static final StringDOCUMENT ME!protected MITListprotected boolean검색조건이 변경되었는지 여부protected static final IntegerDOCUMENT ME!static final StringDOCUMENT ME!static final StringQuery 의 Detail 유형 SearchType 의 Option 들이다.protected EasyDeskUsercurrent search userprotected StringDOCUMENT ME!static final StringDOCUMENT ME!protected Integer[]DOCUMENT ME!Fields inherited from class com.easydesk.om.Item
GET_CHILDREN, GET_PARENTSFields inherited from class com.easydesk.om.BaseItem
collActivitys, collAttachments, collAttributeValues, collDependsRelatedByObservedId, collDependsRelatedByObserverId, collItemActivitySets, collItemCounters, collItemTemplateInfos, collTemplateTemplateGroupsFields inherited from interface com.easydesk.util.SearchConstants
ASC_OR_DESC, DEFAULT_RESULTS_PER_PAGE, ISO_DATE_PATTERN, ISO_DATETIME_PATTERN, ORDER_BY_FIELD, PAGE_NUM, QUERY_FIELD, QUERY_H_ATTRIBUTE_KEY, QUERY_KEY, QUERY_L_ATTRIBUTE_KEY, QUERY_QUICK_SEARCH_KEY, QUERY_USER_KEY, QUERY_USER_LIST_KEY, RESULTS_PER_PAGE, SEARCH_ADVANCED_TYPE, SEARCH_CUSTOM_TYPE, SEARCH_SYSTEM_TYPE, SEARCH_TEXT_ATTRIBUTE, SEARCH_TYPE, SEARCH_VALUE_KEY, SEARCH_WORD, WILD_CARD -
Constructor Summary
ConstructorsConstructorDescriptionItemSearchImpl(Item item, EasyDeskUser searcher) item 으로 검색한다.ItemSearchImpl(MITList mitList, EasyDeskUser searcher) mitList 에서 ISSUE__SEARCH filtering 한다ItemSearchImpl(MITList mitList, EasyDeskUser searcher, List<Permission> perms) mitList 를 주어진 권한으로 filtering 한다ItemSearchImpl(Module module, ItemType itemType, EasyDeskUser searcher) module ItemType 으로 검색한다. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUserCriteria(String userId, String searchCriteria) DescribeaddUserSearchmethod here.voidclear()DOCUMENT ME!voidclose()Releases any managed resources associated with this search (e.g. database connections, etc.).voidfilterItemType(ItemType type) searchable mitList 의 itemType 을 filtering 한다.protected voidfinalize()Called by the garbage collector to release any database resources associated with this query.DOCUMENT ME!org.apache.commons.collections4.map.LinkedMap<String, AttributeValue> getAllAvailableAttributeValuesMap 의 현재 Implement 는 Logic 상 Bug 가 존재하는 것 같다.org.apache.commons.collections4.map.LinkedMap<String, AttributeValue> getAllAvailableAttributeValuesMap(boolean quickSearchOnly) getAllAvailableAttributeValuesMap 의 현재 Implement 는 Logic 상 Bug 가 존재하는 것 같다.Get the value of commentQuery.org.apache.commons.collections4.map.LinkedMap<String, AttributeValue> DOCUMENT ME!org.apache.commons.collections4.map.LinkedMap<String, AttributeValue> getCommonAttributeValuesMap(boolean quickSearchOnly) DOCUMENT ME!getCommonOptionTree(Attribute attribute) DOCUMENT ME!protected List<AttributeValue> getDateAttributeValues(boolean quickSearchOnly) DateAttribute List 를 구한다.intgetItemCount(long[] lastMatchingItemIds) DOCUMENT ME!DOCUMENT ME!DOCUMENT ME!getLeafModuleOptions(Attribute attribute) DOCUMENT ME!intgetLimit()DOCUMENT ME!DOCUMENT ME!Get the value of maxDate.getMaxId()Get the value of maxId.Get the value of minDate.getMinId()Get the value of minId.intDeprecated.use rangeQueryorg.apache.commons.collections4.map.LinkedMap<String, AttributeValue> getMITAttributeValuesMap(boolean quickSearchOnly, boolean isActiveOnly) AttributeValues that are relevant to the item's current module.org.apache.commons.collections4.map.LinkedMap<String, AttributeValue> getModuleAttributeValuesMap(boolean isActiveOnly) AttributeValues that are relevant to the item's current module.org.apache.commons.collections4.map.LinkedMap<String, AttributeValue> getModuleAttributeValuesMap(boolean quickSearchOnly, boolean isActiveOnly) protected List<AttributeValue> getNumberAttributeValues(boolean quickSearchOnly) NumberAttribute List 를 구한다.intDOCUMENT ME!Returns OptionAttributes which have been marked for Quick search.protected List<AttributeValue> getOptionAttributeValues(boolean quickSearchOnly) Returns OptionAttributes which have been marked for Quick search.DOCUMENT ME!int[]DOCUMENT ME!Get a List of Items that match the criteria given by this SearchItem's searchWords and the quick search attribute values.QuickSearch DateAttribute List 를 구한다.QuickSearch DateAttribute List 를 구한다.Returns OptionAttributes which have been marked for Quick search.QuickSearchOnly, ExcludePersonal Text Attribute 를 구한다.intDOCUMENT ME!DOCUMENT ME!이 검색 Object 의 MITList 를 구한다.Get the words for which to search.Get the value of sortAttributeId.Whether to do SQL sorting inDESCorASCorder (the default being the latter).Get the value of stateChangeAttributeId.Get the value of stateChangeFromDate.Get the value of stateChangeFromOptionId.Get the value of stateChangeToDate.Get the value of stateChangeToOptionId.모든 Text AttributeValue 들을 구한다.protected List<AttributeValue> getTextAttributeValues(boolean quickSearchOnly) TextAttributeValues 만 구한다.Integer[]Get the value of textScope. if the scope is not set then all text attributes are returned. if there are no relevant text attributes null will be returned.protected Integer[]Sets the text search scope to all quick search text attributes.getType()DOCUMENT ME!booleanFeatureDetection 이다.protected org.apache.commons.collections4.map.LinkedMap<String, AttributeValue> internalGetAttributeValuesMap(boolean quickSearchOnly, boolean commonOnly) returns the list of attribute values for all attributes in the current module. if(commonOnly==true) return only attribute values which are commonly defined for all searched itemTypes.booleanmitList 와는 상관없이 이 Object 이 SingleItemType Search 인지 확인booleanmitList 와는 상관없이 이 Object 이 SingleModuleItemType Search 인지 확인booleanMITList 가 존재하고, SingleModule 인지Attempts to parse a atring as a date, first using ISO standard "yyyy-mm-dd". and then the locale-sepcific short date format, If it sees a ':' character in the date string then the string will be interpreted as a date and time.voidsave()ItemSearch 는 저장하지 않는다.voidSet the value of commentQuery.voidList of attributes to show with each item.voidsetLimit(int limit) DOCUMENT ME!voidsetMaxDate(String newMaxDate) Set the value of maxDate.voidSet the value of maxId.voidsetMinDate(String newMinDate) Set the value of minDate.voidSet the value of minId.voidsetMinVotes(int v) Deprecated.use rangeQueryvoidsetOffset(int offset) DOCUMENT ME!voidsetOutType(String outType) DOCUMENT ME!voidsetPrimitiveTextScope(int[] ints) DOCUMENT ME!voidsetResultsPerPage(int resultsPerPage) DOCUMENT ME!voidSet the words for which to search.voidSet the value of sortAttributeId.voidSet the value of sortPolarity.voidSet the value of stateChangeAttributeId.voidsetStateChangeFromDate(String fromDate) Set the value of stateChangeFromDate.voidSet the value of stateChangeFromOptionId.voidsetStateChangeToDate(String toDate) Set the value of stateChangeToDate.voidSet the value of stateChangeToOptionId.voidsetTextScope(Integer[] v) Set the value of textScope.voidDOCUMENT ME!toString()Methods inherited from class com.easydesk.om.Item
assign, assign, assign, deassign, getActivity, getActivity, getActivity, getActivity, getActivity, getActivity, getActivity, getActivitySet, getAllDependencies, getAllUsersToEmail, getAttributeValue, getAttributeValue, getAttributeValues, getAttributeValuesMap, getChildren, getChildren, getCreatedBy, getCreatedDate, getFederatedId, getId, getItemActivitySet, getLastActivitySet, getLastActivitySet, getLastActivitySet, getLastActivitySet, getLastActivitySet, getMethodCache, getModule, getModuleAttribute, getModuleAttributeValuesMap, getModuleItemType, getModuleOption, getNewInstance, getNewInstance, getNewInstance, getParents, getParents, getParents, getUniqueId, getUniqueId, getUniqueId, getUserAttributeValues, getUserAttributeValues, getUserAttributeValues, getUserAttributeValues, getUsersToEmail, hasAssigned, hasValue, hasValue, isAssigned, isCreator, isTemplate, save, setFederatedId, setId, setLocale, setModule, setUniqueId, updateLastActivitySetMethods 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, 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, 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
-
ASC
DOCUMENT ME!- See Also:
-
DESC
DOCUMENT ME!- See Also:
-
ANY_KEY
DOCUMENT ME!- See Also:
-
NUMBERKEY_0
DOCUMENT ME! -
REPORT_TYPE
Query 의 Detail 유형 SearchType 의 Option 들이다.- See Also:
-
ADVANCED_TYPE
DOCUMENT ME!- See Also:
-
SYSTEM_TYPE
DOCUMENT ME!- See Also:
-
QUICK_TYPE
DOCUMENT ME!- See Also:
-
searchWords
DOCUMENT ME! -
textScope
DOCUMENT ME! -
mitList
-
modified
protected boolean modified검색조건이 변경되었는지 여부 -
searcher
current search user
-
-
Constructor Details
-
ItemSearchImpl
item 으로 검색한다.- Parameters:
item-searcher-- Throws:
TorqueException
-
ItemSearchImpl
public ItemSearchImpl(Module module, ItemType itemType, EasyDeskUser searcher) throws TorqueException module ItemType 으로 검색한다.- Parameters:
module-itemType-searcher-- Throws:
TorqueException
-
ItemSearchImpl
mitList 에서 ISSUE__SEARCH filtering 한다- Parameters:
mitList-searcher-- Throws:
TorqueException
-
ItemSearchImpl
public ItemSearchImpl(MITList mitList, EasyDeskUser searcher, List<Permission> perms) throws TorqueException mitList 를 주어진 권한으로 filtering 한다- Parameters:
mitList-searcher-perms-- Throws:
TorqueException
-
-
Method Details
-
getLimit
public int getLimit()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setLimit
public void setLimit(int limit) DOCUMENT ME!- Parameters:
limit- DOCUMENT ME!
-
getResultsPerPage
public int getResultsPerPage()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setResultsPerPage
public void setResultsPerPage(int resultsPerPage) DOCUMENT ME!- Parameters:
resultsPerPage- DOCUMENT ME!
-
getOffset
public int getOffset()DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setOffset
public void setOffset(int offset) DOCUMENT ME!- Parameters:
offset- DOCUMENT ME!
-
getLocale
DOCUMENT ME! -
getItemType
DOCUMENT ME!- Overrides:
getItemTypein classBaseItem- Returns:
- DOCUMENT ME!
- Throws:
TorqueException- DOCUMENT ME!
-
save
ItemSearch 는 저장하지 않는다.- Specified by:
savein interfacePersistent- Overrides:
savein classBaseItem- Throws:
Exception- always throw UnsupportedOperationException
-
setOutType
DOCUMENT ME!- Parameters:
outType- DOCUMENT ME!
-
getOutType
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
filterItemType
searchable mitList 의 itemType 을 filtering 한다.- Parameters:
type-
-
getSearcher
DOCUMENT ME!- Specified by:
getSearcherin interfaceItemSearch- Returns:
- DOCUMENT ME!
-
getSearchMITList
이 검색 Object 의 MITList 를 구한다.- Specified by:
getSearchMITListin interfaceItemSearch- Returns:
- mitList
-
isXMITSearch
public boolean isXMITSearch()MITList 가 존재하고, SingleModule 인지- Specified by:
isXMITSearchin interfaceItemSearch- Returns:
- true/false
-
isSingleItemTypeSearch
public boolean isSingleItemTypeSearch()mitList 와는 상관없이 이 Object 이 SingleItemType Search 인지 확인- Specified by:
isSingleItemTypeSearchin interfaceItemSearch- Returns:
- true/false
-
isSingleModuleItemTypeSearch
public boolean isSingleModuleItemTypeSearch()mitList 와는 상관없이 이 Object 이 SingleModuleItemType Search 인지 확인- Specified by:
isSingleModuleItemTypeSearchin interfaceItemSearch- Returns:
- true/false
-
has
FeatureDetection 이다. ModuleAttribute 를 가지고 있는지- Overrides:
hasin classItem- Parameters:
attribute-- Returns:
- true/false which has ModuleAttribute ( FeatureDetection )
- Throws:
TorqueException- 조회 중 오류가 발생한 경우
-
setItemListAttributeColumns
List of attributes to show with each item.- Parameters:
rmuas- aListof ModuleUserAttribute objects
-
getItemListAttributeColumns
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getUserIdList
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getAllAvailableAttributeValuesMap
public org.apache.commons.collections4.map.LinkedMap<String,AttributeValue> getAllAvailableAttributeValuesMap() throws TorqueExceptiongetAllAvailableAttributeValuesMap 의 현재 Implement 는 Logic 상 Bug 가 존재하는 것 같다. 지금의 검색은 속성들간에 AND Operation 이 동작하고 있다. 만약 두가지의 아이템유형 A, B 을 검색대상으로 하고 A 가 속성 X1, X2 를 B가 속성 X1, X3 를 가지고 있다고 할 때 두 아이템유형의 XQuery 에대하여 의미있는 것은 단지 X1 뿐이다. 만약 X2 나 X3 의 검색 조건을 입력한다면 이것은 대상이 둘중에 하나로만 해당되어 이것은 검색대상의 설정이 잘못된 것이다. 이것이 의미가 있으려면 각 속성간의 AND/OR Operation 을 선택할 수 있어야 한다. returns the list of attribute values for all attributes- Returns:
- all attributeValues
- Throws:
ExceptionTorqueException
-
getAllAvailableAttributeValuesMap
public org.apache.commons.collections4.map.LinkedMap<String,AttributeValue> getAllAvailableAttributeValuesMap(boolean quickSearchOnly) throws TorqueException getAllAvailableAttributeValuesMap 의 현재 Implement 는 Logic 상 Bug 가 존재하는 것 같다. 지금의 검색은 속성들간에 AND Operation 이 동작하고 있다. 만약 두가지의 아이템유형 A, B 을 검색대상으로 하고 A 가 속성 X1, X2 를 B가 속성 X1, X3 를 가지고 있다고 할 때 두 아이템유형의 XQuery 에대하여 의미있는 것은 단지 X1 뿐이다. 만약 X2 나 X3 의 검색 조건을 입력한다면 이것은 대상이 둘중에 하나로만 해당되어 이것은 검색대상의 설정이 잘못된 것이다. 이것이 의미가 있으려면 각 속성간의 AND/OR Operation 을 선택할 수 있어야 한다. returns the list of attribute values for all attributes- Parameters:
quickSearchOnly-- Returns:
- all attributeValues
- Throws:
ExceptionTorqueException
-
getCommonAttributeValuesMap
public org.apache.commons.collections4.map.LinkedMap<String,AttributeValue> getCommonAttributeValuesMap() throws TorqueExceptionDOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!TorqueException
-
getCommonAttributeValuesMap
public org.apache.commons.collections4.map.LinkedMap<String,AttributeValue> getCommonAttributeValuesMap(boolean quickSearchOnly) throws TorqueException DOCUMENT ME!- Parameters:
quickSearchOnly-- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!TorqueException
-
internalGetAttributeValuesMap
protected org.apache.commons.collections4.map.LinkedMap<String,AttributeValue> internalGetAttributeValuesMap(boolean quickSearchOnly, boolean commonOnly) throws TorqueException returns the list of attribute values for all attributes in the current module. if(commonOnly==true) return only attribute values which are commonly defined for all searched itemTypes.- Parameters:
quickSearchOnly-commonOnly-- Returns:
- all attributeValues
- Throws:
ExceptionTorqueException
-
getModuleAttributeValuesMap
public org.apache.commons.collections4.map.LinkedMap<String,AttributeValue> getModuleAttributeValuesMap(boolean isActiveOnly) throws TorqueException Description copied from class:ItemAttributeValues 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 에 한정되지 않은 것에만 적용된다.
- Overrides:
getModuleAttributeValuesMapin classItem- Parameters:
isActiveOnly- ingored query is always set false- Returns:
- linkedMap
- Throws:
TorqueException- 조회 중 오류가 발생한 경우- See Also:
-
getModuleAttributeValuesMap
public org.apache.commons.collections4.map.LinkedMap<String,AttributeValue> getModuleAttributeValuesMap(boolean quickSearchOnly, boolean isActiveOnly) throws TorqueException - Parameters:
quickSearchOnly-isActiveOnly-- Returns:
- linkedMap
- Throws:
TorqueException- See Also:
-
getMITAttributeValuesMap
public org.apache.commons.collections4.map.LinkedMap<String,AttributeValue> getMITAttributeValuesMap(boolean quickSearchOnly, 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- Throws:
TorqueException
-
getUserAttributes
- Returns:
- The list of attributes of type "user" for the module(s) to search in.
- Throws:
TorqueException
-
getLeafModuleOptions
DOCUMENT ME!- Parameters:
attribute- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!TorqueException
-
getCommonOptionTree
DOCUMENT ME!- Parameters:
attribute- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!TorqueException
-
getSearchWords
Get the words for which to search.- Returns:
- Value of
searchWords.
-
setSearchWords
Set the words for which to search.- Parameters:
v- Value to assign tosearchWords.
-
getCommentQuery
Get the value of commentQuery.- Returns:
- value of commentQuery.
-
setCommentQuery
Set the value of commentQuery.- Parameters:
v- Value to assign to commentQuery.
-
getTextScopeForAll
Sets the text search scope to all quick search text attributes.- Throws:
TorqueException
-
getTextScope
Get the value of textScope. if the scope is not set then all text attributes are returned. if there are no relevant text attributes null will be returned.- Returns:
- value of textScope.
- Throws:
TorqueException
-
setTextScope
Set the value of textScope.- Parameters:
v- Value to assign to textScope.- Throws:
Exception
-
setPrimitiveTextScope
DOCUMENT ME!- Parameters:
ints- DOCUMENT ME!- Throws:
Exception- DOCUMENT ME!
-
getPrimitiveTextScope
DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception- DOCUMENT ME!
-
getMinId
Get the value of minId.- Returns:
- value of minId.
-
setMinId
Set the value of minId.- Parameters:
v- Value to assign to minId.
-
getMaxId
Get the value of maxId.- Returns:
- value of maxId.
-
setMaxId
Set the value of maxId.- Parameters:
v- Value to assign to maxId.
-
getMinDate
Get the value of minDate.- Returns:
- value of minDate.
-
setMinDate
Set the value of minDate.- Parameters:
newMinDate- Value to assign to minDate.
-
getMaxDate
Get the value of maxDate.- Returns:
- value of maxDate.
-
setMaxDate
Set the value of maxDate.- Parameters:
newMaxDate- Value to assign to maxDate.
-
getMinVotes
public int getMinVotes()Deprecated.use rangeQueryGet the value of minVotes.- Returns:
- value of minVotes.
-
setMinVotes
public void setMinVotes(int v) Deprecated.use rangeQuerySet the value of minVotes.- Parameters:
v- Value to assign to minVotes.
-
getStateChangeAttributeId
Get the value of stateChangeAttributeId.- Returns:
- value of stateChangeAttributeId.
-
setStateChangeAttributeId
Set the value of stateChangeAttributeId.- Parameters:
v- Value to assign to stateChangeAttributeId.
-
getStateChangeFromOptionId
Get the value of stateChangeFromOptionId.- Returns:
- value of stateChangeFromOptionId.
-
setStateChangeFromOptionId
Set the value of stateChangeFromOptionId.- Parameters:
v- Value to assign to stateChangeFromOptionId.
-
getStateChangeToOptionId
Get the value of stateChangeToOptionId.- Returns:
- value of stateChangeToOptionId.
-
setStateChangeToOptionId
Set the value of stateChangeToOptionId.- Parameters:
v- Value to assign to stateChangeToOptionId.
-
getStateChangeFromDate
Get the value of stateChangeFromDate.- Returns:
- value of stateChangeFromDate.
-
setStateChangeFromDate
Set the value of stateChangeFromDate.- Parameters:
fromDate- Value to assign to stateChangeFromDate.
-
getStateChangeToDate
Get the value of stateChangeToDate.- Returns:
- value of stateChangeToDate.
-
setStateChangeToDate
Set the value of stateChangeToDate.- Parameters:
toDate- Value to assign to stateChangeToDate.
-
getSortAttributeId
Get the value of sortAttributeId.- Returns:
- value of SortAttributeId.
-
setSortAttributeId
Set the value of sortAttributeId.- Parameters:
v- Value to assign to sortAttributeId.
-
getSortPolarity
Whether to do SQL sorting inDESCorASCorder (the default being the latter).- Returns:
- value of sortPolarity.
-
setSortPolarity
Set the value of sortPolarity.- Parameters:
v- Value to assign to sortPolarity.
-
getType
-
setType
DOCUMENT ME!- Parameters:
searchType- DOCUMENT ME!
-
addUserCriteria
DescribeaddUserSearchmethod here.- Parameters:
userId- aStringrepresention of the PrimaryKeysearchCriteria- aStringeither a String representation of an Attribute PrimaryKey, or the Strings "created_by" "any"
-
getALL_TEXT
DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getQuickSearchDateAttributeValues
QuickSearch DateAttribute List 를 구한다.- Returns:
- attribute list
- Throws:
TorqueException
-
getQuickSearchNumberAttributeValues
QuickSearch DateAttribute List 를 구한다.- Returns:
- attribute list
- Throws:
TorqueException
-
getDateAttributeValues
protected List<AttributeValue> getDateAttributeValues(boolean quickSearchOnly) throws TorqueException DateAttribute List 를 구한다.- Parameters:
quickSearchOnly-- Returns:
- attribute list
- Throws:
TorqueException
-
getNumberAttributeValues
protected List<AttributeValue> getNumberAttributeValues(boolean quickSearchOnly) throws TorqueException NumberAttribute List 를 구한다.- Parameters:
quickSearchOnly-- Returns:
- attribute list
- Throws:
TorqueException
-
getQuickSearchTextAttributeValues
QuickSearchOnly, ExcludePersonal Text Attribute 를 구한다.- Throws:
TorqueException
-
getTextAttributeValues
모든 Text AttributeValue 들을 구한다.- Throws:
TorqueException
-
getTextAttributeValues
protected List<AttributeValue> getTextAttributeValues(boolean quickSearchOnly) throws TorqueException TextAttributeValues 만 구한다.- Parameters:
quickSearchOnly- or not- Returns:
- List TextAttributeValues
- Throws:
TorqueException
-
getQuickSearchOptionAttributeValues
Returns OptionAttributes which have been marked for Quick search.- Returns:
- a
Listvalue - Throws:
Exception- if an error occursTorqueException
-
getOptionAttributeValues
Returns OptionAttributes which have been marked for Quick search.- Returns:
- a
Listvalue - Throws:
Exception- if an error occursTorqueException
-
getOptionAttributeValues
protected List<AttributeValue> getOptionAttributeValues(boolean quickSearchOnly) throws TorqueException Returns OptionAttributes which have been marked for Quick search.- Parameters:
quickSearchOnly-- Returns:
- a
Listvalue - Throws:
Exception- if an error occursTorqueException
-
parseDate
Attempts to parse a atring as a date, first using ISO standard "yyyy-mm-dd". and then the locale-sepcific short date format, If it sees a ':' character in the date string then the string will be interpreted as a date and time. Throws a ParseException if the String does not contain a suitable format.- Parameters:
dateString- aStringvalueaddTwentyFourHours- if no time is given in the date string and this flag is true, then 24 hours - 1 msec will be added to the date.- Returns:
- a
Datevalue - Throws:
ParseException
-
getQueryResults
public IteratorWithSize getQueryResults() throws ComplexQueryException, TorqueException, IOException, ParseExceptionGet a List of Items that match the criteria given by this SearchItem's searchWords and the quick search attribute values.- Returns:
- a
Listvalue - Throws:
ComplexQueryException- too many joinTorqueException- torque troubleIOException- search engine troubleParseException- malformed input
-
getItemCount
public int getItemCount(long[] lastMatchingItemIds) throws ComplexQueryException, TorqueException, IOException DOCUMENT ME!- Parameters:
lastMatchingItemIds- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
ComplexQueryException- DOCUMENT ME!Exception- DOCUMENT ME!TorqueExceptionIOException
-
toString
-
finalize
Called by the garbage collector to release any database resources associated with this query. -
close
public void close()Releases any managed resources associated with this search (e.g. database connections, etc.). -
clear
public void clear()DOCUMENT ME!
-