public static enum SubPackageHandling.Option extends java.lang.Enum<SubPackageHandling.Option>
Enum Constant and Description |
---|
ADD
adds the package using
JcrPackageManager.upload(java.io.File, boolean, boolean, java.lang.String) |
EXTRACT
adds and extracts the package using
JcrPackage.extract(org.apache.jackrabbit.vault.fs.io.ImportOptions) in case a newer version has not already been installed |
FORCE_EXTRACT
adds and extracts the package using
JcrPackage.extract(org.apache.jackrabbit.vault.fs.io.ImportOptions) even in case a newer version has already been installed
(allows downgrades) |
FORCE_INSTALL
adds and installs the package using
JcrPackage.install(org.apache.jackrabbit.vault.fs.io.ImportOptions) even in case a newer version has already been installed
(allows downgrades) |
IGNORE
ignores the sub package completely
|
INSTALL
adds and installs the package using
JcrPackage.install(org.apache.jackrabbit.vault.fs.io.ImportOptions) in case a newer version has not already been installed |
Modifier and Type | Method and Description |
---|---|
static SubPackageHandling.Option |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SubPackageHandling.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SubPackageHandling.Option INSTALL
JcrPackage.install(org.apache.jackrabbit.vault.fs.io.ImportOptions)
in case a newer version has not already been installedpublic static final SubPackageHandling.Option EXTRACT
JcrPackage.extract(org.apache.jackrabbit.vault.fs.io.ImportOptions)
in case a newer version has not already been installedpublic static final SubPackageHandling.Option ADD
JcrPackageManager.upload(java.io.File, boolean, boolean, java.lang.String)
public static final SubPackageHandling.Option IGNORE
public static final SubPackageHandling.Option FORCE_INSTALL
JcrPackage.install(org.apache.jackrabbit.vault.fs.io.ImportOptions)
even in case a newer version has already been installed
(allows downgrades)public static final SubPackageHandling.Option FORCE_EXTRACT
JcrPackage.extract(org.apache.jackrabbit.vault.fs.io.ImportOptions)
even in case a newer version has already been installed
(allows downgrades)public static SubPackageHandling.Option[] values()
for (SubPackageHandling.Option c : SubPackageHandling.Option.values()) System.out.println(c);
public static SubPackageHandling.Option valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2010 - 2020 Adobe. All Rights Reserved