Package org.alfresco.repo.dictionary
Class RepositoryLocation
- java.lang.Object
-
- org.alfresco.repo.dictionary.RepositoryLocation
-
- Direct Known Subclasses:
DynamicCreateRepositoryLocation
public class RepositoryLocation extends java.lang.ObjectRepository location object - defines a location in the repository (can also be used for classpath location)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLANGUAGE_CLASSPATHstatic java.lang.StringLANGUAGE_PATH
-
Constructor Summary
Constructors Constructor Description RepositoryLocation()RepositoryLocation(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String path, java.lang.String queryLanguage)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLuceneQueryStatement(org.alfresco.service.namespace.QName contentModelType)Get the Lucene query statement for models, based on the pathjava.lang.StringgetPath()Get the pathjava.lang.String[]getPathElements()java.lang.StringgetQueryLanguage()Get the query languageorg.alfresco.service.cmr.repository.StoreRefgetStoreRef()Get the store reference (note: should be ignored for classpath location)java.lang.StringgetXPathQueryStatement(org.alfresco.service.namespace.QName prefixResolvedContentModelType)Get the XPath query statement for models, based on the pathvoidsetPath(java.lang.String path)Set the path Example path: /app:company_home/app:dictionary/app:modelsvoidsetQueryLanguage(java.lang.String queryLanguage)Set the query languagevoidsetStoreId(java.lang.String storeId)Set the store identifiervoidsetStoreProtocol(java.lang.String storeProtocol)Set the store protocol
-
-
-
Field Detail
-
LANGUAGE_PATH
public static final java.lang.String LANGUAGE_PATH
- See Also:
- Constant Field Values
-
LANGUAGE_CLASSPATH
public static final java.lang.String LANGUAGE_CLASSPATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RepositoryLocation
public RepositoryLocation()
-
RepositoryLocation
public RepositoryLocation(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String path, java.lang.String queryLanguage)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 Detail
-
setStoreProtocol
public void setStoreProtocol(java.lang.String storeProtocol)
Set the store protocol- Parameters:
storeProtocol- the store protocol
-
setStoreId
public void setStoreId(java.lang.String storeId)
Set the store identifier- Parameters:
storeId- the store identifier
-
setPath
public void setPath(java.lang.String path)
Set the path Example path: /app:company_home/app:dictionary/app:models- Parameters:
path- the path
-
setQueryLanguage
public void setQueryLanguage(java.lang.String queryLanguage)
Set the query language- Parameters:
queryLanguage- the search language
-
getStoreRef
public org.alfresco.service.cmr.repository.StoreRef getStoreRef()
Get the store reference (note: should be ignored for classpath location)- Returns:
- the store reference
-
getPath
public java.lang.String getPath()
Get the path- Returns:
- the path
-
getQueryLanguage
public java.lang.String getQueryLanguage()
Get the query language- Returns:
- the query language
-
getLuceneQueryStatement
public java.lang.String getLuceneQueryStatement(org.alfresco.service.namespace.QName contentModelType)
Get the Lucene query statement for models, based on the path- Returns:
- the Lucene query statement
-
getXPathQueryStatement
public java.lang.String getXPathQueryStatement(org.alfresco.service.namespace.QName prefixResolvedContentModelType)
Get the XPath query statement for models, based on the path- Returns:
- the XPath query statement
-
getPathElements
public java.lang.String[] getPathElements()
-
-