Class RepositoryLocation

  • Direct Known Subclasses:
    DynamicCreateRepositoryLocation

    public class RepositoryLocation
    extends java.lang.Object
    Repository location object - defines a location in the repository (can also be used for classpath location)
    • 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.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 (note: should be ignored for classpath location)
      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
    • 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()