Class RepoUrlConfigSource

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.extensions.config.ConfigSource, org.springframework.web.context.ServletContextAware

    public class RepoUrlConfigSource
    extends org.springframework.extensions.config.source.UrlConfigSource
    ConfigSource that looks for a prefix to determine where to look for the config.
    Valid prefixes are:
    • :// the location provided is a path to a repository file
    as well as those defined in the core (UrlConfigSource) Example store URLs workspace://SpacesStore/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.webclient_extension.childname}/cm:web-client-config-custom.xml workspace://SpacesStore/app:company_home/app:dictionary/app:webclient_extension/cm:web-client-config-custom.xml
    • Field Summary

      • Fields inherited from class org.springframework.extensions.config.source.UrlConfigSource

        PREFIX_CLASSPATH, PREFIX_CLASSPATH_ALL, PREFIX_FILE, PREFIX_HTTP, PREFIX_JAR, PREFIX_WEBAPP
    • Constructor Summary

      Constructors 
      Constructor Description
      RepoUrlConfigSource​(java.lang.String sourceLocation)  
      RepoUrlConfigSource​(java.util.List<java.lang.String> sourceLocations)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getInputStream​(java.lang.String sourceUrl)  
      void setContentService​(ContentService contentService)  
      void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)  
      void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)  
      void setSearchService​(org.alfresco.service.cmr.search.SearchService searchService)  
      void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)  
      • Methods inherited from class org.springframework.extensions.config.source.UrlConfigSource

        afterPropertiesSet, processSourceString, processWildcardJarSource, setApplicationContext, setServletContext
      • Methods inherited from class org.springframework.extensions.config.source.BaseConfigSource

        addSourceString, getConfigDeployments
      • Methods inherited from class java.lang.Object

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

      • RepoUrlConfigSource

        public RepoUrlConfigSource​(java.lang.String sourceLocation)
      • RepoUrlConfigSource

        public RepoUrlConfigSource​(java.util.List<java.lang.String> sourceLocations)
    • Method Detail

      • setTenantService

        public void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)
      • setSearchService

        public void setSearchService​(org.alfresco.service.cmr.search.SearchService searchService)
      • setContentService

        public void setContentService​(ContentService contentService)
      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • getInputStream

        public java.io.InputStream getInputStream​(java.lang.String sourceUrl)
        Overrides:
        getInputStream in class org.springframework.extensions.config.source.UrlConfigSource