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

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

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

Synchronous Media Comm Service description.

Version:
$LastChangedRevision: 260 $
Author:
Enrico Homann

Nested Class Summary
static class MediaCommService.Util
          Utility class for simplifying access to the instance of async service.
 
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.
 

Method Detail

getMediaFilesForLecture

java.util.List<LectureMediaFile> getMediaFilesForLecture(long lectureId)
                                                         throws InvalidPermissionException
Will return of List with media files for Lecture with long lectureId.

Parameters:
lectureId - List of File
Returns:
List
Throws:
InvalidPermissionException - Thrown in case of insufficient permission

deleteMediaFileForLecture

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

Parameters:
mf - LectureMediaFile
Returns:
ResponseStatusEnum
Throws:
InvalidPermissionException - Thrown in case of insufficient permission