Enum SubPackageHandling.Option
java.lang.Object
java.lang.Enum<SubPackageHandling.Option>
org.apache.jackrabbit.vault.packaging.SubPackageHandling.Option
- All Implemented Interfaces:
Serializable,Comparable<SubPackageHandling.Option>
- Enclosing class:
- SubPackageHandling
The sub package option
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionadds the package usingJcrPackageManager.upload(java.io.File, boolean, boolean, java.lang.String)adds and extracts the package usingJcrPackage.extract(org.apache.jackrabbit.vault.fs.io.ImportOptions)in case a newer version has not already been installedadds 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)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)ignores the sub package completelyadds 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
Modifier and TypeMethodDescriptionstatic SubPackageHandling.OptionReturns 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 Details
-
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
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
adds the package usingJcrPackageManager.upload(java.io.File, boolean, boolean, java.lang.String) -
IGNORE
ignores the sub package completely -
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
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 Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-