|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.extend.modules.rating.service.RatingService
public class RatingService
RatingService
| Field Summary | |
|---|---|
static String |
BEAN_SERVICE
The Constant BEAN_SERVICE. |
| Constructor Summary | |
|---|---|
RatingService()
|
|
| Method Summary | |
|---|---|
void |
create(Rating rating)
Insert. |
void |
doVote(String strIdExtendableResource,
String strExtendableResourceType,
int nVoteValue,
javax.servlet.http.HttpServletRequest request)
Increment vote. |
Rating |
findByPrimaryKey(int nIdRating)
Load. |
Rating |
findByResource(String strIdExtendableResource,
String strExtendableResourceType)
Select by resource. |
List<Integer> |
findIdMostRatedResources(String strExtendableResourceType,
int nItemsOffset,
int nMaxItemsNumber)
Get the ids of resources ordered by their number of ratings |
void |
remove(int nIdRating)
Delete. |
void |
removeByResource(String strIdExtendableResource,
String strExtendableResourceType)
Delete by resource |
void |
update(Rating rating)
Store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BEAN_SERVICE
| Constructor Detail |
|---|
public RatingService()
| Method Detail |
|---|
@Transactional(value="extend-rating.transactionManager") public void create(Rating rating)
create in interface IRatingServicerating - the rating@Transactional(value="extend-rating.transactionManager") public void update(Rating rating)
update in interface IRatingServicerating - the rating
@Transactional(value="extend-rating.transactionManager")
public void doVote(String strIdExtendableResource,
String strExtendableResourceType,
int nVoteValue,
javax.servlet.http.HttpServletRequest request)
doVote in interface IRatingServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typenVoteValue - the n vote valuerequest - the request@Transactional(value="extend-rating.transactionManager") public void remove(int nIdRating)
remove in interface IRatingServicenIdRating - the n id rating
@Transactional(value="extend-rating.transactionManager")
public void removeByResource(String strIdExtendableResource,
String strExtendableResourceType)
removeByResource in interface IRatingServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource typepublic Rating findByPrimaryKey(int nIdRating)
findByPrimaryKey in interface IRatingServicenIdRating - the n id rating
public Rating findByResource(String strIdExtendableResource,
String strExtendableResourceType)
findByResource in interface IRatingServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource type
public List<Integer> findIdMostRatedResources(String strExtendableResourceType,
int nItemsOffset,
int nMaxItemsNumber)
findIdMostRatedResources in interface IRatingServicestrExtendableResourceType - 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 | |||||||||