org.vectomatic.common.rpc
Interface IRepresentationService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService

public interface IRepresentationService
extends com.google.gwt.user.client.rpc.RemoteService

Service interface to open and save drawing representations

Author:
Lukas Laag

Method Summary
 Representation openDrawing(String jsessionid, String drawingid)
          Reads the representation of a drawing
 void saveDrawing(String jsessionid, String drawingid, Representation representation)
          Saves the representation of a drawing
 

Method Detail

openDrawing

Representation openDrawing(String jsessionid,
                           String drawingid)
                           throws DrawingServiceException,
                                  AccountServiceException
Reads the representation of a drawing

Parameters:
jsessionid - The session id
drawingid - The drawing id
Returns:
The drawing representation
Throws:
AccountServiceException - If a session related error occurs
InternalServerException - If the server code fails
DrawingServiceException - If the drawing no longer exists

saveDrawing

void saveDrawing(String jsessionid,
                 String drawingid,
                 Representation representation)
                 throws DrawingServiceException,
                        AccountServiceException
Saves the representation of a drawing

Parameters:
jsessionid - The session id
drawingid - The drawing id
representation - The drawing representation
Throws:
AccountServiceException - If a session related error occurs
InternalServerException - If the server code fails
DrawingServiceException - If the drawing no longer exists


Copyright © 2010. All Rights Reserved.