Interface ResourceManager

    • Method Detail

      • saveResourceContent

        step.resources.Resource saveResourceContent​(String resourceId,
                                                    InputStream resourceStream,
                                                    String resourceFileName)
                                             throws IOException
        Save the content provided as stream to an existing resource. This creates a new ResourceRevision for the Resource and saves the content provided as stream under this revision.
        Parameters:
        resourceId - the id of the resource to be updated
        resourceStream - the stream of the resource to be saved
        resourceFileName - the name of the resource (filename)
        Returns:
        the updated Resource
        Throws:
        IOException - an IOException occurs during the call
      • saveResource

        step.resources.Resource saveResource​(step.resources.Resource resource)
                                      throws IOException
        Saved the resource object only
        Parameters:
        resource - the resource to be saved
        Returns:
        the updated Resource
        Throws:
        IOException - an IOException occurs during the call
      • resourceExists

        boolean resourceExists​(String resourceId)
        Test if a given resource id exists
        Parameters:
        resourceId - the id of the resource to test
        Returns:
        true if the resource exists
      • deleteResource

        void deleteResource​(String resourceId)
        Delete the resource and all its revisions
        Parameters:
        resourceId - the id of the Resource to be deleted
      • getResourceContent

        ResourceRevisionContent getResourceContent​(String resourceId)
                                            throws IOException
        Get the content of an existing Resource
        Parameters:
        resourceId - the id of the Resource to be deleted
        Returns:
        the content of the resource as stream
        Throws:
        IOException - an IOException occurs during the call
      • getResourceRevisionByResourceId

        step.resources.ResourceRevision getResourceRevisionByResourceId​(String resourceId)
      • getResource

        step.resources.Resource getResource​(String resourceId)
      • lookupResourceByName

        step.resources.Resource lookupResourceByName​(String resourcename)
      • getResourcesRootPath

        String getResourcesRootPath()
      • updateResourceContent

        step.resources.Resource updateResourceContent​(step.resources.Resource resource,
                                                      InputStream resourceStream,
                                                      String resourceFileName,
                                                      step.resources.ResourceRevision revision)
                                               throws IOException
        Throws:
        IOException
      • saveResourceRevision

        step.resources.ResourceRevision saveResourceRevision​(step.resources.ResourceRevision resourceRevision)
                                                      throws IOException
        Throws:
        IOException