From: Andreas W. <an...@us...> - 2006-02-20 15:18:54
|
Update of /cvsroot/magicmap//magicmapclient/src/net/sf/magicmap/client/delegate/interfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31175/src/net/sf/magicmap/client/delegate/interfaces Modified Files: MapFacadeInterface.java Log Message: geoposition-functions added Index: MapFacadeInterface.java =================================================================== RCS file: /cvsroot/magicmap//magicmapclient/src/net/sf/magicmap/client/delegate/interfaces/MapFacadeInterface.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MapFacadeInterface.java 12 Feb 2005 16:00:28 -0000 1.2 --- MapFacadeInterface.java 20 Feb 2006 15:18:29 -0000 1.3 *************** *** 7,10 **** --- 7,11 ---- import java.rmi.RemoteException; + import net.sf.magicmap.server.dto.GeoPointDTO; import net.sf.magicmap.server.dto.MapDTO; import net.sf.magicmap.server.exception.MapException; *************** *** 27,38 **** * gültiger Session id) Clients angelegt werden * ! * @param sessionId session id des angemeldeten Clients ! * @param name Name der zu erstellenenden Karte (eindeutig) ! * @param URL URL für das Bild der Karte ! * @param width Breite des Rasters der Karte ! * @param height Höhe des Rasters der Karte * @return Object, dass die neu erstellte Karte repräsentiert ! * @throws SessionException Falls die Session des Clients ungültih ist ! * @throws MapException Falls eine Karte mit diesem Namen schon existiert */ public abstract MapDTO createNewMap(long sessionId, String name, String URL, int width, int height) --- 28,46 ---- * gültiger Session id) Clients angelegt werden * ! * @param sessionId ! * session id des angemeldeten Clients ! * @param name ! * Name der zu erstellenenden Karte (eindeutig) ! * @param URL ! * URL für das Bild der Karte ! * @param width ! * Breite des Rasters der Karte ! * @param height ! * Höhe des Rasters der Karte * @return Object, dass die neu erstellte Karte repräsentiert ! * @throws SessionException ! * Falls die Session des Clients ungültih ist ! * @throws MapException ! * Falls eine Karte mit diesem Namen schon existiert */ public abstract MapDTO createNewMap(long sessionId, String name, String URL, int width, int height) *************** *** 42,51 **** * Holt eine Karte anhand ihres Namens * ! * @param name Name der Karte * @return Object, dass die Karte repräsentiert ! * @throws MapException Falls unter dem angegebenen Namen keine Karte ! * existiert */ public abstract MapDTO getMap(String name) throws MapException, RemoteException; } \ No newline at end of file --- 50,98 ---- * Holt eine Karte anhand ihres Namens * ! * @param name ! * Name der Karte * @return Object, dass die Karte repräsentiert ! * @throws MapException ! * Falls unter dem angegebenen Namen keine Karte existiert */ public abstract MapDTO getMap(String name) throws MapException, RemoteException; + /** + * @param sessionId + * session id des angemeldeten Clients + * @param mapName + * name der zugehörigen Karte + * @return alle GeoPositionen zu der angegeben Karte + * @throws MapException + * @throws SessionException + */ + public abstract GeoPointDTO[] getGeoPointsForMap(long sessionId, String mapName) throws MapException, + SessionException, RemoteException; + + /** + * @param sessionId + * session id des angemeldeten Clients + * @param mapName + * name der zugehörigen Karte + * @param xPos + * @param yPos + * @param longitude + * @param latitude + * @param altitude + * @return + * @throws SessionException + * @throws MapException + */ + public abstract MapDTO createGeoPoint(long sessionId, String mapName, int xPos, int yPos, int longitude, + int latitude, int altitude) throws SessionException, MapException, RemoteException; + + /** + * @param sessionId + * session id des angemeldeten Clients + * @param id + * @throws MapException + * @throws SessionException + */ + public abstract void deleteGeoPoint(long sessionId, long id) throws MapException, SessionException, RemoteException; + } \ No newline at end of file |