fr.paris.lutece.plugins.extend.modules.actionhit.business
Class ActionHitHome

java.lang.Object
  extended by fr.paris.lutece.plugins.extend.modules.actionhit.business.ActionHitHome

public final class ActionHitHome
extends Object

Home for ActionHit management


Method Summary
static void create(ActionHit actionHit)
          Create an action hit
static void delete(ActionHit actionHit)
          Delete an action hit
static void delete(int nIdActionHit)
          Delete an action hit
static void deleteByResource(String strExtendableResourceType, String strIdExtendableResource)
          Remove action hits associated with a given resource
static List<ActionHit> findActionHitsByAction(String strActionName, String strExtendableResourceType)
          Get the list of action hits associated to a given action and a given resource type
static List<ActionHit> findAll()
          Find every action hit
static List<ActionHit> findAllByResource(String strExtendableResourceType, String strIdExtendableResource)
          Get the list of action hits associated with a given resource.
static ActionHit findByActionNameAndResource(String strActionName, String strIdExtendableResource, String strExtendableResourceType)
          Get an action hit from its id
static void updateHit(ActionHit actionHit)
          Update an action hit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static void create(ActionHit actionHit)
Create an action hit

Parameters:
actionHit - Action hit to save

findByActionNameAndResource

public static ActionHit findByActionNameAndResource(String strActionName,
                                                    String strIdExtendableResource,
                                                    String strExtendableResourceType)
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
Returns:
The action hit, or null if no action hit has the given name or is associated to the given resource

updateHit

public static void updateHit(ActionHit actionHit)
Update an action hit

Parameters:
actionHit - The action hit to update

delete

public static void delete(ActionHit actionHit)
Delete an action hit

Parameters:
actionHit - The action hit to delete

delete

public static void delete(int nIdActionHit)
Delete an action hit

Parameters:
nIdActionHit - The id of the action hit to delete

deleteByResource

public static void deleteByResource(String strExtendableResourceType,
                                    String strIdExtendableResource)
Remove 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

findAll

public static List<ActionHit> findAll()
Find every action hit

Returns:
The list of action hits

findAllByResource

public static List<ActionHit> findAllByResource(String strExtendableResourceType,
                                                String strIdExtendableResource)
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
Returns:
The list of action hits

findActionHitsByAction

public static List<ActionHit> findActionHitsByAction(String strActionName,
                                                     String strExtendableResourceType)
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
Returns:
The list of action hits, or an empty list if no actions was found


Copyright © 2013 Mairie de Paris. All Rights Reserved.