Class ImportBehavior
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.xml.ImportBehavior
-
public final class ImportBehavior extends java.lang.ObjectUtility class defining specific, configurable import behavior. A given implementation of theProtectedItemImportermay support this as part of the overall import configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static intABORTAborts the import as soon as invalid values are detected throwing aConstraintViolationException.static intBESTEFFORTSame asIGNOREbut in addition tries to circumvent the problem.static intIGNOREIf a value cannot be set due to constraints enforced by the API implementation, the failure is logged as warning and the value is ignored.static java.lang.StringNAME_ABORTstatic java.lang.StringNAME_BESTEFFORTstatic java.lang.StringNAME_IGNORE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull java.lang.StringnameFromValue(int importBehavior)static intvalueFromString(@NotNull java.lang.String behaviorString)
-
-
-
Field Detail
-
IGNORE
public static final int IGNORE
If a value cannot be set due to constraints enforced by the API implementation, the failure is logged as warning and the value is ignored.- See Also:
- Constant Field Values
-
BESTEFFORT
public static final int BESTEFFORT
Same asIGNOREbut in addition tries to circumvent the problem. This option should only be used with validated and trusted XML passed to theSessionandWorkspaceimport API.- See Also:
- Constant Field Values
-
ABORT
public static final int ABORT
Aborts the import as soon as invalid values are detected throwing aConstraintViolationException.- See Also:
- Constant Field Values
-
NAME_IGNORE
public static final java.lang.String NAME_IGNORE
- See Also:
- Constant Field Values
-
NAME_BESTEFFORT
public static final java.lang.String NAME_BESTEFFORT
- See Also:
- Constant Field Values
-
NAME_ABORT
public static final java.lang.String NAME_ABORT
- See Also:
- Constant Field Values
-
-