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, org.springframework.beans.factory.InitializingBean

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}]@
  • Field Details

  • Constructor Details

    • HitResourceExtender

      public HitResourceExtender()
  • Method Details

    • isInvoked

      public boolean isInvoked(String strExtenderType)
      Checks if is invoked.
      Specified by:
      isInvoked in interface IResourceExtender
      Overrides:
      isInvoked in class AbstractResourceExtender
      Parameters:
      strExtenderType - the str extender type
      Returns:
      true, if is invoked
    • getContent

      public String getContent(String strIdExtendableResource, String strExtendableResourceType, String strParameters, javax.servlet.http.HttpServletRequest request)
      Gets the content.
      Parameters:
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      strParameters - the str parameters
      request - the request
      Returns:
      the content
    • doCreateResourceAddOn

      public void doCreateResourceAddOn(ResourceExtenderDTO extender)
      Do create resource add on.
      Parameters:
      extender - the resource extender
    • doDeleteResourceAddOn

      public void doDeleteResourceAddOn(ResourceExtenderDTO extender)
      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.