Class 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)
    • Constructor Detail

      • RepositoryLocation

        public RepositoryLocation()
      • RepositoryLocation

        public RepositoryLocation​(org.alfresco.service.cmr.repository.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 Detail

      • 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 org.alfresco.service.cmr.repository.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​(org.alfresco.service.namespace.QName contentModelType)
        Get the Lucene query statement for models, based on the path
        Returns:
        the Lucene query statement
      • getXPathQueryStatement

        public 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 String[] getPathElements()