Package com.google.walkaround.wave.server

Examples of com.google.walkaround.wave.server.ObjectSession


    vars.setUserEmail(participantId.getAddress());
    vars.setHaveOauthToken(userContext.hasOAuthCredentials());
    vars.setConvSnapshot(wave.getConvSnapshotWithDiffs());
    vars.setConvConnectResponse(
        sessionHelper.createConnectResponse(
            new ObjectSession(wave.getConvObjectId(), clientId, convStore.getRootEntityKind()),
            wave.getConvConnectResult()));
    if (wave.getUdw() != null) {
      UdwLoadDataGsonImpl udwLoadData = new UdwLoadDataGsonImpl();
      udwLoadData.setConnectResponse(
          sessionHelper.createConnectResponse(
              new ObjectSession(wave.getUdw().getObjectId(), clientId,
                  udwStore.getRootEntityKind()),
              wave.getUdw().getConnectResult()));
      udwLoadData.setSnapshot(wave.getUdw().getSnapshot());
      vars.setUdw(udwLoadData);
    }
View Full Code Here


      mutateRequest = GsonProto.fromGson(new ServerMutateRequestGsonImpl(),
          requestString);
    } catch (MessageException e) {
      throw new BadRequestException("Failed to parse request: " + requestString, e);
    }
    ObjectSession session = ObjectSessionHelper.objectSessionFromProto(mutateRequest.getSession());
    ServerMutateResponse result =
        storeSelector.get(session.getStoreType()).getLocalMutationProcessor()
        .mutateObject(mutateRequest);
    log.info("Success @" + result.getResultingVersion());

    resp.setStatus(200);
    resp.setContentType("application/json");
View Full Code Here

TOP

Related Classes of com.google.walkaround.wave.server.ObjectSession

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.