Interface ExternalResourceService


  • public interface ExternalResourceService
    This service allows Features to create and delete external resources.
    • Method Detail

      • createExternalResource

        void createExternalResource​(java.lang.String path,
                                    byte[] data)
                             throws java.io.IOException
        Creates an external resource at the given path with the given data.
        Parameters:
        path - the path of the external resource.
        data - the data of the external resource.
        Throws:
        java.io.IOException - if the external resource could not be created.
      • createExternalImage

        void createExternalImage​(java.lang.String path,
                                 ExternalResourceService.Format format,
                                 byte[] compressedData)
                          throws java.io.IOException
        Creates an external image at the given path in the given format with the given compressed data.
        Parameters:
        path - the path of the external image.
        format - the format of the external image.
        compressedData - the compressed data of the external image.
        Throws:
        java.io.IOException - if the external image could not be created.
      • deleteExternalResources

        void deleteExternalResources​(java.lang.String path)
        Deletes the external resources contained in the folder at the given path.
        Parameters:
        path - the path of the folder.