Examples of RemovedAuthorException


Examples of org.waveprotocol.wave.model.operation.RemovedAuthorException

      if (serverOp instanceof CoreRemoveParticipant) {
        CoreRemoveParticipant serverRemoveOp = (CoreRemoveParticipant) serverOp;
        if (serverRemoveOp.getParticipantId().equals(clientOpAuthor)) {
          // clientOpAuthor has issued a client operation that is concurrent with a server
          // operation to remove clientOpAuthor, hence the client operation is doomed
          throw new RemovedAuthorException(clientOpAuthor.getAddress());
        }
        if (clientOp instanceof CoreRemoveParticipant) {
          CoreRemoveParticipant clientRemoveOp = (CoreRemoveParticipant) clientOp;
          if (clientRemoveOp.getParticipantId().equals(serverRemoveOp.getParticipantId())) {
            clientOp = CoreNoOp.INSTANCE;
View Full Code Here

Examples of org.waveprotocol.wave.model.operation.RemovedAuthorException

   */
  private static void checkParticipantRemoval(RemoveParticipant removeParticipant,
      WaveletOperation operation) throws RemovedAuthorException {
    ParticipantId participantId = removeParticipant.getParticipantId();
    if (participantId.equals(operation.getContext().getCreator())) {
      throw new RemovedAuthorException(participantId.getAddress());
    }
  }
View Full Code Here

Examples of org.waveprotocol.wave.model.operation.RemovedAuthorException

      if (serverOp instanceof CoreRemoveParticipant) {
        CoreRemoveParticipant serverRemoveOp = (CoreRemoveParticipant) serverOp;
        if (serverRemoveOp.getParticipantId().equals(clientOpAuthor)) {
          // clientOpAuthor has issued a client operation that is concurrent with a server
          // operation to remove clientOpAuthor, hence the client operation is doomed
          throw new RemovedAuthorException(clientOpAuthor.getAddress());
        }
        if (clientOp instanceof CoreRemoveParticipant) {
          CoreRemoveParticipant clientRemoveOp = (CoreRemoveParticipant) clientOp;
          if (clientRemoveOp.getParticipantId().equals(serverRemoveOp.getParticipantId())) {
            clientOp = CoreNoOp.INSTANCE;
View Full Code Here

Examples of org.waveprotocol.wave.model.operation.RemovedAuthorException

   */
  private static void checkParticipantRemoval(RemoveParticipant removeParticipant,
      WaveletOperation operation) throws RemovedAuthorException {
    ParticipantId participantId = removeParticipant.getParticipantId();
    if (participantId.equals(operation.getContext().getCreator())) {
      throw new RemovedAuthorException(participantId.getAddress());
    }
  }
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.