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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the remove run mode should be respected.boolean
Returnstrue
if the latest artifact should win on a merge.setHandleRemoveRunMode
(boolean handleRemoveRunMode) Set totrue
if the remove run mode should be respected.setLatestArtifactWins
(boolean latestArtifactWins) Set totrue
if the latest artifact should win on a merge.
-
Constructor Details
-
MergeOptions
public MergeOptions()
-
-
Method Details
-
isHandleRemoveRunMode
public boolean isHandleRemoveRunMode()Returnstrue
if the remove run mode should be respected.- Returns:
true
orfalse
-
setHandleRemoveRunMode
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
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.
-