fr.paris.lutece.plugins.extend.modules.actionhit.business
Interface IActionHitDAO

All Known Implementing Classes:
ActionHitDAO

public interface IActionHitDAO

Interface of ActionHitDAO


Method Summary
 void create(ActionHit actionHit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an action hit
 void delete(int nIdActionHit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete an action hit
 void deleteByResource(String strExtendableResourceType, String strIdExtendableResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete action hits associated with a given resource
 List<ActionHit> findActionHitsByAction(String strActionName, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of action hits associated to a given action and a given resource type
 List<ActionHit> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find every action hit
 List<ActionHit> findAllByResource(String strExtendableResourceType, String strIdExtendableResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of action hits associated with a given resource.
 ActionHit findByActionNameAndResource(String strActionName, String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get an action hit from its id
 void updateHit(ActionHit actionHit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update an action hit
 

Method Detail

create

void create(ActionHit actionHit,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an action hit

Parameters:
actionHit - Action hit to save
plugin - The plugin

updateHit

void updateHit(ActionHit actionHit,
               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an action hit

Parameters:
actionHit - The action hit to update
plugin - The plugin

delete

void delete(int nIdActionHit,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an action hit

Parameters:
nIdActionHit - The if of the action hit to delete
plugin - The plugin

deleteByResource

void deleteByResource(String strExtendableResourceType,
                      String strIdExtendableResource,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete action hits associated with a given resource

Parameters:
strExtendableResourceType - The type of the resource to remove hits of
strIdExtendableResource - The id of the resource to remove hits of
plugin - The plugin

findAll

List<ActionHit> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find every action hit

Parameters:
plugin - The plugin
Returns:
The list of action hits

findActionHitsByAction

List<ActionHit> findActionHitsByAction(String strActionName,
                                       String strExtendableResourceType,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of action hits associated to a given action and a given resource type

Parameters:
strActionName - The name of the action to get the hits of
strExtendableResourceType - The resource type
plugin - The plugin
Returns:
The list of action hits, or an empty list if no actions was found

findByActionNameAndResource

ActionHit findByActionNameAndResource(String strActionName,
                                      String strIdExtendableResource,
                                      String strExtendableResourceType,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get an action hit from its id

Parameters:
strActionName - The name of the action to get
strIdExtendableResource - The id of the resource to get the action of
strExtendableResourceType - The type of the resource to get the action of
plugin - The plugin
Returns:
The action hit, or null if no action hit has the given name or is associated to the given resource

findAllByResource

List<ActionHit> findAllByResource(String strExtendableResourceType,
                                  String strIdExtendableResource,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of action hits associated with a given resource.

Parameters:
strExtendableResourceType - The resource type of hits
strIdExtendableResource - The id of the extendable resource to get hits of
plugin - The plugin
Returns:
The list of action hits


Copyright © 2013 Mairie de Paris. All Rights Reserved.