Package fr.becpg.repo.web.scripts.search
Class AbstractSearchWebScript
java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
fr.becpg.repo.web.scripts.search.AbstractSearchWebScript
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
ExportSearchWebScript,GetSavedSearchWebScript,SearchWebScript
public abstract class AbstractSearchWebScript
extends org.springframework.extensions.webscripts.AbstractWebScript
Abstract AbstractSearchWebScript class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AdvSearchServiceThe advanced search service for performing complex searches.protected org.alfresco.service.namespace.NamespaceServiceThe namespace service for handling namespace operations.protected org.alfresco.service.cmr.repository.NodeServiceThe node service for handling node operations.protected static final StringConstantPARAM_CONTAINER="container"protected static final StringConstantPARAM_EXTRA_PARAMS="extraParams"protected static final StringConstantPARAM_FILTER="filter"protected static final StringConstantPARAM_FILTER_DATA="filterData"protected static final StringConstantPARAM_FILTER_PARAMS="filterParams"protected static final StringConstantPARAM_ITEMTYPE="itemType"protected static final StringConstantPARAM_MAX_RESULTS="maxResults"protected static final StringConstantPARAM_NODEREF="nodeRef"protected static final StringPaginationprotected static final StringConstantPARAM_PAGE_SIZE="pageSize"protected static final StringConstantPARAM_QUERY="query"protected static final StringConstantPARAM_REPOSITORY="repo"protected static final StringConstantPARAM_SITE="site"protected static final StringConstantPARAM_SORT="sort"protected static final StringConstantPARAM_TAG="tag"protected static final StringConstantPARAM_TERM="term" -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.alfresco.service.cmr.repository.NodeRef>doSearch.private StringvoidsetAdvSearchService(AdvSearchService advSearchService) Setter for the fieldadvSearchService.voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) Setter for the fieldnamespaceService.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the fieldnodeService.Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.extensions.webscripts.WebScript
execute
-
Field Details
-
PARAM_QUERY
ConstantPARAM_QUERY="query"- See Also:
-
PARAM_SORT
ConstantPARAM_SORT="sort"- See Also:
-
PARAM_TERM
ConstantPARAM_TERM="term"- See Also:
-
PARAM_TAG
ConstantPARAM_TAG="tag"- See Also:
-
PARAM_CONTAINER
ConstantPARAM_CONTAINER="container"- See Also:
-
PARAM_SITE
ConstantPARAM_SITE="site"- See Also:
-
PARAM_REPOSITORY
ConstantPARAM_REPOSITORY="repo"- See Also:
-
PARAM_NODEREF
ConstantPARAM_NODEREF="nodeRef"- See Also:
-
PARAM_ITEMTYPE
ConstantPARAM_ITEMTYPE="itemType"- See Also:
-
PARAM_PAGE
Pagination- See Also:
-
PARAM_PAGE_SIZE
ConstantPARAM_PAGE_SIZE="pageSize"- See Also:
-
PARAM_MAX_RESULTS
ConstantPARAM_MAX_RESULTS="maxResults"- See Also:
-
PARAM_FILTER
ConstantPARAM_FILTER="filter"- See Also:
-
PARAM_FILTER_DATA
ConstantPARAM_FILTER_DATA="filterData"- See Also:
-
PARAM_FILTER_PARAMS
ConstantPARAM_FILTER_PARAMS="filterParams"- See Also:
-
PARAM_EXTRA_PARAMS
ConstantPARAM_EXTRA_PARAMS="extraParams"- See Also:
-
nodeService
protected org.alfresco.service.cmr.repository.NodeService nodeServiceThe node service for handling node operations. -
advSearchService
The advanced search service for performing complex searches. -
namespaceService
protected org.alfresco.service.namespace.NamespaceService namespaceServiceThe namespace service for handling namespace operations.
-
-
Constructor Details
-
AbstractSearchWebScript
public AbstractSearchWebScript()
-
-
Method Details
-
setAdvSearchService
Setter for the field
advSearchService.- Parameters:
advSearchService- aAdvSearchServiceobject.
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) Setter for the field
namespaceService.- Parameters:
namespaceService- aNamespaceServiceobject.
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the field
nodeService.- Parameters:
nodeService- aNodeServiceobject.
-
doSearch
protected List<org.alfresco.service.cmr.repository.NodeRef> doSearch(org.springframework.extensions.webscripts.WebScriptRequest req, Integer maxResults) throws org.json.JSONException doSearch.
-
getPath
-