org.alfresco.repo.dictionary
Class RepositoryLocation

java.lang.Object
  extended by org.alfresco.repo.dictionary.RepositoryLocation

public class RepositoryLocation
extends java.lang.Object

Repository location object, defines a location in the repository from which dictionary models/resources should be loaded for inclusion in the data dictionary.


Field Summary
static java.lang.String LANGUAGE_PATH
           
 
Constructor Summary
RepositoryLocation()
           
RepositoryLocation(org.alfresco.service.cmr.repository.StoreRef storeRef, java.lang.String path, java.lang.String queryLanguage)
          Constructor
 
Method Summary
 java.lang.String getLuceneQueryStatement(org.alfresco.service.namespace.QName contentModelType)
          Get the Lucene query statement for models, based on the path
 java.lang.String getPath()
          Get the path
 java.lang.String[] getPathElements()
           
 java.lang.String getQueryLanguage()
          Get the query language
 org.alfresco.service.cmr.repository.StoreRef getStoreRef()
          Get the store reference
 java.lang.String getXPathQueryStatement(org.alfresco.service.namespace.QName prefixResolvedContentModelType)
          Get the XPath query statement for models, based on the path
 void setPath(java.lang.String path)
          Set the path Example path: /app:company_home/app:dictionary/app:models
 void setQueryLanguage(java.lang.String queryLanguage)
          Set the query language
 void setStoreId(java.lang.String storeId)
          Set the store identifier
 void setStoreProtocol(java.lang.String storeProtocol)
          Set the store protocol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LANGUAGE_PATH

public static final java.lang.String LANGUAGE_PATH
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:
path - the search language

getStoreRef

public org.alfresco.service.cmr.repository.StoreRef getStoreRef()
Get the store reference

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()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.