fr.paris.lutece.plugins.rating.service
Class RatingService

java.lang.Object
  extended by fr.paris.lutece.plugins.rating.service.RatingService

public class RatingService
extends java.lang.Object

RatingService


Constructor Summary
RatingService()
           
 
Method Summary
static void incrementDownloadCount(java.lang.String strResourceType, int nIdResource)
          Increments download counter
static void incrementViewCount(java.lang.String strResourceType, int nIdResource)
          Increments view counter
static void incrementVote(java.lang.String strResourceType, int nIdResource, int nVoteValue)
          Increments vote data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RatingService

public RatingService()
Method Detail

incrementDownloadCount

public static void incrementDownloadCount(java.lang.String strResourceType,
                                          int nIdResource)
Increments download counter

Parameters:
strResourceType - the resource type
nIdResource - the resource id

incrementViewCount

public static void incrementViewCount(java.lang.String strResourceType,
                                      int nIdResource)
Increments view counter

Parameters:
strResourceType - the resource type
nIdResource - the resource id

incrementVote

public static void incrementVote(java.lang.String strResourceType,
                                 int nIdResource,
                                 int nVoteValue)
Increments vote data

Parameters:
strResourceType - the resource type
nIdResource - the resource id
nVoteValue - the vote value


Copyright © 2011 Mairie de Paris. All Rights Reserved.