org.wso2.registry.inmemory.ratings
Class RatingsManager

java.lang.Object
  extended by org.wso2.registry.inmemory.ratings.RatingsManager

public class RatingsManager
extends java.lang.Object


Constructor Summary
RatingsManager(InMemoryRegistry inMemoryRegistryProvider)
           
 
Method Summary
 float getAverageRating(java.lang.String resourcePath)
           
 void rateResource(java.lang.String resourcePath, int rating)
           
 void removeRatings(java.lang.String resourcePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RatingsManager

public RatingsManager(InMemoryRegistry inMemoryRegistryProvider)
Method Detail

rateResource

public void rateResource(java.lang.String resourcePath,
                         int rating)
                  throws RegistryException
Throws:
RegistryException

getAverageRating

public float getAverageRating(java.lang.String resourcePath)

removeRatings

public void removeRatings(java.lang.String resourcePath)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.