Class AbstractBlobStore<T extends ConfigurationProfile>

    • Constructor Detail

      • AbstractBlobStore

        public AbstractBlobStore()
    • Method Detail

      • getId

        public String getId()
        Description copied from interface: BlobStore
        Returns the unique id of the store
        Specified by:
        getId in interface BlobStore
        Returns:
        the id
      • setId

        public void setId​(String id)
      • setPattern

        public void setPattern​(String pattern)
      • setPublishingTargetResolver

        public void setPublishingTargetResolver​(PublishingTargetResolver publishingTargetResolver)
      • isCompatible

        public boolean isCompatible​(String path)
        Description copied from interface: BlobStore
        Indicates if the given path is compatible with the store
        Specified by:
        isCompatible in interface BlobStore
        Parameters:
        path - path to check
        Returns:
        true if the path is compatible
      • init

        public void init​(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config)
                  throws ConfigurationException
        Description copied from interface: BlobStore
        Performs all setup needed with the given configuration
        Specified by:
        init in interface BlobStore
        Parameters:
        config - the configuration object
        Throws:
        ConfigurationException - is any error occurs
      • doInit

        protected abstract void doInit​(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config)
                                throws ConfigurationException
        Throws:
        ConfigurationException
      • getResource

        public org.springframework.core.io.Resource getResource​(String path,
                                                                Blob blob)
        Description copied from interface: BlobStore
        Resolves the given blob to a readable resource
        Specified by:
        getResource in interface BlobStore
        Parameters:
        path - the path of the resource
        blob - the blob file
        Returns:
        the resource object