|
||||||||||
| 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 java.lang.String |
BEAN_SERVICE
The Constant BEAN_SERVICE. |
| Constructor Summary | |
|---|---|
RatingService()
|
|
| Method Summary | |
|---|---|
void |
create(Rating rating)
Insert. |
void |
doVote(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType,
int nVoteValue,
javax.servlet.http.HttpServletRequest request)
Increment vote. |
Rating |
findByPrimaryKey(int nIdRating)
Load. |
Rating |
findByResource(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType)
Select by resource. |
void |
remove(int nIdRating)
Delete. |
void |
removeByResource(java.lang.String strIdExtendableResource,
java.lang.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 java.lang.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(java.lang.String strIdExtendableResource,
java.lang.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(java.lang.String strIdExtendableResource,
java.lang.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(java.lang.String strIdExtendableResource,
java.lang.String strExtendableResourceType)
findByResource in interface IRatingServicestrIdExtendableResource - the str id extendable resourcestrExtendableResourceType - the str extendable resource type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||