Class RepositoryPathConfigBean

  • Direct Known Subclasses:
    RepositoryFolderConfigBean

    public class RepositoryPathConfigBean
    extends java.lang.Object
    Composite property bean to identify a repository path.
    Since:
    3.2
    Author:
    Derek Hulley
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getRootPath()
      Gets the path within the store
      java.lang.String getStore()  
      org.alfresco.service.cmr.repository.StoreRef getStoreRef()
      Gets the Alfresco store reference
      org.alfresco.service.cmr.repository.NodeRef resolveNodePath​(org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.cmr.search.SearchService searchService)
      Helper method to resolve the path represented by this configuration bean.
      void setRootPath​(java.lang.String path)
      Sets the path within the store.
      void setStore​(java.lang.String storeRef)
      Sets the Alfresco store name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RepositoryPathConfigBean

        public RepositoryPathConfigBean()
    • Method Detail

      • getStoreRef

        public org.alfresco.service.cmr.repository.StoreRef getStoreRef()
        Gets the Alfresco store reference
        Returns:
        the Alfresco store reference
      • getStore

        public java.lang.String getStore()
        Returns:
        Returns the string representation of the store reference
      • setStore

        public void setStore​(java.lang.String storeRef)
        Sets the Alfresco store name.
        Parameters:
        storeRef - the Alfresco store name
      • getRootPath

        public java.lang.String getRootPath()
        Gets the path within the store
      • setRootPath

        public void setRootPath​(java.lang.String path)
        Sets the path within the store. This must start with / at least.
        Parameters:
        path - the path within the store
      • resolveNodePath

        public org.alfresco.service.cmr.repository.NodeRef resolveNodePath​(org.alfresco.service.namespace.NamespaceService namespaceService,
                                                                           org.alfresco.service.cmr.repository.NodeService nodeService,
                                                                           org.alfresco.service.cmr.search.SearchService searchService)
        Helper method to resolve the path represented by this configuration bean.

        Authentication and transactions are the client's responsibility.

        Returns:
        Returns the node reference (first one found) or null