org.sakaiproject.tool.assessment.ui.servlet.delivery
Class ShowMediaServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.sakaiproject.tool.assessment.ui.servlet.delivery.ShowMediaServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ShowMediaServlet
extends HttpServlet

Title: Samigo

Description: Sakai Assessment Manager

Copyright: Copyright (c) 2004 Sakai Project

Organization: Sakai Project

Version:
$Id: ShowMediaServlet.java 6810 2006-03-21 04:01:45Z daisyf@stanford.edu $
Author:
Ed Smiley
See Also:
Serialized Form

Constructor Summary
ShowMediaServlet()
           
 
Method Summary
 boolean canGrade(HttpServletRequest req, HttpServletResponse res, String agentId, String currentSiteId, String assessmentCreatedBy)
           
 void doGet(HttpServletRequest req, HttpServletResponse res)
           
 void doPost(HttpServletRequest req, HttpServletResponse res)
           
 String getAgentString(HttpServletRequest req, HttpServletResponse res)
           
 boolean isOwner(String agentId, String ownerId)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowMediaServlet

public ShowMediaServlet()
Method Detail

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse res)
           throws ServletException,
                  IOException
Throws:
ServletException
IOException

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse res)
            throws ServletException,
                   IOException
Throws:
ServletException
IOException

getAgentString

public String getAgentString(HttpServletRequest req,
                             HttpServletResponse res)

canGrade

public boolean canGrade(HttpServletRequest req,
                        HttpServletResponse res,
                        String agentId,
                        String currentSiteId,
                        String assessmentCreatedBy)

isOwner

public boolean isOwner(String agentId,
                       String ownerId)