org.sakaiproject.metaobj.shared.control
Class AddStructuredArtifactDefinitionController

java.lang.Object
  extended byorg.sakaiproject.metaobj.utils.mvc.impl.servlet.AbstractFormController
      extended byorg.sakaiproject.metaobj.shared.control.AbstractStructuredArtifactDefinitionController
          extended byorg.sakaiproject.metaobj.shared.control.AddStructuredArtifactDefinitionController
All Implemented Interfaces:
CancelableController, Controller, CustomCommandController, FormController, LoadObjectController
Direct Known Subclasses:
EditStructuredArtifactDefinitionController, ImportStructuredArtifactDefinitionController

public class AddStructuredArtifactDefinitionController
extends AbstractStructuredArtifactDefinitionController
implements CustomCommandController, FormController, LoadObjectController

Author:
chmaurer

Field Summary
protected static String SAD_SESSION_TAG
           
 
Fields inherited from class org.sakaiproject.metaobj.shared.control.AbstractStructuredArtifactDefinitionController
logger
 
Fields inherited from class org.sakaiproject.metaobj.utils.mvc.impl.servlet.AbstractFormController
PARAM_CANCEL
 
Constructor Summary
AddStructuredArtifactDefinitionController()
           
 
Method Summary
 Object fillBackingObject(Object incomingModel, Map request, Map session, Map application)
           
 Object formBackingObject(Map request, Map session, Map application)
           
 SessionManager getSessionManager()
           
 ModelAndView handleRequest(Object requestModel, Map request, Map session, Map application, Errors errors)
           
 Map referenceData(Map request, Object command, Errors errors)
          Create a map of all data the form requries.
protected  void save(StructuredArtifactDefinitionBean sad, Errors errors)
           
 void setSessionManager(SessionManager sessionManager)
           
 
Methods inherited from class org.sakaiproject.metaobj.shared.control.AbstractStructuredArtifactDefinitionController
checkPermission, getAuthManager, getAuthzManager, getHomeFactory, getIdManager, getListScrollIndexer, getStructuredArtifactDefinitionManager, getToolId, getTypeIndex, getUserSites, getWorksiteManager, isMaintainer, prepareListView, setAuthManager, setAuthzManager, setHomeFactory, setIdManager, setListScrollIndexer, setStructuredArtifactDefinitionManager, setToolId, setWorksiteManager
 
Methods inherited from class org.sakaiproject.metaobj.utils.mvc.impl.servlet.AbstractFormController
isCancel, processCancel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAD_SESSION_TAG

protected static final String SAD_SESSION_TAG
See Also:
Constant Field Values
Constructor Detail

AddStructuredArtifactDefinitionController

public AddStructuredArtifactDefinitionController()
Method Detail

formBackingObject

public Object formBackingObject(Map request,
                                Map session,
                                Map application)
Specified by:
formBackingObject in interface CustomCommandController

fillBackingObject

public Object fillBackingObject(Object incomingModel,
                                Map request,
                                Map session,
                                Map application)
                         throws Exception
Specified by:
fillBackingObject in interface LoadObjectController
Throws:
Exception

handleRequest

public ModelAndView handleRequest(Object requestModel,
                                  Map request,
                                  Map session,
                                  Map application,
                                  Errors errors)
Specified by:
handleRequest in interface Controller

save

protected void save(StructuredArtifactDefinitionBean sad,
                    Errors errors)

referenceData

public Map referenceData(Map request,
                         Object command,
                         Errors errors)
Description copied from interface: FormController
Create a map of all data the form requries. Useful for building up drop down lists, etc.

Specified by:
referenceData in interface FormController
Overrides:
referenceData in class AbstractFormController

getSessionManager

public SessionManager getSessionManager()

setSessionManager

public void setSessionManager(SessionManager sessionManager)