package com.nimbits.client.Service;
import java.util.ArrayList;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.nimbits.client.exceptions.NotLoggedInException;
import com.nimbits.client.objects.PointCatagory;
import com.nimbits.client.objects.DataPoint;
@RemoteServiceRelativePath("point")
public interface PointService extends RemoteService {
public DataPoint addPoint(String pointName, PointCatagory catagory) throws NotLoggedInException, Exception;
public ArrayList<PointCatagory> getCatagories() throws NotLoggedInException;
public PointCatagory addCatagory(String catagoryName) throws NotLoggedInException ;
public void deleteCatagory(PointCatagory c);
public DataPoint getPointByName(String name) throws NotLoggedInException;
public DataPoint getPointByID(long id) ;
public ArrayList<DataPoint> getPoints() throws NotLoggedInException;
public ArrayList<DataPoint> getPointsByCatagory(PointCatagory catagory) throws NotLoggedInException;
public void updatePoint(DataPoint point) throws NotLoggedInException;
public void deletePoint(DataPoint p);
public int getPointCount() throws NotLoggedInException;
public void movePoint(String pointName, String newCatagoryName) throws NotLoggedInException;
}
|