com.mymed.controller.core.manager.reputation.reputation_manager
Class ReputationManager

java.lang.Object
  extended by com.mymed.controller.core.manager.reputation.reputation_manager.ReputationManager

public class ReputationManager
extends java.lang.Object

This class contains methods allowing the MyMed system to read the reputation value of a given userservice.

Author:
piccolo

Constructor Summary
ReputationManager(CassandraWrapper w)
           
 
Method Summary
 MReputationBean read(java.lang.String idUser, java.lang.String idApp, boolean isProducer)
          This method returns reputation information about a given user using a given application and having a specified role (between Producer and Consumer)
 MReputationBean read(java.lang.String idUser, java.lang.String idRequester, java.lang.String idApp, boolean isProducer)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReputationManager

public ReputationManager(CassandraWrapper w)
Method Detail

read

public MReputationBean read(java.lang.String idUser,
                            java.lang.String idRequester,
                            java.lang.String idApp,
                            boolean isProducer)
Parameters:
idUser -
idRequester -
idApp -
isProducer -
Returns:

read

public MReputationBean read(java.lang.String idUser,
                            java.lang.String idApp,
                            boolean isProducer)
This method returns reputation information about a given user using a given application and having a specified role (between Producer and Consumer)

Parameters:
idUser - the id of the user
idApp - the id of the application
isProducer - a flag telling us whether the user is a producer or a consumer
Returns:
reputation information about the given user