Class MergeUtility.MergeOptions
- java.lang.Object
-
- org.apache.sling.provisioning.model.MergeUtility.MergeOptions
-
- Enclosing class:
- MergeUtility
public static class MergeUtility.MergeOptions extends java.lang.Object
Options for specifying some parts of the merge operation.
-
-
Constructor Summary
Constructors Constructor Description MergeOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isHandleRemoveRunMode()
Returnstrue
if the remove run mode should be respected.boolean
isLatestArtifactWins()
Returnstrue
if the latest artifact should win on a merge.MergeUtility.MergeOptions
setHandleRemoveRunMode(boolean handleRemoveRunMode)
Set totrue
if the remove run mode should be respected.MergeUtility.MergeOptions
setLatestArtifactWins(boolean latestArtifactWins)
Set totrue
if the latest artifact should win on a merge.
-
-
-
Method Detail
-
isHandleRemoveRunMode
public boolean isHandleRemoveRunMode()
Returnstrue
if the remove run mode should be respected.- Returns:
true
orfalse
-
setHandleRemoveRunMode
public MergeUtility.MergeOptions setHandleRemoveRunMode(boolean handleRemoveRunMode)
Set totrue
if the remove run mode should be respected.- Parameters:
handleRemoveRunMode
- Whether the remove run mode should be respected.- Returns:
- This instance.
-
isLatestArtifactWins
public boolean isLatestArtifactWins()
Returnstrue
if the latest artifact should win on a merge.- Returns:
true
orfalse
if the artifact with the highest version should win
-
setLatestArtifactWins
public MergeUtility.MergeOptions setLatestArtifactWins(boolean latestArtifactWins)
Set totrue
if the latest artifact should win on a merge. Set tofalse
if the artifact with the highest version should win- Parameters:
latestArtifactWins
- Whether the latest artifact should win- Returns:
- This instance.
-
-