Package org.waveprotocol.wave.model.operation.core

Examples of org.waveprotocol.wave.model.operation.core.CoreAddParticipant


  static AggregateOperation removeParticipant(String participantId) {
    return new AggregateOperation(new CoreRemoveParticipant(new ParticipantId(participantId)));
  }

  static AggregateOperation addParticipant(String participantId) {
    return new AggregateOperation(new CoreAddParticipant(new ParticipantId(participantId)));
  }
View Full Code Here


    if (op instanceof RemoveParticipant) {
      ParticipantId participantId = ((RemoveParticipant) op).getParticipantId();
      return new CoreRemoveParticipant(participantId);
    } else if (op instanceof AddParticipant) {
      ParticipantId participantId = ((AddParticipant) op).getParticipantId();
      return new CoreAddParticipant(participantId);
    } else if (op instanceof WaveletBlipOperation) {
      WaveletBlipOperation waveletBlipOp = (WaveletBlipOperation) op;
      BlipOperation blipOp = waveletBlipOp.getBlipOp();
      if (blipOp instanceof BlipContentOperation) {
        DocOp contentOp = ((BlipContentOperation) blipOp).getContentOp();
View Full Code Here

   * @return a list of operations
   */
  public static List<CoreWaveletOperation> deserialize(WaveletSnapshot snapshot) {
    List<CoreWaveletOperation> ops = Lists.newArrayList();
    for (String participant : snapshot.getParticipantIdList()) {
      CoreAddParticipant addOp = new CoreAddParticipant(new ParticipantId(participant));
      ops.add(addOp);
    }
    for (DocumentSnapshot document : snapshot.getDocumentList()) {
      CoreWaveletDocumentOperation docOp = new CoreWaveletDocumentOperation(
          document.getDocumentId(), deserialize(document.getDocumentOperation()));
View Full Code Here

    for (DocumentOperations documentOps : docOps) {
      operations.add(new CoreWaveletDocumentOperation(documentOps.id,
          documentOps.operations.composeAll()));
    }
    for (ParticipantId participant : participantsToAdd) {
      operations.add(new CoreAddParticipant(participant));
    }
    return operations;
  }
View Full Code Here

    for (DocumentOperations documentOps : docOps) {
      operations.add(new CoreWaveletDocumentOperation(documentOps.id,
          documentOps.operations.composeAll()));
    }
    for (ParticipantId participant : participantsToAdd) {
      operations.add(new CoreAddParticipant(participant));
    }
    return operations;
  }
View Full Code Here

    if (op instanceof RemoveParticipant) {
      ParticipantId participantId = ((RemoveParticipant) op).getParticipantId();
      return new CoreRemoveParticipant(participantId);
    } else if (op instanceof AddParticipant) {
      ParticipantId participantId = ((AddParticipant) op).getParticipantId();
      return new CoreAddParticipant(participantId);
    } else if (op instanceof WaveletBlipOperation) {
      WaveletBlipOperation waveletBlipOp = (WaveletBlipOperation) op;
      BlipOperation blipOp = waveletBlipOp.getBlipOp();
      if (blipOp instanceof BlipContentOperation) {
        DocOp contentOp = ((BlipContentOperation) blipOp).getContentOp();
View Full Code Here

   * @return a list of operations
   */
  public static List<CoreWaveletOperation> deserialize(WaveletSnapshot snapshot) {
    List<CoreWaveletOperation> ops = Lists.newArrayList();
    for (String participant : snapshot.getParticipantIdList()) {
      CoreAddParticipant addOp = new CoreAddParticipant(new ParticipantId(participant));
      ops.add(addOp);
    }
    for (DocumentSnapshot document : snapshot.getDocumentList()) {
      CoreWaveletDocumentOperation docOp = new CoreWaveletDocumentOperation(
          document.getDocumentId(), deserialize(document.getDocumentOperation()));
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.operation.core.CoreAddParticipant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.