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


public interface FilecardCommServiceAsync

Comm Service for everything regarding the system object Filecard .

Version:
$LastChangedRevision: 260 $
Author:
Enrico Homann

Method Summary
 void activateFilecard(long filecardId, boolean bActivate, com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
          Will activate or deactivate a Filecard for printing.
 void createFilecard(Filecard entity, com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
          Will create a new Slide exercise in the database.
 void deleteFilecard(Filecard entity, com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
          Will hard delete a new Slide exercise in the database.
 void getActivatedFilecardListBy(long paraId, FilecardAttributeEnum sortAttribute, SQLSortDirectionEnum sortDirection, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Filecard>> callback)
          Will return all activated Filecard objects for Paragraph identified by long paraId every version.
 void getAllActivatedFilecardListBy(long lectureId, FilecardAttributeEnum sortAttribute, SQLSortDirectionEnum sortDirection, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Filecard>> callback)
          Will return all activated Filecard objects for Lecture identified by long lectureId.
 void getOwnershipFilecardListBy(long paraId, FilecardAttributeEnum sortAttribute, SQLSortDirectionEnum sortDirection, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Filecard>> callback)
          Will return all Slide objects for Paragraph identified by long paraId every version.
 void getPendingFilecardListBy(long paraId, FilecardAttributeEnum sortAttribute, SQLSortDirectionEnum sortDirection, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Filecard>> callback)
          Will return all Slide objects for Paragraph identified by long paraId every version.
 void updateFilecard(Filecard entity, com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
          Will update a new Filecard entity in the database.
 

Method Detail

getAllActivatedFilecardListBy

void getAllActivatedFilecardListBy(long lectureId,
                                   FilecardAttributeEnum sortAttribute,
                                   SQLSortDirectionEnum sortDirection,
                                   com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Filecard>> callback)
Will return all activated Filecard objects for Lecture identified by long lectureId. Sorts by using the SlideAttributeEnum sortAttribute and SQLSortDirectionEnum sortDirection.

Parameters:
lectureId - long
sortAttribute - FilecardAttributeEnum
sortDirection - SQLSortDirectionEnum
callback - AsyncCallback of List of Filecard

getActivatedFilecardListBy

void getActivatedFilecardListBy(long paraId,
                                FilecardAttributeEnum sortAttribute,
                                SQLSortDirectionEnum sortDirection,
                                com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Filecard>> callback)
Will return all activated Filecard 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 Filecard

getPendingFilecardListBy

void getPendingFilecardListBy(long paraId,
                              FilecardAttributeEnum sortAttribute,
                              SQLSortDirectionEnum sortDirection,
                              com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Filecard>> 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 Filecard

getOwnershipFilecardListBy

void getOwnershipFilecardListBy(long paraId,
                                FilecardAttributeEnum sortAttribute,
                                SQLSortDirectionEnum sortDirection,
                                com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<Filecard>> 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 Filecard

createFilecard

void createFilecard(Filecard entity,
                    com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
Will create a new Slide exercise in the database. The Filecard will have set the activated flag to FALSE. Returns SUCCESS at operation success, and FAILURE at operation failure.

Parameters:
entity - Filecard
callback - AsyncCallback of ResponseStatusEnum

updateFilecard

void updateFilecard(Filecard entity,
                    com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
Will update a new Filecard entity in the database. This method does only allow the update of question and answer. Only the owner of the Filecard is allowed to update. Returns SUCCESS at operation success, and FAILURE at operation failure.

Parameters:
entity - Slide
callback - AsyncCallback of ResponseStatusEnum

deleteFilecard

void deleteFilecard(Filecard entity,
                    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:
entity - Slide
callback - AsyncCallback of ResponseStatusEnum

activateFilecard

void activateFilecard(long filecardId,
                      boolean bActivate,
                      com.google.gwt.user.client.rpc.AsyncCallback<ResponseStatusEnum> callback)
Will activate or deactivate a Filecard for printing. Only the Docent is allowed change the activate state of a Filecard ssociated with his Lecture. Returns SUCCESS in case of a successful operation, or FAILURE otherwise.

Parameters:
filecardId - long
bActivate - boolean
callback - AsyncCallback of ResponseStatusEnum