public class PackagedScriptHelper
extends java.lang.Object
Constructor and Description |
---|
PackagedScriptHelper(<any> groovyHelperProvider,
LicenseService licenseService,
TerminalService terminalService,
SimpleScriptingService scriptingService,
FileServerService fileServerService,
BasepathZipExtractConfigFactory zipExtractConfigFactory,
ZipUtilsService zipUtilsService,
<any> servletContext) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
executePackage(FileServerFolder targetDir) |
java.lang.String |
executePackage(FileServerFolder targetDir,
java.lang.String scriptOptions) |
java.lang.String |
executePackage(FileServerFolder targetDir,
java.lang.String scriptOptions,
boolean executeRunScriptCommands,
boolean executeCopyFilesCommands,
java.util.Optional<java.lang.String> copyFilesCustomDstPathPrefix) |
FileServerFolder |
extractPackageTemporarily(java.io.InputStream is) |
FileServerFolder |
getFileServerTempDir() |
java.io.File |
getPackageDirectory() |
java.util.List<java.io.File> |
listPackages() |
boolean |
validateZip(java.io.File f,
boolean requireAutorun) |
boolean |
validateZip(java.io.InputStream is,
boolean requireAutorun) |
public PackagedScriptHelper(<any> groovyHelperProvider, LicenseService licenseService, TerminalService terminalService, SimpleScriptingService scriptingService, FileServerService fileServerService, BasepathZipExtractConfigFactory zipExtractConfigFactory, ZipUtilsService zipUtilsService, <any> servletContext)
public java.io.File getPackageDirectory()
public FileServerFolder extractPackageTemporarily(java.io.InputStream is) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public FileServerFolder getFileServerTempDir()
public java.lang.String executePackage(FileServerFolder targetDir)
public java.lang.String executePackage(FileServerFolder targetDir, java.lang.String scriptOptions)
public java.lang.String executePackage(FileServerFolder targetDir, java.lang.String scriptOptions, boolean executeRunScriptCommands, boolean executeCopyFilesCommands, java.util.Optional<java.lang.String> copyFilesCustomDstPathPrefix)
public java.util.List<java.io.File> listPackages()
public boolean validateZip(java.io.InputStream is, boolean requireAutorun)
public boolean validateZip(java.io.File f, boolean requireAutorun)