public class ImportPlan extends java.lang.Object implements InternalDataContainer, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
ImportPlan(java.util.Collection<ImportOperation> operations, char[] passphrase, boolean includeDependencies, java.util.Set<java.lang.String> envValuesToPreserve)
Constructor
|
ImportPlan(java.util.Map<Ref,ImportOperation> operations, char[] passphrase) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOperation(ImportOperation operation)
Adds an operation for the existing plan.
|
java.util.Set<java.lang.String> |
getEnvValuesToPreserve()
Returns the environment values to be preserved.
|
ImportOperation |
getImportOperation(Ref ref) |
java.util.Map<Ref,ImportOperation> |
getOperations()
Returns import operations that will be performed by the import plan.
|
char[] |
getPassphrase() |
java.util.Collection<Ref> |
getRefsToBeDeleted() |
java.util.Collection<Ref> |
getRefsToBeImported() |
boolean |
isIncludeDependencies() |
void |
removeInternalData(Sanitizer s) |
void |
removeOperation(Ref ref)
Removes the import operation for the given reference
|
void |
setEnvValuesToBePreserved(java.util.Set<java.lang.String> envValuesToPreserve)
Sets the env values to be preserved.
|
void |
setIncludeDependencies(boolean includeDependencies) |
void |
setPassphrase(char[] passphrase) |
public static final long serialVersionUID
public ImportPlan(java.util.Map<Ref,ImportOperation> operations, char[] passphrase)
operations - a map of operations for all resources. One ImportOperation per resource need to be passed.ImportOperationpassphrase - the pass phrase to use for decrypting resources that have been encrypted. Null value can be given if the jar file is known to not have been encrypted.public ImportPlan(java.util.Collection<ImportOperation> operations, char[] passphrase, boolean includeDependencies, java.util.Set<java.lang.String> envValuesToPreserve)
operations - collection of import operations that define exactly what resources will be affected and how.passphrase - the pass phrase to use for decrypting resources that have been encrypted. Null value can be given if the jar file is known to not have been encrypted.includeDependencies - whether to include dependenciesenvValuesToPreserve - environment values that will be preserved.public char[] getPassphrase()
public void setPassphrase(char[] passphrase)
public boolean isIncludeDependencies()
public void setIncludeDependencies(boolean includeDependencies)
public void setEnvValuesToBePreserved(java.util.Set<java.lang.String> envValuesToPreserve)
envValuesToPreserve -public java.util.Set<java.lang.String> getEnvValuesToPreserve()
public void addOperation(ImportOperation operation)
operation - that needs to be addedpublic void removeOperation(Ref ref)
ref -public java.util.Map<Ref,ImportOperation> getOperations()
public ImportOperation getImportOperation(Ref ref)
public java.util.Collection<Ref> getRefsToBeImported()
public java.util.Collection<Ref> getRefsToBeDeleted()
public void removeInternalData(Sanitizer s)
removeInternalData in interface InternalDataContainer