Class FeedbackResourceExtenderComponent

java.lang.Object
fr.paris.lutece.plugins.extend.web.component.AbstractResourceExtenderComponent
fr.paris.lutece.plugins.extend.modules.feedback.web.component.FeedbackResourceExtenderComponent
All Implemented Interfaces:
fr.paris.lutece.plugins.extend.web.component.IResourceExtenderComponent

@ApplicationScoped @Named("extend-feedback.feedbackResourceExtenderComponent") public class FeedbackResourceExtenderComponent extends fr.paris.lutece.plugins.extend.web.component.AbstractResourceExtenderComponent
CommentResourceExtenderComponent
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    buildXmlAddOn(String strIdExtendableResource, String strExtendableResourceType, String strParameters, StringBuffer strXml)
    void
    doSaveConfig(jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.plugins.extend.business.extender.config.IExtenderConfig config)
    void
    fillListModel(fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtender, Locale locale, jakarta.servlet.http.HttpServletRequest request, Map<String,Object> model)
    Fills the model of the feedback list of an extender: the feedbacks matching the filters of the request, the filter choices, the labels of the resource and feedback types and the address of each feedback's resource.
    fr.paris.lutece.plugins.extend.business.extender.config.IExtenderConfig
    getConfig(int nIdExtender)
    getConfigHtml(fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtender, Locale locale, jakarta.servlet.http.HttpServletRequest request)
    getInfoHtml(fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtender, Locale locale, jakarta.servlet.http.HttpServletRequest request)
    getPageAddOn(String strIdExtendableResource, String strExtendableResourceType, String strParameters, jakarta.servlet.http.HttpServletRequest request)
    fr.paris.lutece.plugins.extend.service.extender.IResourceExtender
    getResourceTypeLabel(String strResourceType, Locale locale)
    Returns the label of a resource type, as the service of that type describes it, or the type itself when no service describes it.
    getResourceUrl(String strIdResource, String strResourceType)
    Returns the address of a resource: the form response view for a form response, the main address given by the service of the resource type otherwise.

    Methods inherited from class fr.paris.lutece.plugins.extend.web.component.AbstractResourceExtenderComponent

    getPostBackUrl

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FeedbackResourceExtenderComponent

      public FeedbackResourceExtenderComponent()
  • Method Details

    • getResourceExtender

      public fr.paris.lutece.plugins.extend.service.extender.IResourceExtender getResourceExtender()
    • buildXmlAddOn

      public void buildXmlAddOn(String strIdExtendableResource, String strExtendableResourceType, String strParameters, StringBuffer strXml)
    • getPageAddOn

      public String getPageAddOn(String strIdExtendableResource, String strExtendableResourceType, String strParameters, jakarta.servlet.http.HttpServletRequest request)
    • getConfigHtml

      public String getConfigHtml(fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtender, Locale locale, jakarta.servlet.http.HttpServletRequest request)
    • getConfig

      public fr.paris.lutece.plugins.extend.business.extender.config.IExtenderConfig getConfig(int nIdExtender)
    • getInfoHtml

      public String getInfoHtml(fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtender, Locale locale, jakarta.servlet.http.HttpServletRequest request)
    • fillListModel

      public void fillListModel(fr.paris.lutece.plugins.extend.business.extender.ResourceExtenderDTO resourceExtender, Locale locale, jakarta.servlet.http.HttpServletRequest request, Map<String,Object> model)
      Fills the model of the feedback list of an extender: the feedbacks matching the filters of the request, the filter choices, the labels of the resource and feedback types and the address of each feedback's resource.
      Parameters:
      resourceExtender - the extender, its resource id being * for every resource
      locale - the locale of the labels
      request - the request holding the filters
      model - the model to fill
    • getResourceTypeLabel

      public String getResourceTypeLabel(String strResourceType, Locale locale)
      Returns the label of a resource type, as the service of that type describes it, or the type itself when no service describes it.
      Parameters:
      strResourceType - the resource type
      locale - the locale of the label
      Returns:
      the label
    • getResourceUrl

      public String getResourceUrl(String strIdResource, String strResourceType)
      Returns the address of a resource: the form response view for a form response, the main address given by the service of the resource type otherwise.
      Parameters:
      strIdResource - the resource id
      strResourceType - the resource type
      Returns:
      the address, or null when the resource has none
    • doSaveConfig

      public void doSaveConfig(jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.plugins.extend.business.extender.config.IExtenderConfig config) throws fr.paris.lutece.plugins.extend.util.ExtendErrorException
      Throws:
      fr.paris.lutece.plugins.extend.util.ExtendErrorException