Package org.apache.jackrabbit.core.xml
Enum AccessControlImporter.ImportBehavior
- java.lang.Object
-
- java.lang.Enum<AccessControlImporter.ImportBehavior>
-
- org.apache.jackrabbit.core.xml.AccessControlImporter.ImportBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<AccessControlImporter.ImportBehavior>
- Enclosing class:
- AccessControlImporter
public static enum AccessControlImporter.ImportBehavior extends Enum<AccessControlImporter.ImportBehavior>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEST_EFFORT
Tries to minimize errors by adapting the content and bypassing validation checks (e.g.DEFAULT
Default behavior that does not try to prevent errors or incompatibilities between the content and the ACL manager (eg.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccessControlImporter.ImportBehavior
fromString(String str)
String
getString()
static AccessControlImporter.ImportBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccessControlImporter.ImportBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final AccessControlImporter.ImportBehavior DEFAULT
Default behavior that does not try to prevent errors or incompatibilities between the content and the ACL manager (eg. does not try to fix missing principals)
-
BEST_EFFORT
public static final AccessControlImporter.ImportBehavior BEST_EFFORT
Tries to minimize errors by adapting the content and bypassing validation checks (e.g. allows adding ACEs with missing principals, even if ACL manager would not allow this).
-
-
Method Detail
-
values
public static AccessControlImporter.ImportBehavior[] 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 (AccessControlImporter.ImportBehavior c : AccessControlImporter.ImportBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessControlImporter.ImportBehavior valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
public static AccessControlImporter.ImportBehavior fromString(String str)
-
getString
public String getString()
-
-