fr.paris.lutece.plugins.extend.modules.hit.service.extender
Class HitResourceExtender

java.lang.Object
  extended by fr.paris.lutece.plugins.extend.service.extender.AbstractResourceExtender
      extended by 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 Summary
static String EXTENDER_TYPE
          The Constant EXTENDER_TYPE.
 
Constructor Summary
HitResourceExtender()
           
 
Method Summary
 void doCreateResourceAddOn(ResourceExtenderDTO extender)
          Do create resource add on.
 void doDeleteResourceAddOn(ResourceExtenderDTO extender)
          Do delete resource add on.
 String getContent(String strIdExtendableResource, String strExtendableResourceType, String strParameters, javax.servlet.http.HttpServletRequest request)
          Gets the content.
 boolean isInvoked(String strExtenderType)
          Checks if is invoked.
 
Methods inherited from class fr.paris.lutece.plugins.extend.service.extender.AbstractResourceExtender
afterPropertiesSet, getKey, getResourceExtenderComponent, getTitle, isConfigRequired, isHistoryEnable, setConfigRequired, setHistoryEnable, setI18nTitleKey, setKey, setResourceExtenderComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTENDER_TYPE

public static final String EXTENDER_TYPE
The Constant EXTENDER_TYPE.

See Also:
Constant Field Values
Constructor Detail

HitResourceExtender

public HitResourceExtender()
Method Detail

isInvoked

public boolean isInvoked(String strExtenderType)
Checks if is invoked.

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.


Copyright © 2013 Mairie de Paris. All Rights Reserved.