com.germinus.merlin.controller.assignments
Class AssignmentDetailsController

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.portlet.context.PortletApplicationObjectSupport
          extended by org.springframework.web.portlet.handler.PortletContentGenerator
              extended by org.springframework.web.portlet.mvc.AbstractController
                  extended by com.germinus.merlin.controller.assignments.AssignmentDetailsController
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.web.portlet.context.PortletContextAware, org.springframework.web.portlet.mvc.Controller

public class AssignmentDetailsController
extends org.springframework.web.portlet.mvc.AbstractController
implements org.springframework.beans.factory.InitializingBean

This controller process the render view to details page. Return a assignment object to fill the fields in details page. This controler also show the results of a assignment if exists.

Since:
1.0, 2.0
Version:
1.0, 2.0
Author:
Rui Quintas, Jesús Rodríguez Martínez Gérminus XXI

Field Summary
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
AssignmentDetailsController()
           
 
Method Summary
 void afterPropertiesSet()
           
 AssignmentManager getAssignmentManager()
           
 AssignmentResultManager getAssignmentResultManager()
           
 CourseManager getCourseManager()
           
 IMerlinUtil getMerlinUtil()
           
 com.germinus.liferay.util.IUserUtil getUserUtil()
           
 org.springframework.web.portlet.ModelAndView handleRenderRequestInternal(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          Process the render request and return a ModelAndView object which the DispatcherPortlet will render.
 void setAssignmentManager(AssignmentManager assignmentsManagement)
           
 void setAssignmentResultManager(AssignmentResultManager assignmentResultManager)
           
 void setCourseManager(CourseManager courseManager)
           
 void setMerlinUtil(IMerlinUtil merlinUtil)
           
 void setUserUtil(com.germinus.liferay.util.IUserUtil userUtil)
           
 
Methods inherited from class org.springframework.web.portlet.mvc.AbstractController
handleActionRequest, handleActionRequestInternal, handleRenderRequest, isRenderWhenMinimized, isSynchronizeOnSession, setRenderWhenMinimized, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.portlet.handler.PortletContentGenerator
applyCacheSeconds, cacheForSeconds, check, checkAndPrepare, checkAndPrepare, getCacheSeconds, isRequireSession, preventCaching, setCacheSeconds, setRequireSession
 
Methods inherited from class org.springframework.web.portlet.context.PortletApplicationObjectSupport
getPortletContext, getTempDir, isContextRequired, setPortletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssignmentDetailsController

public AssignmentDetailsController()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

handleRenderRequestInternal

public org.springframework.web.portlet.ModelAndView handleRenderRequestInternal(javax.portlet.RenderRequest request,
                                                                                javax.portlet.RenderResponse response)
                                                                         throws java.lang.Exception
Process the render request and return a ModelAndView object which the DispatcherPortlet will render. Show the assignments details and the assignmentResults referent to the user log in.

Overrides:
handleRenderRequestInternal in class org.springframework.web.portlet.mvc.AbstractController
Parameters:
request -
response -
Returns:
ModelAndView
Throws:
java.lang.Exception

getAssignmentManager

public AssignmentManager getAssignmentManager()
Returns:
assignmentManager

setAssignmentManager

public void setAssignmentManager(AssignmentManager assignmentsManagement)
Parameters:
assignmentManager - the assignmentManager to set

getCourseManager

public CourseManager getCourseManager()
Returns:
the courseManager

setCourseManager

public void setCourseManager(CourseManager courseManager)
Parameters:
courseManager - the courseManager to set

getUserUtil

public com.germinus.liferay.util.IUserUtil getUserUtil()
Returns:
the liferayUtil

setUserUtil

public void setUserUtil(com.germinus.liferay.util.IUserUtil userUtil)
Parameters:
liferayUtil - the liferayUtil to set

getMerlinUtil

public IMerlinUtil getMerlinUtil()
Returns:
the merlinUtil

setMerlinUtil

public void setMerlinUtil(IMerlinUtil merlinUtil)
Parameters:
merlinUtil - the merlinUtil to set

getAssignmentResultManager

public AssignmentResultManager getAssignmentResultManager()

setAssignmentResultManager

public void setAssignmentResultManager(AssignmentResultManager assignmentResultManager)


Copyright © 2008. All Rights Reserved.