org.wildfly.extras.creaper.commands.patching
Class RollbackPatch.Builder

java.lang.Object
  extended by org.wildfly.extras.creaper.commands.patching.RollbackPatch.Builder
Enclosing class:
RollbackPatch

public static final class RollbackPatch.Builder
extends Object


Constructor Summary
RollbackPatch.Builder(String patchId)
           
 
Method Summary
 RollbackPatch build()
           
 RollbackPatch.Builder overrideAll(boolean overrideAll)
          Sets whether all conflicts should be automatically resolved by overriding.
 RollbackPatch.Builder overrideModules(boolean overrideModules)
          Sets whether modules shall be overridden when there is conflict in the module.
 RollbackPatch.Builder overridePaths(String... pathsToOverride)
          Adds specified paths to the list of paths which shall be overridden.
 RollbackPatch.Builder preservePaths(String... pathsToPreserve)
          Adds paths to list of paths which should be preserved.
 RollbackPatch.Builder resetConfiguration(boolean resetConfiguration)
          Sets whether the rollback operation should reset the installation configurations to their state before the patch was applied.
 RollbackPatch.Builder rollbackTo(boolean rollbackTo)
          If the patch to rollback is a one-off patch, it signifies that the rollback operation will also rollback all the other one-off patches that have been applied on top of the patch to rollback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RollbackPatch.Builder

public RollbackPatch.Builder(String patchId)
Method Detail

resetConfiguration

public RollbackPatch.Builder resetConfiguration(boolean resetConfiguration)
Sets whether the rollback operation should reset the installation configurations to their state before the patch was applied.


rollbackTo

public RollbackPatch.Builder rollbackTo(boolean rollbackTo)
If the patch to rollback is a one-off patch, it signifies that the rollback operation will also rollback all the other one-off patches that have been applied on top of the patch to rollback.


overrideAll

public RollbackPatch.Builder overrideAll(boolean overrideAll)
Sets whether all conflicts should be automatically resolved by overriding.


overrideModules

public RollbackPatch.Builder overrideModules(boolean overrideModules)
Sets whether modules shall be overridden when there is conflict in the module.


overridePaths

public RollbackPatch.Builder overridePaths(String... pathsToOverride)
Adds specified paths to the list of paths which shall be overridden. For more details, see the --override option of the patch apply CLI command.


preservePaths

public RollbackPatch.Builder preservePaths(String... pathsToPreserve)
Adds paths to list of paths which should be preserved. For more details, see the --preserve option of the patch apply CLI command.


build

public RollbackPatch build()


Copyright © 2016. All rights reserved.