public class OTOperationImpl extends Object implements OTOperation
public static OTOperation createLocalOnlyOperation(OTEngine engine, String agentId, List<Mutation> mutationList, OTEntity entity, OpPair pair)
public static OTOperation createLocalOnlyOperation(OTEngine engine, String agentId, List<Mutation> mutationList, OTEntity entity, int revision, OpPair pair)
public static OTOperation createOperation(OTEngine engine, String agentId, List<Mutation> mutationList, int entityId, int revision, String revisionHash)
public static OTOperation createOperation(OTEngine engine, String agentId, List<Mutation> mutationList, int entityId, int revision, String revisionHash, OpPair transformedFrom, int lastRevisionTx)
public static OTOperation createLocalOnlyOperation(OTEngine engine, OTOperation operation)
public static OTOperation createLocalOnlyOperation(OTEngine engine, OTOperation operation, int lastRevisionTx)
public static OTOperation createOperation(OTOperation op)
public static OTOperation createOperation(OTOperation op, OpPair transformedFrom)
public List<Mutation> getMutations()
getMutations
in interface OTOperation
public int getEntityId()
getEntityId
in interface OTOperation
public int getRevision()
getRevision
in interface OTOperation
public String getAgentId()
getAgentId
in interface OTOperation
public boolean apply(OTEntity entity)
apply
in interface OTOperation
public boolean apply(OTEntity entity, boolean transiently)
apply
in interface OTOperation
public void removeFromCanonHistory()
removeFromCanonHistory
in interface OTOperation
public void markAsResolvedConflict()
markAsResolvedConflict
in interface OTOperation
public void unmarkAsResolvedConflict()
unmarkAsResolvedConflict
in interface OTOperation
public boolean isCanon()
isCanon
in interface OTOperation
public boolean shouldPropagate()
shouldPropagate
in interface OTOperation
public OTEngine getEngine()
getEngine
in interface OTOperation
public boolean isNoop()
isNoop
in interface OTOperation
public boolean isResolvedConflict()
isResolvedConflict
in interface OTOperation
public OTOperation getBasedOn(int revision)
getBasedOn
in interface OTOperation
public OpPair getTransformedFrom()
getTransformedFrom
in interface OTOperation
public void setOuterPath(OTOperation outerPath)
setOuterPath
in interface OTOperation
public OTOperation getOuterPath()
getOuterPath
in interface OTOperation
public boolean isValid()
isValid
in interface OTOperation
public void invalidate()
invalidate
in interface OTOperation
public int compareTo(OTOperation o)
compareTo
in interface Comparable<OTOperation>
public String getRevisionHash()
getRevisionHash
in interface OTOperation
public int getLastRevisionTx()
getLastRevisionTx
in interface OTOperation
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.