public void init() { super.init(); initIgnoringPathsByCriterion(aspectsForIgnoringPathsString, aspectsForIgnoringPaths, new DefinitionExistChecker() { @Override public boolean isDefinitionExists(QName qName) { return (null != dictionaryService.getAspect(qName)); } }); }
public void init() { super.init(); initIgnoringPathsByCriterion(typesForIgnoringPathsString, typesForIgnoringPaths, new DefinitionExistChecker() { @Override public boolean isDefinitionExists(QName qName) { return (null != dictionaryService.getType(qName)); } }); }
public void deleteIndex(StoreRef storeRef) { Indexer indexer = getIndexer(storeRef); indexer.deleteIndex(storeRef); }
public void testIdentity() { Locale locale = Locale.UK; HashSet<Locale> locales = new HashSet<Locale>(); locales.addAll(MLAnalysisMode.getLocales(MLAnalysisMode.LOCALE_ONLY, locale, false)); assertEquals(1, locales.size()); assertTrue(locales.contains(locale)); }
public QueryParameterDefinition getQueryParameterDefinition() { return container.getParameterDefinition(getQName()); }
private synchronized void loadCollectionsOnDemand() { if(initCollections != null) { for(String location: initCollections) { loadQueryCollection(location); } } initCollections = null; }
private Indexer getIndexer(StoreRef storeRef) { Indexer indexer = indexerAndSearcherFactory.getIndexer(storeRef); indexer.setReadThrough(AlfrescoTransactionSupport.getResource(KEY_READ_THROUGH) == Boolean.TRUE); return indexer; }
public void detectNodeChanges(NodeRef nodeRef, SearchService searcher, Collection<ChildAssociationRef> addedParents, Collection<ChildAssociationRef> deletedParents, Collection<ChildAssociationRef> createdNodes, Collection<NodeRef> updatedNodes) { Indexer indexer = getIndexer(nodeRef.getStoreRef()); indexer.detectNodeChanges(nodeRef, searcher, addedParents, deletedParents, createdNodes, updatedNodes); }
public void flushPending() { indexerAndSearcherFactory.flush(); } }
@Override public void afterPropertiesSet() throws Exception { for (IndexerAndSearcher factory : factories) { factory.registerQueryLanguage(this); } }
public List<Serializable> selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) throws InvalidNodeRefException, XPathException { return selectProperties(contextNodeRef, xpath, parameters, namespacePrefixResolver, followAllParentLinks, SearchService.LANGUAGE_XPATH); } }
public List<NodeRef> selectNodes(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) throws InvalidNodeRefException, XPathException { return selectNodes(contextNodeRef, xpath, parameters, namespacePrefixResolver, followAllParentLinks, SearchService.LANGUAGE_XPATH); }
public boolean contains(NodeRef nodeRef, QName propertyQName, String googleLikePattern) throws InvalidNodeRefException { return contains(nodeRef, propertyQName, googleLikePattern, SearchParameters.Operator.OR); }
public void init() { super.init(); initIgnoringPathsByCriterion(aspectsForIgnoringPathsString, aspectsForIgnoringPaths, new DefinitionExistChecker() { @Override public boolean isDefinitionExists(QName qName) { return (null != dictionaryService.getAspect(qName)); } }); }
public void init() { super.init(); initIgnoringPathsByCriterion(typesForIgnoringPathsString, typesForIgnoringPaths, new DefinitionExistChecker() { @Override public boolean isDefinitionExists(QName qName) { return (null != dictionaryService.getType(qName)); } }); }
public void deleteIndex(StoreRef storeRef) { Indexer indexer = getIndexer(storeRef); indexer.deleteIndex(storeRef); }
public QueryParameterDefinition getQueryParameterDefinition() { return container.getParameterDefinition(getQName()); }
public void flushPending() { indexerAndSearcherFactory.flush(); } }
@Override public void afterPropertiesSet() throws Exception { for (IndexerAndSearcher factory : factories) { factory.registerQueryLanguage(this); } }
public List<Serializable> selectProperties(NodeRef contextNodeRef, String xpath, QueryParameterDefinition[] parameters, NamespacePrefixResolver namespacePrefixResolver, boolean followAllParentLinks) throws InvalidNodeRefException, XPathException { return selectProperties(contextNodeRef, xpath, parameters, namespacePrefixResolver, followAllParentLinks, SearchService.LANGUAGE_XPATH); } }