org.riotfamily.components.editor
Class ContentFormController

java.lang.Object
  extended by org.riotfamily.forms.controller.AbstractFormController
      extended by org.riotfamily.forms.controller.AjaxFormController
          extended by org.riotfamily.forms.factory.RepositoryFormController
              extended by org.riotfamily.components.editor.AbstractFrontOfficeFormController
                  extended by org.riotfamily.components.editor.ContentFormController
All Implemented Interfaces:
MessageSourceAware, Controller
Direct Known Subclasses:
PagePropertiesFormController

public class ContentFormController
extends AbstractFrontOfficeFormController

Controller that displays a form to edit the properties of a ComponentVersion.

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de]

Field Summary
 
Fields inherited from class org.riotfamily.forms.factory.RepositoryFormController
DEFAULT_FORM_ID_PARAM
 
Fields inherited from class org.riotfamily.forms.controller.AbstractFormController
BUTTON_CONTAINER_ID, FORM_SUBMISSION_HANDLER, log
 
Constructor Summary
ContentFormController(FormRepository formRepository, PlatformTransactionManager transactionManager, ComponentDao componentDao, CacheService cacheService)
           
 
Method Summary
protected  ContentContainer getContainer(HttpServletRequest request)
           
protected  Object getFormBackingObject(HttpServletRequest request)
          Returns the object backing the form.
protected  void initForm(Form form, HttpServletRequest request)
          Subclasses may overwrite this method to initialize forms after they have been populated.
protected  void reattach(Object object, HttpServletRequest request)
           
protected  void update(Object object, HttpServletRequest request)
           
 
Methods inherited from class org.riotfamily.components.editor.AbstractFrontOfficeFormController
getFormId, getSessionAttribute, handleFormSubmission, handleFormSubmissionInternal, setSuccessViewName, setViewName, showForm
 
Methods inherited from class org.riotfamily.forms.factory.RepositoryFormController
createForm, getFormIdParam, getFormRepository, setFormIdParam
 
Methods inherited from class org.riotfamily.forms.controller.AjaxFormController
handleFormRequest, isEventRequest, isInitialRequest, processAjaxRequest, processEventRequest, renderForm, setMessageSource
 
Methods inherited from class org.riotfamily.forms.controller.AbstractFormController
createAndInitForm, createModelAndView, getForm, getWriter, handleContentRequest, handleRequest, initController, isContentRequest, isExclusiveRequest, populateForm, processForm, removeFormFromSession, setFormContextFactory, setProcessNewForms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentFormController

public ContentFormController(FormRepository formRepository,
                             PlatformTransactionManager transactionManager,
                             ComponentDao componentDao,
                             CacheService cacheService)
Method Detail

initForm

protected void initForm(Form form,
                        HttpServletRequest request)
Description copied from class: AbstractFormController
Subclasses may overwrite this method to initialize forms after they have been populated. The default implementation does nothing.

Overrides:
initForm in class AbstractFrontOfficeFormController

getFormBackingObject

protected Object getFormBackingObject(HttpServletRequest request)
Description copied from class: AbstractFormController
Returns the object backing the form. Subclasses may overwrite this method to retrieve a persistent object. The default implementation returns null.

Overrides:
getFormBackingObject in class AbstractFormController

getContainer

protected ContentContainer getContainer(HttpServletRequest request)

reattach

protected void reattach(Object object,
                        HttpServletRequest request)
Specified by:
reattach in class AbstractFrontOfficeFormController

update

protected void update(Object object,
                      HttpServletRequest request)
Specified by:
update in class AbstractFrontOfficeFormController