Class MediaItemComponentController

  • All Implemented Interfaces:
    DelegatedController, ComponentAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

    public class MediaItemComponentController
    extends ComponentController
    This class is the base class for media item component controllers. Component controllers are controllers that are registered by a component. These controllers are not running in the Spring application context but controller methods are delegated to it by a MainSpringController which does run inside the Spring application context. Custom controllers for media item components should extend this class.
    WebManager 9.0.8
    • Constructor Detail

      • MediaItemComponentController

        public MediaItemComponentController()
    • Method Detail

      • formBackingObject

        public Object formBackingObject​(javax.servlet.http.HttpServletRequest request)
                                 throws javax.servlet.ServletException
        Description copied from class: ComponentController
        Retrieve a form backing object for the current form from the given request. Override this method to return the form backing object
        Specified by:
        formBackingObject in interface DelegatedController
        formBackingObject in class ComponentController
        request - current HTTP request
        the FormBackingObject
        javax.servlet.ServletException - in case of errors
      • initFormBackingObject

        protected void initFormBackingObject​(MediaItemVersion mediaItemVersion,
                                             MediaItemVersion fbo)
        Initialize media item form backing object with default values This method is deprecated: use the BeanUtils class contained by the spring framework instead: BeanUtils.copyProperties(element, formBackingObject);
        mediaItemVersion - Media item entity to retrieve properties from
        fbo - Media item form backing object to set properties on
      • createEditViews

        protected void createEditViews()
        Description copied from class: BaseWebmanagerController
        Callback to add edit views. Sub classes should implement this method, call the super and invoke addEditViews to add its own edit views to the controller.
        Specified by:
        createEditViews in class BaseWebmanagerController