fr.paris.lutece.plugins.extend.modules.hit.business
Interface IHitDAO

All Known Implementing Classes:
HitDAO

public interface IHitDAO

IInteractionHitDAO.


Method Summary
 void delete(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete.
 void deleteByResource(String strIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete hits of a given resource
 List<Integer> findIdMostHitedResources(String strExtendableResourceType, int nItemsOffset, int nMaxItemsNumber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the ids of resources ordered by their number of hits
 void insert(Hit hit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert.
 Hit load(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load.
 Hit loadByParameters(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load by id extender.
 void store(Hit hit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update.
 

Method Detail

insert

void insert(Hit hit,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert.

Parameters:
hit - the hit
plugin - the plugin

store

void store(Hit hit,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update.

Parameters:
hit - the hit
plugin - the plugin

delete

void delete(int nIdHit,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete.

Parameters:
nIdHit - the n id hit
plugin - the plugin

deleteByResource

void deleteByResource(String strIdResource,
                      String strResourceType,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete hits of a given resource

Parameters:
strIdResource - the id of the resource, or a wildcare to remove all
strResourceType - The resource type to delete
plugin - the plugin

load

Hit load(int nIdHit,
         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load.

Parameters:
nIdHit - the n id hit
plugin - the plugin
Returns:
the hit

loadByParameters

Hit loadByParameters(String strIdExtendableResource,
                     String strExtendableResourceType,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load by id extender.

Parameters:
strIdExtendableResource - the str id extendable resource
strExtendableResourceType - the str extendable resource type
plugin - the plugin
Returns:
the hit

findIdMostHitedResources

List<Integer> findIdMostHitedResources(String strExtendableResourceType,
                                       int nItemsOffset,
                                       int nMaxItemsNumber,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the ids of resources ordered by their number of hits

Parameters:
strExtendableResourceType - The type of resources to consider
nItemsOffset - The offset of the items to get, or 0 to get items from the first one
nMaxItemsNumber - The maximum number of items to return, or 0 to get every items
plugin - the plugin
Returns:
The list of ids of resources ordered by the number hits


Copyright © 2013 Mairie de Paris. All Rights Reserved.