Interface ITemplateStorage

  • All Superinterfaces:
    java.lang.AutoCloseable
    All Known Implementing Classes:
    FTPTemplateStorage, LocalTemplateStorage

    public interface ITemplateStorage
    extends java.lang.AutoCloseable
    The template storage manage the management of service specific templates that should copy or deploy on the implementation

    The implementation allows to deploy, copy and convert to a zip compressed array any template that should handle

    • Method Detail

      • deploy

        boolean deploy​(byte[] zipInput,
                       ServiceTemplate target)
        Deploys a zip compressed into a target template storage that should decompressed and deploy on the target template
        Parameters:
        zipInput - the target zip compressed byte array within all files are included for the target template
        target - the target serviceTemplate to that should deploy
        Returns:
        true if the deployment was successful
      • deploy

        boolean deploy​(java.io.File directory,
                       ServiceTemplate target)
        Deploys the following directory files to the target template storage.
        Parameters:
        directory - the
        target -
        Returns:
      • deploy

        boolean deploy​(java.nio.file.Path[] paths,
                       ServiceTemplate target)
      • deploy

        boolean deploy​(java.io.File[] files,
                       ServiceTemplate target)
      • copy

        boolean copy​(ServiceTemplate template,
                     java.io.File directory)
      • copy

        boolean copy​(ServiceTemplate template,
                     java.nio.file.Path directory)
      • copy

        boolean copy​(ServiceTemplate template,
                     java.io.File[] directories)
      • copy

        boolean copy​(ServiceTemplate template,
                     java.nio.file.Path[] directories)