Java Reference
In-Depth Information
public class NotLoggedInException extends Exception implements Serializable
{
public NotLoggedInException() {
super();
}
public NotLoggedInException(String message) {
super(message);
}
}
Creating Your Data Service
In order to create your data service for your server, you need to define both a service
interface and the actual service. For your service interface you need to define the
interface extending the GWT RemoteService interface,GWT RemoteService
interface, as shown in Listing 7-7. Your service will consist of the following methods
that will be called from your client:
1. getProjects : Returns an Array of Strings for the Project picklist
getMilestones : Accepts a project name and returns an Array of
Strings for the Milestones picklist
2.
3.
addEntries : Accepts a Vector of TimeEntryData objects and returns
a String with the results of the datastore commit
getEntries : Returns a Vector of TimeEntryData objects containing
the current timecard entries for the current user
4.
Listing 7-7. Your data service extending the GWT RemoteService
package com.appirio.timeentry.client;
import java.util.Vector;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.appirio.timeentry.client.TimeEntryData;
@RemoteServiceRelativePath("data")
public interface DataService extends RemoteService {
 
Search WWH ::




Custom Search