public class BackupResolver
| Constructor and Description |
|---|
BackupResolver(AemExtension aem) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getAny()
Backup file from any source (local & remote sources).
|
java.lang.String |
getDownloadUrl()
URL to remote backup file.
|
java.io.File |
getLocal()
Backup file from local source.
|
java.io.File |
getLocalDir()
Directory storing locally created backup files.
|
kotlin.jvm.functions.Function0<java.lang.String> |
getNamer()
Defines backup file naming rule.
Must be in sync with selector rule.
|
java.io.File |
getRemote()
Backup file from remote source.
|
java.io.File |
getRemoteDir()
Directory storing downloaded remote backup files.
|
kotlin.jvm.functions.Function1<java.util.Collection,com.cognifide.gradle.aem.common.instance.local.BackupSource> |
getSelector()
Defines backup source selection rule.
|
java.lang.String |
getSuffix()
File suffix indicating instance backup file.
|
java.lang.String |
getUploadUrl()
URL to remote directory in which backup files are stored.
|
void |
setDownloadUrl(java.lang.String p)
URL to remote backup file.
|
void |
setLocalDir(java.io.File p)
Directory storing locally created backup files.
|
void |
setNamer(kotlin.jvm.functions.Function0<java.lang.String> p)
Defines backup file naming rule.
Must be in sync with selector rule.
|
void |
setRemoteDir(java.io.File p)
Directory storing downloaded remote backup files.
|
void |
setSelector(kotlin.jvm.functions.Function1<? super java.util.Collection<com.cognifide.gradle.aem.common.instance.local.BackupSource>,com.cognifide.gradle.aem.common.instance.local.BackupSource> p)
Defines backup source selection rule.
|
void |
setSuffix(java.lang.String p)
File suffix indicating instance backup file.
|
void |
setUploadUrl(java.lang.String p)
URL to remote directory in which backup files are stored.
|
public BackupResolver(@NotNull
AemExtension aem)
@Nullable public java.lang.String getUploadUrl()
URL to remote directory in which backup files are stored.
public void setUploadUrl(@Nullable
java.lang.String p)
URL to remote directory in which backup files are stored.
@Nullable public java.lang.String getDownloadUrl()
URL to remote backup file.
public void setDownloadUrl(@Nullable
java.lang.String p)
URL to remote backup file.
@Nullable public java.io.File getAny()
Backup file from any source (local & remote sources).
@NotNull public java.io.File getLocalDir()
Directory storing locally created backup files.
public void setLocalDir(@NotNull
java.io.File p)
Directory storing locally created backup files.
@Nullable public java.io.File getLocal()
Backup file from local source.
@NotNull public java.io.File getRemoteDir()
Directory storing downloaded remote backup files.
public void setRemoteDir(@NotNull
java.io.File p)
Directory storing downloaded remote backup files.
@Nullable public java.io.File getRemote()
Backup file from remote source.
@NotNull public java.lang.String getSuffix()
File suffix indicating instance backup file.
public void setSuffix(@NotNull
java.lang.String p)
File suffix indicating instance backup file.
@NotNull public kotlin.jvm.functions.Function0<java.lang.String> getNamer()
Defines backup file naming rule. Must be in sync with selector rule.
public void setNamer(@NotNull
kotlin.jvm.functions.Function0<java.lang.String> p)
Defines backup file naming rule. Must be in sync with selector rule.
@NotNull public kotlin.jvm.functions.Function1<java.util.Collection,com.cognifide.gradle.aem.common.instance.local.BackupSource> getSelector()
Defines backup source selection rule.
By default takes desired backup by name (if provided) or takes most recent backup. Also by default, file names are sorted lexically / descending. If same name on local & remote source found, local has precedence. Still, this callback allows to customize order to be used.
public void setSelector(@NotNull
kotlin.jvm.functions.Function1<? super java.util.Collection<com.cognifide.gradle.aem.common.instance.local.BackupSource>,com.cognifide.gradle.aem.common.instance.local.BackupSource> p)
Defines backup source selection rule.
By default takes desired backup by name (if provided) or takes most recent backup. Also by default, file names are sorted lexically / descending. If same name on local & remote source found, local has precedence. Still, this callback allows to customize order to be used.