public class PackageManager
extends InstanceService
Allows to communicate with CRX Package Manager.
@NotNull public static java.lang.String PATH
@NotNull public static java.lang.String JSON_PATH
@NotNull public static java.lang.String HTML_PATH
@NotNull public static java.lang.String LIST_JSON
public static com.cognifide.gradle.aem.common.instance.service.pkg.PackageManager.Companion Companion
public PackageManager(@NotNull
InstanceSync sync)
Allows to communicate with CRX Package Manager.
@NotNull public Package get(@NotNull java.lang.String group, @NotNull java.lang.String name, @NotNull java.lang.String version, boolean refresh, @NotNull Retry retry)
@Nullable public Package find(@NotNull java.io.File file, boolean refresh, @NotNull Retry retry)
@Nullable public Package find(@NotNull java.lang.String group, @NotNull java.lang.String name, @NotNull java.lang.String version, boolean refresh, @NotNull Retry retry)
@NotNull public ListResponse list(@NotNull Retry retry)
@NotNull public UploadResponse upload(@NotNull java.io.File file, boolean force, @NotNull Retry retry)
@NotNull
public java.io.File download(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageDefinition,kotlin.Unit> definition,
@NotNull
Retry retry)
Create package on the fly, upload it to instance then build it. Next built package is downloaded - replacing initially created package. Finally built package is deleted on instance (preventing messing up).
@NotNull
public java.io.File download(@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageDefinition,kotlin.Unit> definition)
public void download(@NotNull
java.lang.String remotePath,
@NotNull
java.io.File targetFile,
@NotNull
Retry retry)
@NotNull public BuildResponse build(@NotNull java.lang.String remotePath)
@NotNull public InstallResponse install(@NotNull java.lang.String remotePath, boolean recursive, @NotNull Retry retry)
public boolean isSnapshot(@NotNull
java.io.File file)
public void deploy(@NotNull
java.io.File file,
boolean uploadForce,
@NotNull
Retry uploadRetry,
boolean installRecursive,
@NotNull
Retry installRetry,
boolean activate)
public void distribute(@NotNull
java.io.File file,
boolean uploadForce,
@NotNull
Retry uploadRetry,
boolean installRecursive,
@NotNull
Retry installRetry)
@NotNull public UploadResponse activate(@NotNull java.lang.String remotePath)
@NotNull public DeleteResponse delete(@NotNull java.lang.String remotePath)
@NotNull public UninstallResponse uninstall(@NotNull java.lang.String remotePath)