|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mymed.controller.core.manager.reputation.reputation_manager.VerdictManager
public class VerdictManager
This class contains methods allowing the application level to store feedbacks concerning an atomic interaction between producer and consumer.
Constructor Summary | |
---|---|
VerdictManager(CassandraWrapper w)
|
Method Summary | |
---|---|
java.lang.String |
createAggregation(java.lang.String id)
This method creates an empty aggregation of judgments |
boolean |
deleteAggregation(java.lang.String idAggregation)
This method deletes an aggregation of judgments (note that it does not delete the judgments being part of the aggregation) |
boolean |
updateAggregation(java.lang.String idAggregation,
java.lang.String idApp,
java.lang.String idJudge,
boolean isJudgeProducer,
java.lang.String idCharged,
double vote)
This methods creates a new judgment given by a judge about a given charged and adds this judgment to an already created aggregation |
boolean |
updateReputation(java.lang.String idApp,
java.lang.String idJudge,
boolean isJudgeProducer,
java.lang.String idCharged,
double vote)
This method causes the update of a reputation of a given user (the charged) caused by the submission of a new feedback by an other user (the judge) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VerdictManager(CassandraWrapper w)
Method Detail |
---|
public boolean updateReputation(java.lang.String idApp, java.lang.String idJudge, boolean isJudgeProducer, java.lang.String idCharged, double vote)
idApp
- the id of the used applicationidJudge
- the id of the user playing the role of judgeisJudgeProducer
- a flag telling us whether the judge is a producer of a consumeridCharged
- the id of the user playing the role of chargedvote
- the provided feedback
public java.lang.String createAggregation(java.lang.String id)
id
- a value allowing us to identify uniquely the aggregation
public boolean deleteAggregation(java.lang.String idAggregation)
idAggregation
- the id of the aggregation to be deletedpublic boolean updateAggregation(java.lang.String idAggregation, java.lang.String idApp, java.lang.String idJudge, boolean isJudgeProducer, java.lang.String idCharged, double vote)
idAggregation
- the id of aggregation where the new judgment will be addedidApp
- the id of used applicationidJudge
- the id of the user being the judgeisJudgeProducer
- a flag telling us whether the judge is a producer or a consumeridCharged
- the id of the used being the chargedvote
- the provided feedback
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |