class PackageManager : InstanceService
Allows to communicate with CRX Package Manager.
<init> |
Allows to communicate with CRX Package Manager. PackageManager(sync: InstanceSync) |
activate |
fun activate(remotePath: String): UploadResponse |
build |
fun build(remotePath: String): BuildResponse |
delete |
fun delete(remotePath: String): DeleteResponse |
deploy |
fun deploy(file: File, uploadForce: Boolean = true, uploadRetry: Retry = aem.retry(), installRecursive: Boolean = true, installRetry: Retry = aem.retry(), activate: Boolean = false): Unit |
distribute |
fun distribute(file: File, uploadForce: Boolean = true, uploadRetry: Retry = aem.retry(), installRecursive: Boolean = true, installRetry: Retry = aem.retry()): Unit |
download |
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). fun download(definition: PackageDefinition.() -> Unit, retry: Retry): Filefun download(definition: PackageDefinition.() -> Unit): Filefun download(remotePath: String, targetFile: File = aem.temporaryFile(FilenameUtils.getName(remotePath)), retry: Retry = aem.retry()): Unit |
find |
fun find(file: File, refresh: Boolean = true, retry: Retry = aem.retry()): Package?fun find(group: String, name: String, version: String, refresh: Boolean = true, retry: Retry = aem.retry()): Package? |
get |
fun get(file: File, refresh: Boolean = true, retry: Retry = aem.retry()): Packagefun get(group: String, name: String, version: String, refresh: Boolean = true, retry: Retry = aem.retry()): Package |
install |
fun install(remotePath: String, recursive: Boolean = true, retry: Retry = aem.retry()): InstallResponse |
isSnapshot |
fun isSnapshot(file: File): Boolean |
list |
fun list(retry: Retry = aem.retry()): ListResponse |
uninstall |
fun uninstall(remotePath: String): UninstallResponse |
upload |
fun upload(file: File, force: Boolean = true, retry: Retry = aem.retry()): UploadResponse |
HTML_PATH |
const val HTML_PATH: String |
JSON_PATH |
const val JSON_PATH: String |
LIST_JSON |
const val LIST_JSON: String |
PATH |
const val PATH: String |