Class ItemSearchEvaluator
java.lang.Object
com.echothree.util.server.control.BaseLogic
com.echothree.model.control.search.server.search.BaseEvaluator
com.echothree.model.control.search.server.search.BaseSearchEvaluator
com.echothree.model.control.item.server.search.ItemSearchEvaluator
-
Field Summary
Fields inherited from class com.echothree.model.control.search.server.search.BaseSearchEvaluator
searchSortDirection, searchSortOrder, searchType, searchUseType, session
Fields inherited from class com.echothree.model.control.search.server.search.BaseEvaluator
entityType, field, fields, index, q, query, searchControl, searchDefaultOperator, userVisit
-
Constructor Summary
ConstructorsConstructorDescriptionItemSearchEvaluator
(UserVisit userVisit, Language language, SearchType searchType, SearchDefaultOperator searchDefaultOperator, SearchSortOrder searchSortOrder, SearchSortDirection searchSortDirection, SearchUseType searchUseType) Creates a new instance of ItemSearchEvaluator -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Counts the number of search parameters.protected EntityInstancePKHolder
org.apache.lucene.analysis.Analyzer
getAnalyzer
(ExecutionErrorAccumulator eea, Language language) getEntityInstancePKHolderByItemStatusWorkflowStep
(WorkflowStep itemStatusWorkflowStep) getEntityInstancePKHolderByItemType
(ItemType itemType) getEntityInstancePKHolderByItemUseType
(ItemUseType itemUseType) Returns the itemNameOrAlias.Returns the itemStatusWorkflowStep.Returns the itemType.Returns the itemUseType.org.apache.lucene.search.SortField[]
getSortFields
(String searchSortOrderName) protected boolean
Determines if the result of the search may be cached.void
setItemNameOrAlias
(String itemNameOrAlias) Sets the itemNameOrAlias.void
setItemStatusWorkflowStep
(WorkflowStep itemStatusWorkflowStep) Sets the itemStatusWorkflowStep.void
setItemStatusWorkflowSteps
(List<WorkflowStep> itemStatusWorkflowSteps) Sets the itemStatusWorkflowSteps.void
setItemType
(ItemType itemType) Sets the itemType.void
setItemUseType
(ItemUseType itemUseType) Sets the itemUseType.Methods inherited from class com.echothree.model.control.search.server.search.BaseSearchEvaluator
createCachedExecutedSearchResults, createUserVisitSearchResults, execute, executeCachableSearch, executeQuery, getCreatedSince, getEntityInstancePKHolderByCreatedTime, getEntityInstancePKHolderByModifiedTime, getEntityInstancePKHolderFromQuery, getEntityInstancePKHolderFromQuery, getModifiedSince, getSearchSortOrderName, getSize, getSoundex, removeUserVisitSearch, setCreatedSince, setModifiedSince
Methods inherited from class com.echothree.model.control.search.server.search.BaseEvaluator
getCachedAnalyzer, getCoreControl, getDateFields, getDateTimeFields, getField, getFields, getIndexControl, getLanguage, getLanguageIsoName, getLog, getQ, getSearchDefaultOperatorName, getUserControl, parseQuery, setField, setFields, setQ
Methods inherited from class com.echothree.util.server.control.BaseLogic
addExecutionError, addSecurityMessage, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getSession, handleExecutionError, handleSecurityMessage, hasExecutionErrors
-
Constructor Details
-
ItemSearchEvaluator
public ItemSearchEvaluator(UserVisit userVisit, Language language, SearchType searchType, SearchDefaultOperator searchDefaultOperator, SearchSortOrder searchSortOrder, SearchSortDirection searchSortDirection, SearchUseType searchUseType) Creates a new instance of ItemSearchEvaluator
-
-
Method Details
-
countParameters
Counts the number of search parameters.- Overrides:
countParameters
in classBaseSearchEvaluator
-
isResultCachable
Determines if the result of the search may be cached. For Items, the only field that may be used is the description, "q." If any others are utilized, the result may not be cached.- Overrides:
isResultCachable
in classBaseSearchEvaluator
-
getEntityInstancePKHolderByItemType
-
getEntityInstancePKHolderByItemUseType
-
getEntityInstancePKHolderByItemStatusWorkflowStep
public EntityInstancePKHolder getEntityInstancePKHolderByItemStatusWorkflowStep(WorkflowStep itemStatusWorkflowStep) -
getItemNameOrAlias
Returns the itemNameOrAlias.- Returns:
- the itemNameOrAlias
-
setItemNameOrAlias
Sets the itemNameOrAlias.- Parameters:
itemNameOrAlias
- the itemNameOrAlias to set
-
getItemType
Returns the itemType.- Returns:
- the itemType
-
setItemType
Sets the itemType.- Parameters:
itemType
- the itemType to set
-
getItemUseType
Returns the itemUseType.- Returns:
- the itemUseType
-
setItemUseType
Sets the itemUseType.- Parameters:
itemUseType
- the itemUseType to set
-
getItemStatusWorkflowStep
Returns the itemStatusWorkflowStep.- Returns:
- the itemStatusWorkflowStep
-
setItemStatusWorkflowStep
Sets the itemStatusWorkflowStep.- Parameters:
itemStatusWorkflowStep
- the itemStatusWorkflowStep to set
-
setItemStatusWorkflowSteps
Sets the itemStatusWorkflowSteps.- Parameters:
itemStatusWorkflowSteps
- the itemStatusWorkflowSteps to set
-
getSortFields
- Overrides:
getSortFields
in classBaseSearchEvaluator
-
getAnalyzer
public org.apache.lucene.analysis.Analyzer getAnalyzer(ExecutionErrorAccumulator eea, Language language) - Overrides:
getAnalyzer
in classBaseEvaluator
-
executeSearch
- Overrides:
executeSearch
in classBaseSearchEvaluator
-