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 -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildXmlAddOn(String strIdExtendableResource, String strExtendableResourceType, String strParameters, StringBuffer strXml) voiddoSaveConfig(jakarta.servlet.http.HttpServletRequest request, fr.paris.lutece.plugins.extend.business.extender.config.IExtenderConfig config) voidfillListModel(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.IExtenderConfiggetConfig(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.IResourceExtendergetResourceTypeLabel(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
-
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
-
getConfigHtml
-
getConfig
public fr.paris.lutece.plugins.extend.business.extender.config.IExtenderConfig getConfig(int nIdExtender) -
getInfoHtml
-
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 resourcelocale- the locale of the labelsrequest- the request holding the filtersmodel- the model to fill
-
getResourceTypeLabel
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 typelocale- the locale of the label- Returns:
- the label
-
getResourceUrl
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 idstrResourceType- 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
-