org.eclipse.emf.emfstore.internal.client.model.impl
Class OperationRecorderConfig

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.model.impl.OperationRecorderConfig

public class OperationRecorderConfig
extends Object

Encapsulates configuration options for the operation recorder.

Author:
emueller

Constructor Summary
OperationRecorderConfig()
           
 
Method Summary
 ESOperationModifier getOperationModificator()
          Returns the operation modificator.
 Boolean isCutOffIncomingCrossReferences()
          Whether to cut off incoming cross references upon deletion.
 Boolean isDenyAddCutElementsToModelElements()
          Whether cut elements are added as regular model elements at the end of a command.
 Boolean isEmitOperationsUponCommandCompletion()
          Whether recoreded operations are emitted instantly or at command completion.
 Boolean isForceCommands()
          Whether the usage of commands should be enforced.
 Boolean isRollbackAtCommandFailure()
          Whether a rollback should be performed in case a command fails.
 void setCutOffIncomingCrossReferences(boolean shouldCutOffIncomingCrossReferences)
          Whether to cut off incoming cross references upon deletion.
 void setDenyAddCutElementsToModelElements(Boolean shouldDenyAddCutElementsToModelElements)
          Whether cut elements are added as regular model elements at the end of a command.
 void setEmitOperationsUponCommandCompletion(Boolean shouldEmitOperationsUponCommandCompletion)
          Whether to emit the recorded instantly or at command completion.
 void setForceCommands(Boolean shouldForceCommands)
          Whether the usage of commands should be enforced.
 void setRollBackInCaseOfCommandFailure(Boolean shouldPerformRollback)
          Whether a rollback should be performed in case a command fails.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationRecorderConfig

public OperationRecorderConfig()
Method Detail

isCutOffIncomingCrossReferences

public Boolean isCutOffIncomingCrossReferences()
Whether to cut off incoming cross references upon deletion.

Returns:
true, if incoming cross references are cut off, false otherwise

isDenyAddCutElementsToModelElements

public Boolean isDenyAddCutElementsToModelElements()
Whether cut elements are added as regular model elements at the end of a command.

Returns:
false, if cut elements should get added as regular model elements to the project at the end of command, true otherwise

isForceCommands

public Boolean isForceCommands()
Whether the usage of commands should be enforced.

Returns:
true, if the usage of commands is mandatory, false otherwise

isRollbackAtCommandFailure

public Boolean isRollbackAtCommandFailure()
Whether a rollback should be performed in case a command fails.

Returns:
true, if a rollback should be performed, false otherwise

isEmitOperationsUponCommandCompletion

public Boolean isEmitOperationsUponCommandCompletion()
Whether recoreded operations are emitted instantly or at command completion.

Returns:
true, if operations are emitted when a command completes, false otherwise

setCutOffIncomingCrossReferences

public void setCutOffIncomingCrossReferences(boolean shouldCutOffIncomingCrossReferences)
Whether to cut off incoming cross references upon deletion.

Parameters:
shouldCutOffIncomingCrossReferences - true, if incoming cross references should be cut off, false otherwise

setDenyAddCutElementsToModelElements

public void setDenyAddCutElementsToModelElements(Boolean shouldDenyAddCutElementsToModelElements)
Whether cut elements are added as regular model elements at the end of a command.

Parameters:
shouldDenyAddCutElementsToModelElements - true, if cut elements should get added as regular model elements at the end of a command, false otherwise

setForceCommands

public void setForceCommands(Boolean shouldForceCommands)
Whether the usage of commands should be enforced.

Parameters:
shouldForceCommands - true, if the usage of commands should be mandatory, false otherwise

setRollBackInCaseOfCommandFailure

public void setRollBackInCaseOfCommandFailure(Boolean shouldPerformRollback)
Whether a rollback should be performed in case a command fails.

Parameters:
shouldPerformRollback - true, if a rollback should be performed false otherwise

setEmitOperationsUponCommandCompletion

public void setEmitOperationsUponCommandCompletion(Boolean shouldEmitOperationsUponCommandCompletion)
Whether to emit the recorded instantly or at command completion.

Parameters:
shouldEmitOperationsUponCommandCompletion - true, if operations should only be emitted when a command completes, false otherwise

getOperationModificator

public ESOperationModifier getOperationModificator()
Returns the operation modificator.

Returns:
the operation modificator in use


Copyright © 2015. All Rights Reserved.