Interface IHitDAO
- All Known Implementing Classes:
HitDAO
public interface IHitDAO
IInteractionHitDAO.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete.voiddeleteByResource(String strIdResource, String strResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete hits of a given resourcefindByResourceList(List<String> listIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get list of Hit by ids resources.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 hitsvoidInsert.load(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load.loadByParameters(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load by id extender.voidUpdate.
-
Method Details
-
insert
Insert.- Parameters:
hit- the hitplugin- the plugin
-
store
Update.- Parameters:
hit- the hitplugin- the plugin
-
delete
void delete(int nIdHit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete.- Parameters:
nIdHit- the n id hitplugin- 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 allstrResourceType- The resource type to deleteplugin- the plugin
-
load
Load.- Parameters:
nIdHit- the n id hitplugin- 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 resourcestrExtendableResourceType- the str extendable resource typeplugin- 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 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
List<Hit> findByResourceList(List<String> listIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get list of Hit by ids resources.- Parameters:
listIdExtendableResource- the list of str id extendable resourcestrExtendableResourceType- the str extendable resource typeplugin- the plugin- Returns:
- the hit list
-