Interface IHitService
-
- All Known Implementing Classes:
HitService
public interface IHitServiceIHitService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreate(Hit hit)Creates the a hit extender.HitfindByParameters(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)Find by id extender.HitfindByPrimaryKey(int nIdExtender)Find.java.util.List<Hit>findByResourceList(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType)Find by list id extendable resource.java.util.List<java.lang.Integer>findIdMostHitedResources(java.lang.String strExtendableResourceType, int nItemsOffset, int nMaxItemsNumber)Get the ids of resources ordered by their number of hitsvoidincrementHit(Hit hit)Increment hit.voidremove(int nIdHit)Removes a hit extender.voidremoveByResource(java.lang.String strIdResource, java.lang.String strResourceType)Removes a hit extender by id resource and resource type.voidupdate(Hit hit)Update a hit extender.
-
-
-
Method Detail
-
create
void create(Hit hit)
Creates the a hit extender.- Parameters:
hit- the hit
-
update
void update(Hit hit)
Update a hit extender.- Parameters:
hit- the hit
-
remove
void remove(int nIdHit)
Removes a hit extender.- Parameters:
nIdHit- the n id hit
-
removeByResource
void removeByResource(java.lang.String strIdResource, java.lang.String strResourceType)Removes a hit extender by id resource and resource type.- Parameters:
strIdResource- The id of the resource to removestrResourceType- The type of the resource to remove
-
incrementHit
void incrementHit(Hit hit)
Increment hit.- Parameters:
hit- the hit
-
findByPrimaryKey
Hit findByPrimaryKey(int nIdExtender)
Find.- Parameters:
nIdExtender- the n id extender- Returns:
- the hit
-
findByParameters
Hit findByParameters(java.lang.String strIdExtendableResource, java.lang.String strExtendableResourceType)
Find by id extender.- Parameters:
strIdExtendableResource- the str id extendable resourcestrExtendableResourceType- the str extendable resource type- Returns:
- the hit
-
findIdMostHitedResources
java.util.List<java.lang.Integer> findIdMostHitedResources(java.lang.String strExtendableResourceType, int nItemsOffset, int nMaxItemsNumber)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 items- Returns:
- The list of ids of resources ordered by the number hits
-
findByResourceList
java.util.List<Hit> findByResourceList(java.util.List<java.lang.String> listIdExtendableResource, java.lang.String strExtendableResourceType)
Find by list id extendable resource.- Parameters:
listIdExtendableResource- the list of str id extendable resourcestrExtendableResourceType- the str extendable resource type- Returns:
- the hit list
-
-