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

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

public final class PDFCommServiceImpl
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements PDFCommService

PDF Comm Service that generates PDF Files by request.

Version:
$LastChangedRevision: 319 $
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.PDFCommService
PDFCommService.Util
 
Field Summary
static java.lang.String PDF_LATEX
          PDF Latex Application.
static long WIPEOUTTIMER_MILLIS
          Cleans the working directory after the specific amount of time.
static java.lang.String XSLFILE_FILECARD
          XSL Template to generate a Latex source file from a XML data set supposed to be the Filecard data.
static java.lang.String XSLFILE_LECTURE
          XSL Template to generate a Latex source file from a XML data set supposed to be the Lecture data.
 
Constructor Summary
PDFCommServiceImpl()
           
 
Method Summary
 void destroy()
           
 PDFGeneratorResult generateFilecardPDF(java.util.List<java.lang.Long> selectedFilecardIds, long lectureId)
          Will generate a PDF file for lecture identified by long lectureIdand selected filecards by their ids on the Backend and returns a PDFGeneratorResult.
 PDFGeneratorResult generateLecturePDF(long lectureId)
          Will generate a PDF file for lecture identified by long lectureIdand it's exercises on the Backend and returns a PDFGeneratorResult.
 void init()
           
 
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
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PDF_LATEX

public static java.lang.String PDF_LATEX
PDF Latex Application.


XSLFILE_LECTURE

public static final java.lang.String XSLFILE_LECTURE
XSL Template to generate a Latex source file from a XML data set supposed to be the Lecture data.

See Also:
Constant Field Values

XSLFILE_FILECARD

public static final java.lang.String XSLFILE_FILECARD
XSL Template to generate a Latex source file from a XML data set supposed to be the Filecard data.

See Also:
Constant Field Values

WIPEOUTTIMER_MILLIS

public static final long WIPEOUTTIMER_MILLIS
Cleans the working directory after the specific amount of time. In Milliseconds. Default: 15 Minutes.

See Also:
Constant Field Values
Constructor Detail

PDFCommServiceImpl

public PDFCommServiceImpl()
Method Detail

init

public void init()
Overrides:
init in class javax.servlet.GenericServlet

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

generateLecturePDF

public PDFGeneratorResult generateLecturePDF(long lectureId)
                                      throws InvalidPermissionException
Description copied from interface: PDFCommService
Will generate a PDF file for lecture identified by long lectureIdand it's exercises on the Backend and returns a PDFGeneratorResult.

Specified by:
generateLecturePDF in interface PDFCommService
Parameters:
lectureId - long
Returns:
PDFGeneratorResult
Throws:
InvalidPermissionException - Thrown if caller has insufficient permissions

generateFilecardPDF

public PDFGeneratorResult generateFilecardPDF(java.util.List<java.lang.Long> selectedFilecardIds,
                                              long lectureId)
                                       throws InvalidPermissionException
Description copied from interface: PDFCommService
Will generate a PDF file for lecture identified by long lectureIdand selected filecards by their ids on the Backend and returns a PDFGeneratorResult.

Specified by:
generateFilecardPDF in interface PDFCommService
Parameters:
selectedFilecardIds - List of Long
lectureId - long
Returns:
PDFGeneratorResult
Throws:
InvalidPermissionException - Thrown if caller has insufficient permissions