public class RepositoryLocation extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LANGUAGE_CLASSPATH |
static String |
LANGUAGE_PATH |
Constructor and Description |
---|
RepositoryLocation() |
RepositoryLocation(org.alfresco.service.cmr.repository.StoreRef storeRef,
String path,
String queryLanguage)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getLuceneQueryStatement(org.alfresco.service.namespace.QName contentModelType)
Get the Lucene query statement for models, based on the path
|
String |
getPath()
Get the path
|
String[] |
getPathElements() |
String |
getQueryLanguage()
Get the query language
|
org.alfresco.service.cmr.repository.StoreRef |
getStoreRef()
Get the store reference (note: should be ignored for classpath location)
|
String |
getXPathQueryStatement(org.alfresco.service.namespace.QName prefixResolvedContentModelType)
Get the XPath query statement for models, based on the path
|
void |
setPath(String path)
Set the path
Example path: /app:company_home/app:dictionary/app:models
|
void |
setQueryLanguage(String queryLanguage)
Set the query language
|
void |
setStoreId(String storeId)
Set the store identifier
|
void |
setStoreProtocol(String storeProtocol)
Set the store protocol
|
public static final String LANGUAGE_PATH
public static final String LANGUAGE_CLASSPATH
public RepositoryLocation()
public RepositoryLocation(org.alfresco.service.cmr.repository.StoreRef storeRef, String path, String queryLanguage)
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')public void setStoreProtocol(String storeProtocol)
storeProtocol
- the store protocolpublic void setStoreId(String storeId)
storeId
- the store identifierpublic void setPath(String path)
path
- the pathpublic void setQueryLanguage(String queryLanguage)
queryLanguage
- the search languagepublic org.alfresco.service.cmr.repository.StoreRef getStoreRef()
public String getPath()
public String getQueryLanguage()
public String getLuceneQueryStatement(org.alfresco.service.namespace.QName contentModelType)
public String getXPathQueryStatement(org.alfresco.service.namespace.QName prefixResolvedContentModelType)
public String[] getPathElements()
Copyright © 2005–2017 Alfresco Software. All rights reserved.