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 Details

    • logger

      private static org.apache.commons.logging.Log logger
    • SEPARATOR

      private static final String 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

      private final ThreadLocal<SimpleDateFormat> formatter
    • versionService

      @Autowired private org.alfresco.service.cmr.version.VersionService versionService
    • entityService

      @Autowired private EntityService entityService
    • advSearchService

      @Autowired private AdvSearchService 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

      public SearchRuleResult search(SearchRuleFilter filter)

      search.

      Specified by:
      search in interface SearchRuleService
      Parameters:
      filter - a SearchRuleFilter object
      Returns:
      a SearchRuleResult object
    • getMaxResults

      private int getMaxResults(Integer maxResults, boolean shouldFilterByPath)
    • filterByPath

      @Deprecated private List<org.alfresco.service.cmr.repository.NodeRef> filterByPath(List<org.alfresco.service.cmr.repository.NodeRef> ret, SearchRuleFilter filter)
      Deprecated.

      filterByPath.

      Parameters:
      ret - a List object
      filter - a Path object
      Returns:
      a List object
    • 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 check
      containedPath - The path that might be contained
      Returns:
      true if containerPath contains containedPath
    • isNotIndexedType

      private boolean isNotIndexedType(org.alfresco.service.namespace.QName nodeType)
    • getDateFilterDelayUnit

      private int getDateFilterDelayUnit(DateFilterDelayUnit dateFilterDelayUnit)
    • 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

      private String formatDate(DateFilterDelayUnit dateFilterDelayUnit, Calendar date)
    • matchEntityType

      private boolean matchEntityType(org.alfresco.service.cmr.repository.NodeRef entityRef, org.alfresco.service.namespace.QName entityType)