Class ImportBehavior
java.lang.Object
org.apache.jackrabbit.oak.spi.xml.ImportBehavior
Utility class defining specific, configurable import behavior. A given
implementation of the
ProtectedItemImporter may support this
as part of the overall import configuration.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAborts the import as soon as invalid values are detected throwing aConstraintViolationException.static final intSame asIGNOREbut in addition tries to circumvent the problem.static final intIf 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 final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StringnameFromValue(int importBehavior) static intvalueFromString(@NotNull String behaviorString)
-
Field Details
-
IGNORE
public static final int IGNOREIf 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:
-
BESTEFFORT
public static final int BESTEFFORTSame 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:
-
ABORT
public static final int ABORTAborts the import as soon as invalid values are detected throwing aConstraintViolationException.- See Also:
-
NAME_IGNORE
- See Also:
-
NAME_BESTEFFORT
- See Also:
-
NAME_ABORT
- See Also:
-
-
Method Details
-
valueFromString
-
nameFromValue
-