Package fr.becpg.repo.search.impl
Class SearchRuleServiceImpl
java.lang.Object
fr.becpg.repo.search.impl.SearchRuleServiceImpl
- All Implemented Interfaces:
SearchRuleService
@Service("searchRuleService")
public class SearchRuleServiceImpl
extends Object
implements SearchRuleService
SearchRuleServiceImpl class.
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AdvSearchServiceprivate org.alfresco.service.cmr.dictionary.DictionaryServiceprivate EntityServiceprivate final ThreadLocal<SimpleDateFormat>private static org.apache.commons.logging.Logprivate static final intprivate static final intprivate org.alfresco.service.namespace.NamespaceServiceprivate org.alfresco.service.cmr.repository.NodeServiceprivate static final Stringprivate org.alfresco.service.ServiceRegistryprivate org.alfresco.service.cmr.version.VersionService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanupThreadLocal.private List<org.alfresco.service.cmr.repository.NodeRef>filterByEntityCriteria(List<org.alfresco.service.cmr.repository.NodeRef> nodes, SearchRuleFilter filter) Deprecated.private List<org.alfresco.service.cmr.repository.NodeRef>filterByPath(List<org.alfresco.service.cmr.repository.NodeRef> ret, SearchRuleFilter filter) Deprecated.private StringformatDate(DateFilterDelayUnit dateFilterDelayUnit, Calendar date) private intgetDateFilterDelayUnit(DateFilterDelayUnit dateFilterDelayUnit) private intgetMaxResults(Integer maxResults, boolean shouldFilterByPath) getOnlyAssociatedVersions(org.alfresco.service.cmr.repository.NodeRef item, VersionFilterType versionType, Date from, Date to) private booleanisNotIndexedType(org.alfresco.service.namespace.QName nodeType) private booleanisPathContained(org.alfresco.service.cmr.repository.Path containerPath, org.alfresco.service.cmr.repository.Path containedPath) Checks if a path contains another pathprivate booleanmatchEntityType(org.alfresco.service.cmr.repository.NodeRef entityRef, org.alfresco.service.namespace.QName entityType) search(SearchRuleFilter filter) search.
-
Field Details
-
logger
private static org.apache.commons.logging.Log logger -
SEPARATOR
- See Also:
-
MAX_ENTITY_NODE_REF_CALLS
private static final int MAX_ENTITY_NODE_REF_CALLS -
MAX_RET_SIZE
private static final int MAX_RET_SIZE -
formatter
-
versionService
@Autowired private org.alfresco.service.cmr.version.VersionService versionService -
entityService
-
advSearchService
-
nodeService
@Autowired private org.alfresco.service.cmr.repository.NodeService nodeService -
serviceRegistry
@Autowired @Qualifier("ServiceRegistry") private org.alfresco.service.ServiceRegistry serviceRegistry -
namespaceService
@Autowired private org.alfresco.service.namespace.NamespaceService namespaceService -
dictionaryService
@Autowired private org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
-
-
Constructor Details
-
SearchRuleServiceImpl
public SearchRuleServiceImpl()
-
-
Method Details
-
cleanupThreadLocal
public void cleanupThreadLocal()cleanupThreadLocal.
-
search
search.
- Specified by:
searchin interfaceSearchRuleService- Parameters:
filter- aSearchRuleFilterobject- Returns:
- a
SearchRuleResultobject
-
getMaxResults
-
filterByPath
@Deprecated private List<org.alfresco.service.cmr.repository.NodeRef> filterByPath(List<org.alfresco.service.cmr.repository.NodeRef> ret, SearchRuleFilter filter) Deprecated.filterByPath.
-
isPathContained
private boolean isPathContained(org.alfresco.service.cmr.repository.Path containerPath, org.alfresco.service.cmr.repository.Path containedPath) Checks if a path contains another path- Parameters:
containerPath- The path to checkcontainedPath- The path that might be contained- Returns:
- true if containerPath contains containedPath
-
isNotIndexedType
private boolean isNotIndexedType(org.alfresco.service.namespace.QName nodeType) -
getDateFilterDelayUnit
-
filterByEntityCriteria
@Deprecated private List<org.alfresco.service.cmr.repository.NodeRef> filterByEntityCriteria(List<org.alfresco.service.cmr.repository.NodeRef> nodes, SearchRuleFilter filter) Deprecated. -
getOnlyAssociatedVersions
private Map<String,org.alfresco.service.cmr.repository.NodeRef> getOnlyAssociatedVersions(org.alfresco.service.cmr.repository.NodeRef item, VersionFilterType versionType, Date from, Date to) -
formatDate
-
matchEntityType
private boolean matchEntityType(org.alfresco.service.cmr.repository.NodeRef entityRef, org.alfresco.service.namespace.QName entityType)
-