Package fr.becpg.repo.jscript
Class Search
java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
fr.becpg.repo.jscript.Search
- All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension,org.alfresco.repo.jscript.Scopeable
public final class Search
extends org.alfresco.repo.jscript.BaseScopableProcessorExtension
Search class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AdvSearchServiceprivate static final org.apache.commons.logging.Logprotected org.alfresco.service.ServiceRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidextractCriteriaAttributes(org.mozilla.javascript.ScriptableObject scriptable, Map<String, String> map) Extract a map of properties and associations from a scriptable object (generally an associative array)private voidextractSortAttributes(org.mozilla.javascript.ScriptableObject scriptable, Map<String, Boolean> map) Extract a map of properties and associations from a scriptable object (generally an associative array)org.mozilla.javascript.ScriptablequeryAdvSearch(String query, String datatype, Object criteria, Object sort, int maxResults) queryAdvSearch.org.mozilla.javascript.ScriptablequeryAdvSearch(String datatype, String term, String tag, Object criteria, boolean isRepo, String siteId, String containerId, Object sort, int maxResults) queryAdvSearch.org.mozilla.javascript.ScriptablequeryAdvSearch(String query, String datatype, String term, String tag, Object criteria, boolean isRepo, String siteId, String containerId, Object sort, int maxResults) Method a do the query for the advanced searchvoidsetAdvSearchService(AdvSearchService advSearchService) Setter for the fieldadvSearchService.voidsetServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry) setServiceRegistry.Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScopeMethods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
Field Details
-
logger
private static final org.apache.commons.logging.Log logger -
services
protected org.alfresco.service.ServiceRegistry services -
advSearchService
-
-
Constructor Details
-
Search
public Search()
-
-
Method Details
-
setServiceRegistry
public void setServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry) setServiceRegistry.
- Parameters:
serviceRegistry- aServiceRegistryobject.
-
setAdvSearchService
Setter for the field
advSearchService.- Parameters:
advSearchService- aAdvSearchServiceobject.
-
queryAdvSearch
public org.mozilla.javascript.Scriptable queryAdvSearch(String datatype, String term, String tag, Object criteria, boolean isRepo, String siteId, String containerId, Object sort, int maxResults) queryAdvSearch.
-
queryAdvSearch
public org.mozilla.javascript.Scriptable queryAdvSearch(String query, String datatype, Object criteria, Object sort, int maxResults) queryAdvSearch.
-
queryAdvSearch
public org.mozilla.javascript.Scriptable queryAdvSearch(String query, String datatype, String term, String tag, Object criteria, boolean isRepo, String siteId, String containerId, Object sort, int maxResults) Method a do the query for the advanced search -
extractCriteriaAttributes
private void extractCriteriaAttributes(org.mozilla.javascript.ScriptableObject scriptable, Map<String, String> map) Extract a map of properties and associations from a scriptable object (generally an associative array)- Parameters:
scriptable- The scriptable object to extract name/value pairs from.map- The map to add the converted name/value pairs to.
-
extractSortAttributes
private void extractSortAttributes(org.mozilla.javascript.ScriptableObject scriptable, Map<String, Boolean> map) Extract a map of properties and associations from a scriptable object (generally an associative array)- Parameters:
scriptable- The scriptable object to extract name/value pairs from.map- The map to add the converted name/value pairs to.
-