Interface ReportService
- 
- All Superinterfaces:
 com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("report") public interface ReportService extends com.google.gwt.user.client.rpc.RemoteServiceThe client side stub for the Report Service. This service gives all needed methods to handle reports. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classReportService.Instance 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangeStatus(long id, boolean enabled)Changes a report enabled/disabled statusGUIReportcreate(GUIReport report)Creates a new reportvoiddelete(long id)Deletes a given reportvoidexecute(long id, GUIAttribute[] parameters)Processes a reportGUIReportgetReport(long id, boolean withLog)Loads a given report from the databaseGUIAttribute[]getReportParameters(long id)Loads the attributes defined in the given reportGUIReport[]getReports()Loads all the reportsGUIReportsave(GUIReport report)Updates a reportvoidstoreUploadedDesign(long id)Store the uploaded design file in the given report 
 - 
 
- 
- 
Method Detail
- 
delete
void delete(long id) throws ServerExceptionDeletes a given report- Parameters:
 id- identifier of the report to delete- Throws:
 ServerException- an error happened in the server application
 
- 
save
GUIReport save(GUIReport report) throws ServerException
Updates a report- Parameters:
 report- the report to save- Returns:
 - the saved report
 - Throws:
 ServerException- an error happened in the server application
 
- 
storeUploadedDesign
void storeUploadedDesign(long id) throws ServerExceptionStore the uploaded design file in the given report- Parameters:
 id- identifier of the report- Throws:
 ServerException- an error happened in the server application
 
- 
create
GUIReport create(GUIReport report) throws ServerException
Creates a new report- Parameters:
 report- the report to create- Returns:
 - the just created report
 - Throws:
 ServerException- an error happened in the server application
 
- 
getReport
GUIReport getReport(long id, boolean withLog) throws ServerException
Loads a given report from the database- Parameters:
 id- identifier of the recordswithLog- flag to ask for the logs- Returns:
 - the report retrieved by the server application
 - Throws:
 ServerException- an error happened in the server application
 
- 
getReports
GUIReport[] getReports() throws ServerException
Loads all the reports- Returns:
 - all the available reports
 - Throws:
 ServerException- an error happened in the server application
 
- 
getReportParameters
GUIAttribute[] getReportParameters(long id) throws ServerException
Loads the attributes defined in the given report- Parameters:
 id- identifiers of the report- Returns:
 - the parameters of the report
 - Throws:
 ServerException- an error happened in the server application
 
- 
changeStatus
void changeStatus(long id, boolean enabled) throws ServerExceptionChanges a report enabled/disabled status- Parameters:
 id- identifier of the reportenabled- the new enabled status- Throws:
 ServerException- an error happened in the server application
 
- 
execute
void execute(long id, GUIAttribute[] parameters) throws ServerExceptionProcesses a report- Parameters:
 id- identifier of the reportparameters- the values to be used in generating the report- Throws:
 ServerException- an error happened in the server application
 
 - 
 
 -