Examples of CoreRemoveParticipant


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

  static AggregateOperation compose(AggregateOperation ...ops) {
    return AggregateOperation.compose(Arrays.asList(ops));
  }

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

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

   *         {@link WaveletOperation}
   */
  public static CoreWaveletOperation toCoreWaveletOperation(WaveletOperation op) {
    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;
View Full Code Here

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

   *         aggregate operation.
   */
  List<CoreWaveletOperation> toCoreWaveletOperations() {
    List<CoreWaveletOperation> operations = new ArrayList<CoreWaveletOperation>();
    for (ParticipantId participant : participantsToRemove) {
      operations.add(new CoreRemoveParticipant(participant));
    }
    for (DocumentOperations documentOps : docOps) {
      operations.add(new CoreWaveletDocumentOperation(documentOps.id,
          documentOps.operations.composeAll()));
    }
View Full Code Here

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

   *         aggregate operation.
   */
  List<CoreWaveletOperation> toCoreWaveletOperations() {
    List<CoreWaveletOperation> operations = new ArrayList<CoreWaveletOperation>();
    for (ParticipantId participant : participantsToRemove) {
      operations.add(new CoreRemoveParticipant(participant));
    }
    for (DocumentOperations documentOps : docOps) {
      operations.add(new CoreWaveletDocumentOperation(documentOps.id,
          documentOps.operations.composeAll()));
    }
View Full Code Here

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

   *         {@link WaveletOperation}
   */
  public static CoreWaveletOperation toCoreWaveletOperation(WaveletOperation op) {
    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;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.