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

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.MediaCommServiceImpl
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, MediaCommService, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public final class MediaCommServiceImpl
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements MediaCommService

GWT RPC Service Servlet for everything relevant to media file handling.

Version:
$LastChangedRevision: 278 $
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.MediaCommService
MediaCommService.Util
 
Constructor Summary
MediaCommServiceImpl()
           
 
Method Summary
 ResponseStatusEnum deleteMediaFileForLecture(LectureMediaFile mf)
          Hard deletes a LectureMediaFile from the system.
 java.util.List<LectureMediaFile> getMediaFilesForLecture(long lectureId)
          Will return of List with media files for Lecture with long lectureId.
 
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

MediaCommServiceImpl

public MediaCommServiceImpl()
Method Detail

getMediaFilesForLecture

public java.util.List<LectureMediaFile> getMediaFilesForLecture(long lectureId)
                                                         throws InvalidPermissionException
Description copied from interface: MediaCommService
Will return of List with media files for Lecture with long lectureId.

Specified by:
getMediaFilesForLecture in interface MediaCommService
Parameters:
lectureId - List of File
Returns:
List
Throws:
InvalidPermissionException - Thrown in case of insufficient permission

deleteMediaFileForLecture

public ResponseStatusEnum deleteMediaFileForLecture(LectureMediaFile mf)
                                             throws InvalidPermissionException
Description copied from interface: MediaCommService
Hard deletes a LectureMediaFile from the system. The lectureId is retrieved from the LectureMediaFile. Returns SUCCESS if the operation was successful or FAILURE otherwise.

Specified by:
deleteMediaFileForLecture in interface MediaCommService
Parameters:
mf - LectureMediaFile
Returns:
ResponseStatusEnum
Throws:
InvalidPermissionException - Thrown in case of insufficient permission