fr.paris.lutece.plugins.extend.modules.rating.service
Interface IRatingService

All Known Implementing Classes:
RatingService

public interface IRatingService

IRatingService.


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.
 

Method Detail

remove

@Transactional(value="extend-rating.transactionManager")
void remove(int nIdRating)
Delete.

Parameters:
nIdRating - the n id rating

removeByResource

@Transactional(value="extend-rating.transactionManager")
void removeByResource(java.lang.String strIdExtendableResource,
                                    java.lang.String strExtendableResourceType)
Delete by resource

Parameters:
strIdExtendableResource - the str id extendable resource
strExtendableResourceType - the str extendable resource type

create

@Transactional(value="extend-rating.transactionManager")
void create(Rating rating)
Insert.

Parameters:
rating - the rating

update

@Transactional(value="extend-rating.transactionManager")
void update(Rating rating)
Store.

Parameters:
rating - the rating

doVote

@Transactional(value="extend-rating.transactionManager")
void doVote(java.lang.String strIdExtendableResource,
                          java.lang.String strExtendableResourceType,
                          int nVoteValue,
                          javax.servlet.http.HttpServletRequest request)
Increment vote.

Parameters:
strIdExtendableResource - the str id extendable resource
strExtendableResourceType - the str extendable resource type
nVoteValue - the n vote value
request - the request

findByPrimaryKey

Rating findByPrimaryKey(int nIdRating)
Load.

Parameters:
nIdRating - the n id rating
Returns:
the rating

findByResource

Rating findByResource(java.lang.String strIdExtendableResource,
                      java.lang.String strExtendableResourceType)
Select by resource.

Parameters:
strIdExtendableResource - the str id extendable resource
strExtendableResourceType - the str extendable resource type
Returns:
the rating


Copyright © 2012 Mairie de Paris. All Rights Reserved.