Class ReviewStatemachine<REVIEW extends Review>
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.fsm.FiniteStateMachine<ReviewStatus,ReviewStatemachine.ReviewEvent,REVIEW>
org.eclipse.emf.cdo.lm.reviews.impl.ReviewStatemachine<REVIEW>
- All Implemented Interfaces:
org.eclipse.net4j.util.event.INotifier
,org.eclipse.net4j.util.event.INotifier.INotifier2
,org.eclipse.net4j.util.lifecycle.IDeactivateable
,org.eclipse.net4j.util.lifecycle.ILifecycle
,org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
- Direct Known Subclasses:
ReviewStatemachine.Client
,ReviewStatemachine.Server
public abstract class ReviewStatemachine<REVIEW extends Review>
extends org.eclipse.net4j.util.fsm.FiniteStateMachine<ReviewStatus,ReviewStatemachine.ReviewEvent,REVIEW>
- Author:
- Eike Stepper
- No Extend
- This class is not intended to be subclassed by clients.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ReviewStatemachine.Client<REVIEW extends Review>
static final class
static final class
static enum
static class
ReviewStatemachine.Server<REVIEW extends Review>
Nested classes/interfaces inherited from class org.eclipse.net4j.util.fsm.FiniteStateMachine
org.eclipse.net4j.util.fsm.FiniteStateMachine.ChangeStateTransition, org.eclipse.net4j.util.fsm.FiniteStateMachine.FailTransition, org.eclipse.net4j.util.fsm.FiniteStateMachine.IgnoreTransition, org.eclipse.net4j.util.fsm.FiniteStateMachine.StateChangedEvent
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.fsm.FiniteStateMachine
FAIL, IGNORE
Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL
-
Method Summary
Modifier and TypeMethodDescriptionprotected final ReviewStatus
protected abstract void
handleAbandon
(REVIEW review) protected abstract void
handleCommitInSource
(REVIEW review) protected abstract void
handleCommitInTarget
(REVIEW review) protected abstract void
handleDelete
(REVIEW review) protected abstract void
handleMergeFromSource
(REVIEW review, ReviewStatemachine.MergeFromSourceResult result) protected abstract void
handleRebaseToTarget
(REVIEW review, ReviewStatemachine.RebaseToTargetResult result) protected abstract void
handleRestore
(REVIEW review) protected abstract ReviewStatus
handleRestoreFinish
(REVIEW review) protected abstract void
handleSubmit
(REVIEW review, FixedBaseline submitResult) static <REVIEW extends Review>
CDOCommitInfoprotected final void
setCommitComment
(CDOObject object, String comment) protected final void
setState
(REVIEW review, ReviewStatus status) Methods inherited from class org.eclipse.net4j.util.fsm.FiniteStateMachine
changeState, createFailTransition, createIgnoreTransition, dump, formatFailMessage, formatIgnoreMessage, formatProcessMessage, getEvents, getStates, getTransition, init, init, initAll, initAll, initEvents, initEvents, initStates, initStates, process
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Field Details
-
PROP_SUBMITTING
- See Also:
-
-
Method Details
-
getState
- Specified by:
getState
in classorg.eclipse.net4j.util.fsm.FiniteStateMachine<ReviewStatus,
ReviewStatemachine.ReviewEvent, REVIEW extends Review>
-
setState
- Specified by:
setState
in classorg.eclipse.net4j.util.fsm.FiniteStateMachine<ReviewStatus,
ReviewStatemachine.ReviewEvent, REVIEW extends Review>
-
handleCommitInSource
-
handleCommitInTarget
-
handleMergeFromSource
protected abstract void handleMergeFromSource(REVIEW review, ReviewStatemachine.MergeFromSourceResult result) -
handleRebaseToTarget
protected abstract void handleRebaseToTarget(REVIEW review, ReviewStatemachine.RebaseToTargetResult result) -
handleSubmit
-
handleAbandon
-
handleRestore
-
handleRestoreFinish
-
handleDelete
-
setCommitComment
-
modify
public static <REVIEW extends Review> CDOCommitInfo modify(REVIEW review, Consumer<REVIEW> modifier)
-