|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mymed.controller.core.manager.reputation.db.table.facade.VerdictFacade
public class VerdictFacade
Constructor Summary | |
---|---|
VerdictFacade(CassandraWrapper w)
|
Method Summary | |
---|---|
void |
deleteVerdictAggregationList(java.lang.String idAggregation)
|
java.util.Collection<Verdict> |
getAllRecords()
it returns all the entries of the table AtomicInteraction. |
java.util.Collection<Verdict> |
getConsumerVerdictByApplication(java.lang.String idApplicationReputation)
it returns the list of verdicts being the consumer associated to a given application |
java.util.Collection<Verdict> |
getProducerVerdictByApplication(java.lang.String idApplicationReputation)
it returns the list of verdicts being the producers associated to a given application |
java.util.Collection<Verdict> |
getRecordsByEvaluatedToConsumerAndDate(java.lang.String idUserServiceConsumer,
java.util.Date LowerBoundFilter,
java.util.Date UpperBoundFilter)
this method returns the collection of all atomic interaction referred to a given idUserService which is a consumer (so referred to the table UserServiceConsumer) whose feedback have been provided to the consumer (which means that the field recipientOfTheFeedback corresponds to CONSUMER) and whose timestamp is within the considered temporal range. |
java.util.Collection<Verdict> |
getRecordsByEvaluatedToProducerAndDate(java.lang.String idUserService,
java.util.Date LowerBoundFilter,
java.util.Date UpperBoundFilter)
this method returns the collection of all atomic interaction referred to a given idUserService which is a producer (so referred to the table UserServiceProvider) whose feedback have been provided to the producer (which means that the field recipientOfTheFeedback corresponds to PRODUCER) and whose timestamp is within the considered temporal range. |
java.util.Collection<Verdict> |
getVerdictByUserReputation(java.lang.String idUserReputation)
it returns the verdicts associated to a given user |
java.util.Collection<Verdict> |
getVerdictsByIdAggregation(java.lang.String idAggregation)
it returns the collection of all verdicts belonging to a given aggregation |
void |
persist(Verdict tc)
this methods persists the object given in input in the database (it could do an INSERT statement or an UPDATE statement depending on the fact that the object given in input has a new id or not). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VerdictFacade(CassandraWrapper w)
Method Detail |
---|
public java.util.Collection<Verdict> getAllRecords() throws InternalBackEndException
InternalBackEndException
public void persist(Verdict tc) throws PersistException, InternalBackEndException
tc
- the object to be persisted
PersistException
- if the writing operation fails
InternalBackEndException
public java.util.Collection<Verdict> getRecordsByEvaluatedToProducerAndDate(java.lang.String idUserService, java.util.Date LowerBoundFilter, java.util.Date UpperBoundFilter) throws InternalBackEndException
idUserService
- the id of the producer (referred to the table UserServiceProvider)LowerBoundFilter
- the temporal lower boundUpperBoundFilter
- the temporal upper bound
InternalBackEndException
public java.util.Collection<Verdict> getRecordsByEvaluatedToConsumerAndDate(java.lang.String idUserServiceConsumer, java.util.Date LowerBoundFilter, java.util.Date UpperBoundFilter) throws InternalBackEndException
idUserService
- the id of the producer (referred to the table UserServiceProvider)LowerBoundFilter
- the temporal lower boundUpperBoundFilter
- the temporal upper bound
InternalBackEndException
public java.util.Collection<Verdict> getVerdictsByIdAggregation(java.lang.String idAggregation) throws InternalBackEndException
idAggr
-
InternalBackEndException
public void deleteVerdictAggregationList(java.lang.String idAggregation) throws InternalBackEndException
InternalBackEndException
public java.util.Collection<Verdict> getVerdictByUserReputation(java.lang.String idUserReputation)
idUserReputation
-
public java.util.Collection<Verdict> getProducerVerdictByApplication(java.lang.String idApplicationReputation)
idApplicationReputation
-
public java.util.Collection<Verdict> getConsumerVerdictByApplication(java.lang.String idApplicationReputation)
idApplicationReputation
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |