Enum SubPackageHandling.Option
- java.lang.Object
-
- java.lang.Enum<SubPackageHandling.Option>
-
- org.apache.jackrabbit.vault.packaging.SubPackageHandling.Option
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SubPackageHandling.Option>
- Enclosing class:
- SubPackageHandling
public static enum SubPackageHandling.Option extends java.lang.Enum<SubPackageHandling.Option>
The sub package option
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
adds the package usingJcrPackageManager.upload(java.io.File, boolean, boolean, java.lang.String)
EXTRACT
adds and extracts the package usingJcrPackage.extract(org.apache.jackrabbit.vault.fs.io.ImportOptions)
in case a newer version has not already been installedFORCE_EXTRACT
adds and extracts the package usingJcrPackage.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 usingJcrPackage.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 completelyINSTALL
adds and installs the package usingJcrPackage.install(org.apache.jackrabbit.vault.fs.io.ImportOptions)
in case a newer version has not already been installed
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
INSTALL
public static final SubPackageHandling.Option INSTALL
adds and installs the package usingJcrPackage.install(org.apache.jackrabbit.vault.fs.io.ImportOptions)
in case a newer version has not already been installed
-
EXTRACT
public static final SubPackageHandling.Option EXTRACT
adds and extracts the package usingJcrPackage.extract(org.apache.jackrabbit.vault.fs.io.ImportOptions)
in case a newer version has not already been installed
-
ADD
public static final SubPackageHandling.Option ADD
adds the package usingJcrPackageManager.upload(java.io.File, boolean, boolean, java.lang.String)
-
IGNORE
public static final SubPackageHandling.Option IGNORE
ignores the sub package completely
-
FORCE_INSTALL
public static final SubPackageHandling.Option FORCE_INSTALL
adds and installs the package usingJcrPackage.install(org.apache.jackrabbit.vault.fs.io.ImportOptions)
even in case a newer version has already been installed (allows downgrades)
-
FORCE_EXTRACT
public static final SubPackageHandling.Option FORCE_EXTRACT
adds and extracts the package usingJcrPackage.extract(org.apache.jackrabbit.vault.fs.io.ImportOptions)
even in case a newer version has already been installed (allows downgrades)
-
-
Method Detail
-
values
public static SubPackageHandling.Option[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SubPackageHandling.Option c : SubPackageHandling.Option.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubPackageHandling.Option valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-