Class HitDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.extend.modules.hit.business.HitDAO
-
-
Constructor Summary
Constructors Constructor Description HitDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete.voiddeleteByResource(java.lang.String strIdResource, java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete hits of a given resourcejava.util.List<Hit>findByResourceList(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get list of Hit by ids resources.java.util.List<java.lang.Integer>findIdMostHitedResources(java.lang.String strExtendableResourceType, int nItemsOffset, int nMaxItemsNumber, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the ids of resources ordered by their number of hitsvoidinsert(Hit hit, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert.Hitload(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load.HitloadByParameters(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load by id extender.voidstore(Hit hit, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update.
-
-
-
Method Detail
-
insert
public void insert(Hit hit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert.
-
store
public void store(Hit hit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update.
-
delete
public void delete(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete.
-
deleteByResource
public void deleteByResource(java.lang.String strIdResource, java.lang.String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete hits of a given resource- Specified by:
deleteByResourcein interfaceIHitDAO- Parameters:
strIdResource- the id of the resource, or a wildcare to remove allstrResourceType- The resource type to deleteplugin- the plugin
-
load
public Hit load(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load.
-
loadByParameters
public Hit loadByParameters(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load by id extender.- Specified by:
loadByParametersin interfaceIHitDAO- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource typeplugin- the plugin- Returns:
- the hit
-
findIdMostHitedResources
public java.util.List<java.lang.Integer> findIdMostHitedResources(java.lang.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- Specified by:
findIdMostHitedResourcesin interfaceIHitDAO- Parameters:
strExtendableResourceType- The type of resources to considernItemsOffset- The offset of the items to get, or 0 to get items from the first onenMaxItemsNumber- The maximum number of items to return, or 0 to get every itemsplugin- the plugin- Returns:
- The list of ids of resources ordered by the number hits
-
findByResourceList
public java.util.List<Hit> findByResourceList(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IHitDAOGet list of Hit by ids resources.- Specified by:
findByResourceListin interfaceIHitDAO- Parameters:
listIdExtendableResource- the list of str id extendable resourcestrExtendableResourceType- the str extendable resource typeplugin- the plugin- Returns:
- the hit list
-
-