Class UpdateUtils
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.UpdateUtils
-
public class UpdateUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description UpdateUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
applyChanges(@NotNull Document doc, @NotNull UpdateOp update)
Apply the changes to the in-memory document.static void
assertUnconditional(@NotNull UpdateOp up)
Ensures that the givenUpdateOp
is unconditionalstatic boolean
checkConditions(@NotNull Document doc, @NotNull Map<UpdateOp.Key,UpdateOp.Condition> conditions)
-
-
-
Method Detail
-
applyChanges
public static void applyChanges(@NotNull @NotNull Document doc, @NotNull @NotNull UpdateOp update)
Apply the changes to the in-memory document.- Parameters:
doc
- the target document.update
- the changes to apply.
-
checkConditions
public static boolean checkConditions(@NotNull @NotNull Document doc, @NotNull @NotNull Map<UpdateOp.Key,UpdateOp.Condition> conditions)
-
assertUnconditional
public static void assertUnconditional(@NotNull @NotNull UpdateOp up)
Ensures that the givenUpdateOp
is unconditional- Parameters:
up
- the update operation- Throws:
IllegalArgumentException
- when the operations is conditional
-
-