public class HitService extends Object implements IHitService
| Modifier and Type | Field and Description |
|---|---|
static String |
BEAN_SERVICE
The Constant BEAN_SERVICE.
|
| Constructor and Description |
|---|
HitService() |
| 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 nIdHit)
Find.
|
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 nIdExtender)
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.
|
public static final String BEAN_SERVICE
public void create(Hit hit)
create in interface IHitServicehit - the hitpublic void update(Hit hit)
update in interface IHitServicehit - the hitpublic void remove(int nIdExtender)
remove in interface IHitServicenIdExtender - the n id hitpublic void removeByResource(String strIdResource, String strResourceType)
removeByResource in interface IHitServicestrIdResource - The id of the resource to removestrResourceType - The type of the resource to removepublic void incrementHit(Hit hit)
incrementHit in interface IHitServicehit - the hitpublic Hit findByPrimaryKey(int nIdHit)
findByPrimaryKey in interface IHitServicenIdHit - the n id extenderpublic Hit findByParameters(String strIdExtendableResource, String strExtendableResourceType)
findByParameters in interface IHitServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic List<Integer> findIdMostHitedResources(String strExtendableResourceType, int nItemsOffset, int nMaxItemsNumber)
findIdMostHitedResources in interface IHitServicestrExtendableResourceType - 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 itemsCopyright © 2015 City of Paris. All rights reserved.