Package org.alfresco.repo.dictionary
Class RepositoryLocation
java.lang.Object
org.alfresco.repo.dictionary.RepositoryLocation
- Direct Known Subclasses:
DynamicCreateRepositoryLocation
Repository location object - defines a location in the repository (can also be used for classpath location)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryLocation(StoreRef storeRef, String path, String queryLanguage) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetLuceneQueryStatement(QName contentModelType) Get the Lucene query statement for models, based on the pathgetPath()Get the pathString[]Get the query languageGet the store reference (note: should be ignored for classpath location)getXPathQueryStatement(QName prefixResolvedContentModelType) Get the XPath query statement for models, based on the pathvoidSet the path Example path: /app:company_home/app:dictionary/app:modelsvoidsetQueryLanguage(String queryLanguage) Set the query languagevoidsetStoreId(String storeId) Set the store identifiervoidsetStoreProtocol(String storeProtocol) Set the store protocol
-
Field Details
-
LANGUAGE_PATH
- See Also:
-
LANGUAGE_CLASSPATH
- See Also:
-
-
Constructor Details
-
RepositoryLocation
public RepositoryLocation() -
RepositoryLocation
Constructor- Parameters:
storeRef- the store reference (e.g. 'workspace://SpacesStore' )path- the path (e.g. '/app:company_home/app:dictionary/app:models' )queryLanguage- the query language (e.g. 'xpath' or 'lucence')
-
-
Method Details
-
setStoreProtocol
Set the store protocol- Parameters:
storeProtocol- the store protocol
-
setStoreId
Set the store identifier- Parameters:
storeId- the store identifier
-
setPath
Set the path Example path: /app:company_home/app:dictionary/app:models- Parameters:
path- the path
-
setQueryLanguage
Set the query language- Parameters:
queryLanguage- the search language
-
getStoreRef
Get the store reference (note: should be ignored for classpath location)- Returns:
- the store reference
-
getPath
Get the path- Returns:
- the path
-
getQueryLanguage
Get the query language- Returns:
- the query language
-
getLuceneQueryStatement
Get the Lucene query statement for models, based on the path- Returns:
- the Lucene query statement
-
getXPathQueryStatement
Get the XPath query statement for models, based on the path- Returns:
- the XPath query statement
-
getPathElements
-