Class HitResourceExtender
java.lang.Object
fr.paris.lutece.plugins.extend.service.extender.AbstractResourceExtender
fr.paris.lutece.plugins.extend.modules.hit.service.extender.HitResourceExtender
- All Implemented Interfaces:
IResourceExtender
@ApplicationScoped
@Named("extend.hitResourceExtender")
public class HitResourceExtender
extends AbstractResourceExtender
Extender for hit functionality.
Macro to use in the templates : @Extender[idResource,resourceType,hit,{show:true|false}]@
Example : @Extender[22,document,hit,{show:true}]@
Macro to use in the templates : @Extender[idResource,resourceType,hit,{show:true|false}]@
Example : @Extender[22,document,hit,{show:true}]@
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoCreateResourceAddOn(ResourceExtenderDTO extender) Do create resource add on.voiddoDeleteResourceAddOn(ResourceExtenderDTO extender) Do delete resource add on.getContent(String strIdExtendableResource, String strExtendableResourceType, String strParameters, jakarta.servlet.http.HttpServletRequest request) Gets the content.booleanChecks if is invoked.voidMethods inherited from class fr.paris.lutece.plugins.extend.service.extender.AbstractResourceExtender
getKey, getResourceExtenderComponent, getTitle, isConfigRequired, isHistoryEnable, isStateEnable, setConfigRequired, setHistoryEnable, setI18nTitleKey, setKey, setResourceExtenderComponent, setStateEnable
-
Field Details
-
EXTENDER_TYPE
The Constant EXTENDER_TYPE.- See Also:
-
-
Constructor Details
-
HitResourceExtender
public HitResourceExtender()
-
-
Method Details
-
producesHitResourceExtender
@PostConstruct public void producesHitResourceExtender() -
isInvoked
Checks if is invoked.- Specified by:
isInvokedin interfaceIResourceExtender- Overrides:
isInvokedin classAbstractResourceExtender- Parameters:
strExtenderType- the str extender type- Returns:
- true, if is invoked
-
getContent
public String getContent(String strIdExtendableResource, String strExtendableResourceType, String strParameters, jakarta.servlet.http.HttpServletRequest request) Gets the content.- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typestrParameters- the str parametersrequest- the request- Returns:
- the content
-
doCreateResourceAddOn
Do create resource add on.- Parameters:
extender- the resource extender
-
doDeleteResourceAddOn
Do delete resource add on.- Parameters:
extender- the resource extender. If the extender has a configuration, then the configuration is also removed unless the extender id is equals to 0.
-