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

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
SlideCommServiceImpl

@RemoteServiceRelativePath(value="SlideCommService")
public interface SlideCommService
extends com.google.gwt.user.client.rpc.RemoteService

Synchronous Comm Service Interface Description for Slide related logics.

Version:
$LastChangedRevision: 260 $
Author:
Enrico Homann

Nested Class Summary
static class SlideCommService.Util
          Utility class for simplifying access to the instance of async service.
 
Method Summary
 ResponseStatusEnum createSlide(Slide entity)
          Will create a new Slide exercise in the database.
 ResponseStatusEnum deleteSlide(Slide entity)
          Will hard delete a new Slide exercise in the database.
 java.util.List<Slide> getSlideListBy(long paraId, SlideAttributeEnum sortAttribute, SQLSortDirectionEnum sortDirection)
          Will return all Slide objects for Paragraph identified by long paraId every version.
 ResponseStatusEnum updateSlide(Slide entity)
          Will update a new Slide exercise in the database.
 

Method Detail

getSlideListBy

java.util.List<Slide> getSlideListBy(long paraId,
                                     SlideAttributeEnum sortAttribute,
                                     SQLSortDirectionEnum sortDirection)
                                     throws InvalidPermissionException
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
Returns:
List of Slide
Throws:
InvalidPermissionException - Thrown if caller has not the correct permissions.

createSlide

ResponseStatusEnum createSlide(Slide entity)
                               throws InvalidPermissionException
Will create a new Slide exercise in the database. Returns SUCCESS at operation success, and FAILURE at operation failure.

Parameters:
entity - Slide
Returns:
ResponseStatusEnum
Throws:
InvalidPermissionException - Thrown if caller has not the correct permissions.

updateSlide

ResponseStatusEnum updateSlide(Slide entity)
                               throws InvalidPermissionException
Will update a new Slide exercise in the database. Returns SUCCESS at operation success, and FAILURE at operation failure.

Parameters:
entity - Slide
Returns:
ResponseStatusEnum
Throws:
InvalidPermissionException - Thrown if caller has not the correct permissions.

deleteSlide

ResponseStatusEnum deleteSlide(Slide entity)
                               throws InvalidPermissionException
Will hard delete a new Slide exercise in the database. Returns SUCCESS at operation success, and FAILURE at operation failure.

Parameters:
entity - Slide
Returns:
ResponseStatusEnum
Throws:
InvalidPermissionException - Thrown if caller has not the correct permissions.