Class MergeUtility.MergeOptions
java.lang.Object
org.apache.sling.provisioning.model.MergeUtility.MergeOptions
- Enclosing class:
- MergeUtility
Options for specifying some parts of the merge operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the remove run mode should be respected.booleanReturnstrueif the latest artifact should win on a merge.setHandleRemoveRunMode(boolean handleRemoveRunMode) Set totrueif the remove run mode should be respected.setLatestArtifactWins(boolean latestArtifactWins) Set totrueif the latest artifact should win on a merge.
-
Constructor Details
-
MergeOptions
public MergeOptions()
-
-
Method Details
-
isHandleRemoveRunMode
public boolean isHandleRemoveRunMode()Returnstrueif the remove run mode should be respected.- Returns:
trueorfalse
-
setHandleRemoveRunMode
Set totrueif the remove run mode should be respected.- Parameters:
handleRemoveRunMode- Whether the remove run mode should be respected.- Returns:
- This instance.
-
isLatestArtifactWins
public boolean isLatestArtifactWins()Returnstrueif the latest artifact should win on a merge.- Returns:
trueorfalseif the artifact with the highest version should win
-
setLatestArtifactWins
Set totrueif the latest artifact should win on a merge. Set tofalseif the artifact with the highest version should win- Parameters:
latestArtifactWins- Whether the latest artifact should win- Returns:
- This instance.
-