public class PackageManager
extends InstanceService
Allows to communicate with CRX Package Manager.
| Modifier and Type | Class and Description |
|---|---|
static class |
PackageManager.Companion |
| Modifier and Type | Field and Description |
|---|---|
static PackageManager.Companion |
Companion |
static java.lang.String |
HTML_PATH |
static java.lang.String |
JSON_PATH |
static java.lang.String |
LIST_JSON |
static java.lang.String |
PATH |
| Constructor and Description |
|---|
PackageManager(InstanceSync sync)
Allows to communicate with CRX Package Manager.
|
| Modifier and Type | Method and Description |
|---|---|
UploadResponse |
activate(java.lang.String remotePath) |
BuildResponse |
build(java.lang.String remotePath) |
DeleteResponse |
delete(java.lang.String remotePath) |
void |
deploy(java.io.File file,
boolean uploadForce,
Retry uploadRetry,
boolean installRecursive,
Retry installRetry,
boolean activate) |
void |
distribute(java.io.File file,
boolean uploadForce,
Retry uploadRetry,
boolean installRecursive,
Retry installRetry) |
java.io.File |
download(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageDefinition,kotlin.Unit> definition,
Retry retry)
Create package on the fly, upload it to instance then build it.
Finally download built package by replacing it with initially created.
|
java.io.File |
download(kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.pkg.PackageDefinition,kotlin.Unit> definition) |
void |
download(java.lang.String remotePath,
java.io.File targetFile,
Retry retry) |
Package |
find(java.io.File file,
boolean refresh,
Retry retry) |
Package |
find(java.lang.String group,
java.lang.String name,
java.lang.String version,
boolean refresh,
Retry retry) |
Package |
get(java.io.File file,
boolean refresh,
Retry retry) |
Package |
get(java.lang.String group,
java.lang.String name,
java.lang.String version,
boolean refresh,
Retry retry) |
InstallResponse |
install(java.lang.String remotePath,
boolean recursive,
Retry retry) |
boolean |
isSnapshot(java.io.File file) |
ListResponse |
list(Retry retry) |
UninstallResponse |
uninstall(java.lang.String remotePath) |
UploadResponse |
upload(java.io.File file,
boolean force,
Retry retry) |
getAem, getInstance, getProject, getSync@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 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. Finally download built package by replacing it with initially created.
@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)