de.hs_rm.cs.lecturenotes.server.core.transport.service
Class SlideCommServiceImpl

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by de.hs_rm.cs.lecturenotes.server.core.transport.service.SlideCommServiceImpl
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, SlideCommService, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public final class SlideCommServiceImpl
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements SlideCommService

Comm Service for entity Slide.

Version:
$LastChangedRevision: 264 $
Author:
Enrico Homann
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.hs_rm.cs.lecturenotes.client.core.transport.service.SlideCommService
SlideCommService.Util
 
Constructor Summary
SlideCommServiceImpl()
           
 
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.
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, processCall, processPost
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlideCommServiceImpl

public SlideCommServiceImpl()
Method Detail

getSlideListBy

public java.util.List<Slide> getSlideListBy(long paraId,
                                            SlideAttributeEnum sortAttribute,
                                            SQLSortDirectionEnum sortDirection)
                                     throws InvalidPermissionException
Description copied from interface: SlideCommService
Will return all Slide objects for Paragraph identified by long paraId every version. Sorts by using the SlideAttributeEnum sortAttribute and SQLSortDirectionEnum sortDirection.

Specified by:
getSlideListBy in interface SlideCommService
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

public ResponseStatusEnum createSlide(Slide entity)
                               throws InvalidPermissionException
Description copied from interface: SlideCommService
Will create a new Slide exercise in the database. Returns SUCCESS at operation success, and FAILURE at operation failure.

Specified by:
createSlide in interface SlideCommService
Parameters:
entity - Slide
Returns:
ResponseStatusEnum
Throws:
InvalidPermissionException - Thrown if caller has not the correct permissions.

updateSlide

public ResponseStatusEnum updateSlide(Slide entity)
                               throws InvalidPermissionException
Description copied from interface: SlideCommService
Will update a new Slide exercise in the database. Returns SUCCESS at operation success, and FAILURE at operation failure.

Specified by:
updateSlide in interface SlideCommService
Parameters:
entity - Slide
Returns:
ResponseStatusEnum
Throws:
InvalidPermissionException - Thrown if caller has not the correct permissions.

deleteSlide

public ResponseStatusEnum deleteSlide(Slide entity)
                               throws InvalidPermissionException
Description copied from interface: SlideCommService
Will hard delete a new Slide exercise in the database. Returns SUCCESS at operation success, and FAILURE at operation failure.

Specified by:
deleteSlide in interface SlideCommService
Parameters:
entity - Slide
Returns:
ResponseStatusEnum
Throws:
InvalidPermissionException - Thrown if caller has not the correct permissions.