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


public interface SlideCommServiceAsync

Author:
enrico

Method Summary
 void createSlide(Slide exercise, com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
          Will create a new Slide exercise in the database.
 void deleteSlide(Slide exercise, com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
          Will hard delete a new Slide exercise in the database.
 void getSlideListBy(long paraId, SlideAttributeEnum sortAttribute, SQLSortDirectionEnum sortDirection, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Slide>> callback)
          Will return all Slide objects for Paragraph identified by long paraId every version.
 void updateSlide(Slide exercise, com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
          Will update a new Slide exercise in the database.
 

Method Detail

getSlideListBy

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

Parameters:
paraId - long
sortAttribute - SlideAttributeEnum 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 Slide

createSlide

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

Parameters:
exercise - Slide
callback - AsyncCallback of ResponseStatusEnum

updateSlide

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

Parameters:
exercise - Slide
callback - AsyncCallback of ResponseStatusEnum

deleteSlide

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

Parameters:
exercise - Slide
callback - AsyncCallback of ResponseStatusEnum