public interface IHitService
| Modifier and Type | Method and Description |
|---|---|
void |
create(Hit hit)
Creates the a hit extender.
|
Hit |
findByParameters(String strIdExtendableResource,
String strExtendableResourceType)
Find by id extender.
|
Hit |
findByPrimaryKey(int nIdExtender)
Find.
|
List<Hit> |
findByResourceList(List<String> listIdExtendableResource,
String strExtendableResourceType)
Find by list id extendable resource.
|
List<Integer> |
findIdMostHitedResources(String strExtendableResourceType,
int nItemsOffset,
int nMaxItemsNumber)
Get the ids of resources ordered by their number of hits
|
void |
incrementHit(Hit hit)
Increment hit.
|
void |
remove(int nIdHit)
Removes a hit extender.
|
void |
removeByResource(String strIdResource,
String strResourceType)
Removes a hit extender by id resource and resource type.
|
void |
update(Hit hit)
Update a hit extender.
|
void create(Hit hit)
hit - the hitvoid update(Hit hit)
hit - the hitvoid remove(int nIdHit)
nIdHit - the n id hitvoid removeByResource(String strIdResource, String strResourceType)
strIdResource - The id of the resource to removestrResourceType - The type of the resource to removevoid incrementHit(Hit hit)
hit - the hitHit findByPrimaryKey(int nIdExtender)
nIdExtender - the n id extenderHit findByParameters(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typeList<Integer> findIdMostHitedResources(String strExtendableResourceType, int nItemsOffset, int nMaxItemsNumber)
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 itemsList<Hit> findByResourceList(List<String> listIdExtendableResource, String strExtendableResourceType)
listIdExtendableResource - the list of str id extendable resourcestrExtendableResourceType - the str extendable resource typeCopyright © 2022 City of Paris. All rights reserved.