Package com.google.walkaround.slob.server

Examples of com.google.walkaround.slob.server.MutateResult


    ServerMutateRequest mutateRequest = new ServerMutateRequestGsonImpl();
    mutateRequest.setSession(ObjectSessionHelper.protoFromObjectSession(session));
    mutateRequest.setVersion(version);
    mutateRequest.addAllPayload(deltas);

    MutateResult res;
    try {
      res = storeSelector.get(session.getStoreType()).getSlobStore().mutateObject(mutateRequest);
    } catch (SlobNotFoundException e) {
      throw new BadRequestException("Object not found or access denied", e);
    } catch (AccessDeniedException e) {
      throw new BadRequestException("Object not found or access denied", e);
    }

    resp.setContentType("application/json");
    ServletUtil.writeJsonResult(resp.getWriter(),
        ServletUtil.getSubmitDeltaResultJson(res.getResultingVersion()));
  }
View Full Code Here

TOP

Related Classes of com.google.walkaround.slob.server.MutateResult

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.