-
public final class PackageManager extends InstanceService
Allows to communicate with CRX Package Manager.
-
-
Field Summary
Fields Modifier and Type Field Description private final Property<Boolean>uploadForceprivate RetryuploadRetryprivate RetryinstallRetryprivate final Property<Boolean>installRecursiveprivate final Property<Boolean>deployAvoidanceprivate final MapProperty<String, Boolean>workflowToggleprivate RetrylistRetryprivate final Property<Boolean>listRefreshprivate RetrydownloadRetryprivate final ListProperty<String>errorsprivate final ListProperty<String>snapshotsprivate final Property<Int>responseBufferprivate final AemExtensionaemprivate final Instanceinstanceprivate final Projectprojectprivate final CommonExtensioncommonprivate final Loggerloggerprivate final InstanceSyncsync
-
Constructor Summary
Constructors Constructor Description PackageManager(InstanceSync sync)
-
Method Summary
Modifier and Type Method Description final Packageget(File file)final Packageget(VaultDefinition definition)final Packageget(String group, String name, String version)final Packagefind(File file)final Packagefind(VaultDefinition definition)final Packagefind(String group, String name, String version)final List<Package>findAll(String group, String name)final Booleancontains(File file)final ListResponselist()final UploadResponseupload(File file)final Filedownload(Function1<PackageDefinition, Unit> definition)Create package on the fly, upload it to instance then build it. final Filedownload(PackageDefinition definition)Create package on the fly, upload it to instance then build it. final Unitdownload(String remotePath, File targetFile)final BuildResponsebuild(String remotePath)final InstallResponseinstall(File file)final InstallResponseinstall(String remotePath)final BooleanisSnapshot(File file)final BooleanisDeployed(File file)final BooleanisDeployed(Package pkg)final Booleandeploy(File file, Boolean activate)final Booleandistribute(File file)final UploadResponseactivate(File file)final UploadResponseactivate(String remotePath)final DeleteResponsedelete(File file)final DeleteResponsedelete(String remotePath)final UninstallResponseuninstall(File file)final UninstallResponseuninstall(String remotePath)final Booleanpurge(File file)final Property<Boolean>getUploadForce()Force upload CRX package regardless if it was previously uploaded. final RetrygetUploadRetry()Repeat upload when failed (brute-forcing). final RetrygetInstallRetry()Repeat install when failed (brute-forcing). final Property<Boolean>getInstallRecursive()Determines if when on package install, sub-packages included in CRX package content should be also installed. final Property<Boolean>getDeployAvoidance()Deploys only if package is changed (checksum based) or reinstalled on instance in the meantime. final MapProperty<String, Boolean>getWorkflowToggle()Allows to temporarily enable or disable workflows during CRX package deployment. final RetrygetListRetry()Repeat listing package when failed (brute-forcing). final Property<Boolean>getListRefresh()Packages are installed lazy which means already installed will no be installed again. final RetrygetDownloadRetry()Repeat download when failed (brute-forcing). final ListProperty<String>getErrors()Define patterns for known exceptions which could be thrown during package installation making it impossible to succeed. final ListProperty<String>getSnapshots()CRX package name conventions (with wildcard) indicating that package can change over time while having same version specified. final Property<Int>getResponseBuffer()Determines number of lines to process at once during reading Package Manager HTML responses. final AemExtensiongetAem()final InstancegetInstance()final ProjectgetProject()final CommonExtensiongetCommon()final LoggergetLogger()final InstanceSyncgetSync()final UnitsetUploadRetry(Retry uploadRetry)Repeat upload when failed (brute-forcing). final UnitsetInstallRetry(Retry installRetry)Repeat install when failed (brute-forcing). final UnitsetListRetry(Retry listRetry)Repeat listing package when failed (brute-forcing). final UnitsetDownloadRetry(Retry downloadRetry)Repeat download when failed (brute-forcing). -
-
Constructor Detail
-
PackageManager
PackageManager(InstanceSync sync)
-
-
Method Detail
-
get
final Package get(VaultDefinition definition)
-
find
final Package find(VaultDefinition definition)
-
list
final ListResponse list()
-
upload
final UploadResponse upload(File file)
-
download
final File download(Function1<PackageDefinition, Unit> definition)
Create package on the fly, upload it to instance then build it.
-
download
final File download(PackageDefinition definition)
Create package on the fly, upload it to instance then build it.
-
build
final BuildResponse build(String remotePath)
-
install
final InstallResponse install(File file)
-
install
final InstallResponse install(String remotePath)
-
isSnapshot
final Boolean isSnapshot(File file)
-
isDeployed
final Boolean isDeployed(File file)
-
isDeployed
final Boolean isDeployed(Package pkg)
-
distribute
final Boolean distribute(File file)
-
activate
final UploadResponse activate(File file)
-
activate
final UploadResponse activate(String remotePath)
-
delete
final DeleteResponse delete(File file)
-
delete
final DeleteResponse delete(String remotePath)
-
uninstall
final UninstallResponse uninstall(File file)
-
uninstall
final UninstallResponse uninstall(String remotePath)
-
getUploadForce
final Property<Boolean> getUploadForce()
Force upload CRX package regardless if it was previously uploaded.
-
getUploadRetry
final Retry getUploadRetry()
Repeat upload when failed (brute-forcing).
-
getInstallRetry
final Retry getInstallRetry()
Repeat install when failed (brute-forcing).
-
getInstallRecursive
final Property<Boolean> getInstallRecursive()
Determines if when on package install, sub-packages included in CRX package content should be also installed.
-
getDeployAvoidance
final Property<Boolean> getDeployAvoidance()
Deploys only if package is changed (checksum based) or reinstalled on instance in the meantime.
-
getWorkflowToggle
final MapProperty<String, Boolean> getWorkflowToggle()
Allows to temporarily enable or disable workflows during CRX package deployment.
-
getListRetry
final Retry getListRetry()
Repeat listing package when failed (brute-forcing).
-
getListRefresh
final Property<Boolean> getListRefresh()
Packages are installed lazy which means already installed will no be installed again.
-
getDownloadRetry
final Retry getDownloadRetry()
Repeat download when failed (brute-forcing).
-
getErrors
final ListProperty<String> getErrors()
Define patterns for known exceptions which could be thrown during package installation making it impossible to succeed.
-
getSnapshots
final ListProperty<String> getSnapshots()
CRX package name conventions (with wildcard) indicating that package can change over time while having same version specified.
-
getResponseBuffer
final Property<Int> getResponseBuffer()
Determines number of lines to process at once during reading Package Manager HTML responses.
-
getAem
final AemExtension getAem()
-
getInstance
final Instance getInstance()
-
getProject
final Project getProject()
-
getCommon
final CommonExtension getCommon()
-
getSync
final InstanceSync getSync()
-
setUploadRetry
final Unit setUploadRetry(Retry uploadRetry)
Repeat upload when failed (brute-forcing).
-
setInstallRetry
final Unit setInstallRetry(Retry installRetry)
Repeat install when failed (brute-forcing).
-
setListRetry
final Unit setListRetry(Retry listRetry)
Repeat listing package when failed (brute-forcing).
-
setDownloadRetry
final Unit setDownloadRetry(Retry downloadRetry)
Repeat download when failed (brute-forcing).
-
-
-
-