de.hs_rm.cs.lecturenotes.client.core.transport.service
Interface ExerciseCommServiceAsync


public interface ExerciseCommServiceAsync

Asynchronous service description for ExerciseCommService.

Version:
$LastChangedRevision: 237 $
Author:
Enrico Homann

Method Summary
 void createExercise(Exercise exercise, com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
          Will create a new Exercise exercise in the database.
 void deleteExercise(Exercise exercise, com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
          Will hard delete a new Exercise exercise in the database.
 void getExerciseListBy(long paraId, ExerciseAttributeEnum sortAttribute, SQLSortDirectionEnum sortDirection, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Exercise>> callback)
          Will return all Exercise objects for Paragraph identified by long paraId every version.
 void updateExercise(Exercise exercise, com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
          Will update a new Exercise exercise in the database.
 

Method Detail

getExerciseListBy

void getExerciseListBy(long paraId,
                       ExerciseAttributeEnum sortAttribute,
                       SQLSortDirectionEnum sortDirection,
                       com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Exercise>> callback)
Will return all Exercise objects for Paragraph identified by long paraId every version. Sorts by using the ExerciseAttributeEnum sortAttribute and SQLSortDirectionEnum sortDirection.

Parameters:
paraId - long
sortAttribute - ExerciseAttributeEnum to be used in ORDER BY SQL Query statement
sortDirection - SQLSortDirectionEnum to be used in ORDER BY SQL Query statement
callback - AsyncCallback of List of Exercise

createExercise

void createExercise(Exercise exercise,
                    com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
Will create a new Exercise exercise in the database. Returns SUCCESS at operation success, and FAILURE at operation failure.

Parameters:
exercise - Exercise
callback - AsyncCallback of ResponseStatusEnum

updateExercise

void updateExercise(Exercise exercise,
                    com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
Will update a new Exercise exercise in the database. Returns SUCCESS at operation success, and FAILURE at operation failure.

Parameters:
exercise - Exercise
callback - AsyncCallback of ResponseStatusEnum

deleteExercise

void deleteExercise(Exercise exercise,
                    com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
Will hard delete a new Exercise exercise in the database. Returns SUCCESS at operation success, and FAILURE at operation failure.

Parameters:
exercise - Exercise
callback - AsyncCallback of ResponseStatusEnum