|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.extend.modules.hit.service.HitService
public class HitService
HitService
| Constructor Summary | |
|---|---|
HitService()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HitService()
| Method Detail |
|---|
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 hit
public 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 extender
public Hit findByParameters(String strIdExtendableResource,
String strExtendableResourceType)
findByParameters in interface IHitServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource type
public 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 items
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||