public class ImportOptions
extends java.lang.Object
Constructor and Description |
---|
ImportOptions()
Default constructor.
|
ImportOptions(ImportOptions base)
Deprecated.
use
copy() instead. |
Modifier and Type | Method and Description |
---|---|
ImportOptions |
copy()
Creates a copy of this import options.
|
AccessControlHandling |
getAccessControlHandling()
Returns the default access control handling.
|
int |
getAutoSaveThreshold()
Returns the auto-save threshold.
|
java.util.regex.Pattern |
getCndPattern()
Returns the CND pattern
|
DependencyHandling |
getDependencyHandling()
Defines how package dependencies affect package installation and un-installation.
|
WorkspaceFilter |
getFilter()
Returns the default workspace filter.
|
java.lang.ClassLoader |
getHookClassLoader()
Returns the hook class loader.
|
ImportMode |
getImportMode()
Returns the import mode.
|
ProgressTrackerListener |
getListener()
Returns the progress tracker listener.
|
java.io.File |
getPatchDirectory()
Returns the patch directory
|
java.lang.String |
getPatchParentPath()
Returns the patch parent path
|
PathMapping |
getPathMapping()
Defines a path mapping that is applied to the incoming package paths and filter when installing the package.
|
boolean |
isDryRun()
Returns the dry run flag.
|
boolean |
isNonRecursive()
Defines the package installation should recursively install sub packages.
|
boolean |
isPatchKeepInRepo()
Returns the 'patch-keep-in-repo' flag.
|
boolean |
isStrict()
Returns the 'strict' flag.
|
void |
setAccessControlHandling(AccessControlHandling acHandling)
Sets the access control handling.
|
void |
setAutoSaveThreshold(int threshold)
Sets the auto-save threshold.
|
void |
setCndPattern(java.lang.String cndPattern)
Sets the CND file pattern.
|
void |
setDependencyHandling(DependencyHandling dependencyHandling)
Sets the dependency handling.
|
void |
setDryRun(boolean dryRun)
Sets the dry run flag.
|
void |
setFilter(WorkspaceFilter filter)
Sets the default workspace filter.
|
void |
setHookClassLoader(java.lang.ClassLoader hookClassLoader)
Sets the hook class loader.
|
void |
setImportMode(ImportMode importMode)
Sets the default import mode.
|
void |
setListener(ProgressTrackerListener listener)
Sets the progress tracker listener that receives messages during package installation.
|
void |
setNonRecursive(boolean nonRecursive)
Sets the flag to ignore sub packages.
|
void |
setPatchDirectory(java.io.File patchDirectory)
Sets the patch directory.
|
void |
setPatchKeepInRepo(boolean patchKeepInRepo)
Sets the flag if patches should be kept in the repository after there were copied to the disk.
|
void |
setPatchParentPath(java.lang.String patchParentPath)
Sets the parent path of the patch node.
|
void |
setPathMapping(PathMapping pathMapping)
Sets the path mapping
|
void |
setStrict(boolean strict)
Sets the 'strict' flag.
|
public ImportOptions()
@Deprecated public ImportOptions(ImportOptions base)
copy()
instead.base
- base optionspublic ImportOptions copy()
public boolean isStrict()
public void setStrict(boolean strict)
strict
- the flagpublic ProgressTrackerListener getListener()
public void setListener(ProgressTrackerListener listener)
listener
- The listenerpublic java.lang.String getPatchParentPath()
public void setPatchParentPath(java.lang.String patchParentPath)
patchParentPath
- the pathpublic java.io.File getPatchDirectory()
public void setPatchDirectory(java.io.File patchDirectory) throws java.io.IOException
getPatchParentPath()
will be
copied into this directory during extraction.patchDirectory
- The directoryjava.io.IOException
- if an i/o error occurrs during obtaining the canonical file of this directory.public boolean isPatchKeepInRepo()
public void setPatchKeepInRepo(boolean patchKeepInRepo)
patchKeepInRepo
- the flagpublic AccessControlHandling getAccessControlHandling()
public void setAccessControlHandling(AccessControlHandling acHandling)
acHandling
- the ACL handling.public boolean isNonRecursive()
SubPackageHandling
configuration has no effect, as sub packages
are not evaluated at all.true
if package installation should not install sub packages.public void setNonRecursive(boolean nonRecursive)
nonRecursive
- true
to set non recursiveisNonRecursive()
public java.util.regex.Pattern getCndPattern()
public void setCndPattern(java.lang.String cndPattern) throws java.util.regex.PatternSyntaxException
cndPattern
- the cnd patternjava.util.regex.PatternSyntaxException
- If the pattern is not validpublic boolean isDryRun()
public void setDryRun(boolean dryRun)
dryRun
- the dry run flag.public void setAutoSaveThreshold(int threshold)
AutoSave
threshold
- the threshold in number of nodes.public int getAutoSaveThreshold()
public ImportMode getImportMode()
public void setImportMode(ImportMode importMode)
importMode
- The import mode.public WorkspaceFilter getFilter()
public void setFilter(WorkspaceFilter filter)
filter
- the filterpublic java.lang.ClassLoader getHookClassLoader()
public void setHookClassLoader(java.lang.ClassLoader hookClassLoader)
hookClassLoader
- the class loaderpublic PathMapping getPathMapping()
null
if no path mapping is defined.public void setPathMapping(PathMapping pathMapping)
pathMapping
- The path mappinggetPathMapping()
public DependencyHandling getDependencyHandling()
public void setDependencyHandling(DependencyHandling dependencyHandling)
dependencyHandling
- the dependency handling.getDependencyHandling()
Copyright © 2010 - 2020 Adobe. All Rights Reserved