fr.paris.lutece.plugins.extend.modules.rating.business
Class Rating

java.lang.Object
  extended by fr.paris.lutece.plugins.extend.modules.rating.business.Rating

public class Rating
extends Object

Rating


Constructor Summary
Rating()
           
 
Method Summary
 int getAverageScore()
          Calculate the score (min : 1 - max : 4).
 String getExtendableResourceType()
           
 String getIdExtendableResource()
           
 int getIdRating()
           
 int getScoreValue()
           
 int getVoteCount()
           
 void setExtendableResourceType(String strExtendableResourceType)
           
 void setIdExtendableResource(String strIdExtendableResource)
           
 void setIdRating(int nIdRating)
           
 void setScoreValue(int nScoreValue)
           
 void setVoteCount(int nVoteCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rating

public Rating()
Method Detail

getIdRating

public int getIdRating()
Returns:
the nIdRating

setIdRating

public void setIdRating(int nIdRating)
Parameters:
nIdRating - the nIdRating to set

getIdExtendableResource

public String getIdExtendableResource()
Returns:
the strIdExtendableResource

setIdExtendableResource

public void setIdExtendableResource(String strIdExtendableResource)
Parameters:
strIdExtendableResource - the strIdExtendableResource to set

getExtendableResourceType

public String getExtendableResourceType()
Returns:
the extendableResourceType

setExtendableResourceType

public void setExtendableResourceType(String strExtendableResourceType)
Parameters:
strExtendableResourceType - the extendableResourceType to set

getVoteCount

public int getVoteCount()
Returns:
the nVoteCount

setVoteCount

public void setVoteCount(int nVoteCount)
Parameters:
nVoteCount - the nVoteCount to set

getScoreValue

public int getScoreValue()
Returns:
the nScoreValue

setScoreValue

public void setScoreValue(int nScoreValue)
Parameters:
nScoreValue - the nScoreValue to set

getAverageScore

public int getAverageScore()
Calculate the score (min : 1 - max : 4).

Returns:
the calculated score


Copyright © 2013 Mairie de Paris. All Rights Reserved.