Class ImportBehavior

java.lang.Object
org.apache.jackrabbit.oak.spi.xml.ImportBehavior

public final class ImportBehavior extends Object
Utility class defining specific, configurable import behavior. A given implementation of the ProtectedItemImporter may support this as part of the overall import configuration.
  • Field Details

    • 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:
    • BESTEFFORT

      public static final int BESTEFFORT
      Same as IGNORE but in addition tries to circumvent the problem. This option should only be used with validated and trusted XML passed to the Session and Workspace import API.
      See Also:
    • ABORT

      public static final int ABORT
      Aborts the import as soon as invalid values are detected throwing a ConstraintViolationException.
      See Also:
    • NAME_IGNORE

      public static final String NAME_IGNORE
      See Also:
    • NAME_BESTEFFORT

      public static final String NAME_BESTEFFORT
      See Also:
    • NAME_ABORT

      public static final String NAME_ABORT
      See Also:
  • Method Details

    • valueFromString

      public static int valueFromString(@NotNull @NotNull String behaviorString)
    • nameFromValue

      @NotNull public static @NotNull String nameFromValue(int importBehavior)