public class HitHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
create(Hit hit)
Creates the a hit extender.
|
static Optional<Hit> |
findByParameters(String strIdExtendableResource,
String strExtendableResourceType)
Find by id extender.
|
static Optional<Hit> |
findByPrimaryKey(int nIdHit)
Find.
|
static List<Hit> |
findByResourceList(List<String> listIdExtendableResource,
String strExtendableResourceType)
Find by list id extendable resource.
|
static List<Integer> |
findIdMostHitedResources(String strExtendableResourceType,
int nItemsOffset,
int nMaxItemsNumber)
Get the ids of resources ordered by their number of hits
|
static void |
remove(int nIdExtender)
Removes a hit extender.
|
static void |
removeByResource(String strIdResource,
String strResourceType)
Removes a hit extender by id resource and resource type.
|
static void |
update(Hit hit)
Update a hit extender.
|
public static void create(Hit hit)
hit - the hitpublic static void update(Hit hit)
hit - the hitpublic static void remove(int nIdExtender)
nIdHit - the n id hitpublic static void removeByResource(String strIdResource, String strResourceType)
strIdResource - The id of the resource to removestrResourceType - The type of the resource to removepublic static Optional<Hit> findByPrimaryKey(int nIdHit)
nIdExtender - the n id extenderpublic static Optional<Hit> findByParameters(String strIdExtendableResource, String strExtendableResourceType)
strIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic static List<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 itemspublic static List<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.