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, sessionFields 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 intCounts the number of search parameters.protected EntityInstancePKHoldergetAnalyzer(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 booleanDetermines if the result of the search may be cached.voidsetItemNameOrAlias(String itemNameOrAlias) Sets the itemNameOrAlias.voidsetItemStatusWorkflowStep(WorkflowStep itemStatusWorkflowStep) Sets the itemStatusWorkflowStep.voidsetItemStatusWorkflowSteps(List<WorkflowStep> itemStatusWorkflowSteps) Sets the itemStatusWorkflowSteps.voidsetItemType(ItemType itemType) Sets the itemType.voidsetItemUseType(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, setModifiedSinceMethods inherited from class com.echothree.model.control.search.server.search.BaseEvaluator
getCachedAnalyzer, getCoreControl, getField, getFields, getIndexControl, getLanguage, getLanguageIsoName, getLog, getQ, getSearchDefaultOperatorName, getUserControl, parseQuery, setField, setFields, setQMethods 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:
countParametersin 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:
isResultCachablein 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:
getSortFieldsin classBaseSearchEvaluator
-
getAnalyzer
- Overrides:
getAnalyzerin classBaseEvaluator
-
executeSearch
- Overrides:
executeSearchin classBaseSearchEvaluator
-