public interface IRatingDAO
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdRating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete.
|
void |
deleteByResource(String strIdExtendableResource,
String strExtendableResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete by id hub resource.
|
List<Integer> |
findIdMostRatedResources(String strExtendableResourceType,
int nItemsOffset,
int nMaxItemsNumber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the ids of resources ordered by their number of ratings
|
void |
insert(Rating rating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert.
|
Rating |
load(int nIdRating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load.
|
Rating |
loadByResource(String strIdExtendableResource,
String strExtendableResourceType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select by id hub resource.
|
void |
store(Rating rating,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Store.
|
void delete(int nIdRating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdRating
- the n id ratingplugin
- the pluginvoid deleteByResource(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strIdExtendableResource
- the str id extendable resourcestrExtendableResourceType
- the str extendable resource typeplugin
- the pluginvoid insert(Rating rating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
rating
- the ratingplugin
- the pluginRating load(int nIdRating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdRating
- the n id ratingplugin
- the pluginvoid store(Rating rating, fr.paris.lutece.portal.service.plugin.Plugin plugin)
rating
- the ratingplugin
- the pluginRating loadByResource(String strIdExtendableResource, String strExtendableResourceType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strIdExtendableResource
- the str id extendable resourcestrExtendableResourceType
- the str extendable resource typeplugin
- the pluginList<Integer> findIdMostRatedResources(String strExtendableResourceType, int nItemsOffset, int nMaxItemsNumber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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 itemsplugin
- the pluginCopyright © 2015 City of Paris. All rights reserved.