|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.server.conflictDetection.ConflictBucket
public class ConflictBucket
Represents a bucket of conflicting operations sets. In this context my operations are operations authored/owned by the current user while their operation are incoming operations from another user.
| Constructor Summary | |
|---|---|
ConflictBucket(AbstractOperation myOperation,
AbstractOperation theirOperation)
Constructor. |
|
ConflictBucket(Set<AbstractOperation> myOperations,
Set<AbstractOperation> theirOperations)
Constructor. |
|
| Method Summary | |
|---|---|
ESConflict |
createAPI()
Creates the API interface for this class. |
Set<AbstractOperation> |
getAcceptedLocalOperations()
Returns the set of local operations that have been accepted. |
AbstractOperation |
getMyOperation()
|
Set<AbstractOperation> |
getMyOperations()
|
Set<AbstractOperation> |
getRejectedRemoteOperations()
Returns the set of remote operations that have been rejected. |
AbstractOperation |
getTheirOperation()
|
Set<AbstractOperation> |
getTheirOperations()
|
boolean |
isResolved()
Whether this conflict bucket is resolved. |
void |
resolveConflict(Set<AbstractOperation> acceptedLocalOperations,
Set<AbstractOperation> rejectedRemoteOperations)
Resolve the conflict by specifying the accepted local operations and the rejected remote operations. |
void |
setMyOperation(AbstractOperation myOperation)
Set one of my operations representing all my operations. |
void |
setTheirOperation(AbstractOperation theirOperation)
Set one of their operations representing all their operations. |
ESConflict |
toAPI()
Returns the API interface of this class. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConflictBucket(AbstractOperation myOperation,
AbstractOperation theirOperation)
myOperation - initial my operationtheirOperation - initial their operation
public ConflictBucket(Set<AbstractOperation> myOperations,
Set<AbstractOperation> theirOperations)
myOperations - initial set of my operationstheirOperations - initial set of their operations| Method Detail |
|---|
public Set<AbstractOperation> getMyOperations()
public Set<AbstractOperation> getTheirOperations()
public AbstractOperation getMyOperation()
public void setMyOperation(AbstractOperation myOperation)
myOperation - the operationpublic AbstractOperation getTheirOperation()
public void setTheirOperation(AbstractOperation theirOperation)
public ESConflict toAPI()
toAPI in interface APIDelegate<ESConflict>APIDelegate.toAPI()public ESConflict createAPI()
createAPI in interface APIDelegate<ESConflict>APIDelegate.createAPI()
public void resolveConflict(Set<AbstractOperation> acceptedLocalOperations,
Set<AbstractOperation> rejectedRemoteOperations)
acceptedLocalOperations - a set of local operations that have been acceptedrejectedRemoteOperations - a set of remote operations that have been rejectedpublic Set<AbstractOperation> getAcceptedLocalOperations()
public Set<AbstractOperation> getRejectedRemoteOperations()
public boolean isResolved()
true if this bucket is resolved, false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||