Class RepositoryLocation

java.lang.Object
org.alfresco.repo.dictionary.RepositoryLocation
Direct Known Subclasses:
DynamicCreateRepositoryLocation

public class RepositoryLocation extends Object
Repository location object - defines a location in the repository (can also be used for classpath location)
  • Field Details

  • Constructor Details

    • RepositoryLocation

      public RepositoryLocation()
    • RepositoryLocation

      public RepositoryLocation(StoreRef storeRef, String path, 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 Details

    • setStoreProtocol

      public void setStoreProtocol(String storeProtocol)
      Set the store protocol
      Parameters:
      storeProtocol - the store protocol
    • setStoreId

      public void setStoreId(String storeId)
      Set the store identifier
      Parameters:
      storeId - the store identifier
    • setPath

      public void setPath(String path)
      Set the path Example path: /app:company_home/app:dictionary/app:models
      Parameters:
      path - the path
    • setQueryLanguage

      public void setQueryLanguage(String queryLanguage)
      Set the query language
      Parameters:
      queryLanguage - the search language
    • getStoreRef

      public StoreRef getStoreRef()
      Get the store reference (note: should be ignored for classpath location)
      Returns:
      the store reference
    • getPath

      public String getPath()
      Get the path
      Returns:
      the path
    • getQueryLanguage

      public String getQueryLanguage()
      Get the query language
      Returns:
      the query language
    • getLuceneQueryStatement

      public String getLuceneQueryStatement(QName contentModelType)
      Get the Lucene query statement for models, based on the path
      Returns:
      the Lucene query statement
    • getXPathQueryStatement

      public String getXPathQueryStatement(QName prefixResolvedContentModelType)
      Get the XPath query statement for models, based on the path
      Returns:
      the XPath query statement
    • getPathElements

      public String[] getPathElements()