Package org.cyclos.impl.users
Interface TransactionFeedbackServiceLocal
-
- All Superinterfaces:
CRUDService<TransactionFeedbackDTO,TransactionFeedbackData,TransactionVO>,CRUDServiceLocal<TransactionFeedback,TransactionFeedbackDTO,TransactionFeedbackData,TransactionVO>,Service,TransactionFeedbackService
public interface TransactionFeedbackServiceLocal extends TransactionFeedbackService, CRUDServiceLocal<TransactionFeedback,TransactionFeedbackDTO,TransactionFeedbackData,TransactionVO>
Service for transaction feedbacks local operations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcancelAll(UserAccount account)Cancels all pending feedback for the given accountbooleancanComment(BasePayment payment)Whether the logged user can comment (i.e give) a feedback for the given payment.booleancanReply(BasePayment payment)Whether the logged user can reply a received feedback for the given payment.intcountReceived(User user)Returns the number of received general references for the given userTransactionFeedbackcreateExpiredFeedback(BasePayment transaction)Create a defaultTransactionFeedback, when the time to provide a feedback has expiredbooleanhasTransactionFeedbacks(User user)Returns if the given user has given or received feedbackbooleanisFeedbackEnabled(BasePayment payment)Whether the feedbacks are enabled for the given paymentvoidnotifyTransactionFeedback(PaymentTransferType type)Notifies a transaction feedback in case transfer type has feedback enabled and configured to be sent after payment is doneTransactionFeedbackreadPaymentAsSystemAndGetFeedback(TransactionVO vo)Reads the payment as System and return the associated feedback (if any).voidremoveAll(User user)Removes all transaction feedbacks (both received and given) of the given uservoidsetFeedbackData(BasePayment payment, BasePaymentData paymentData)Set data related to feedbacks-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
Methods inherited from interface org.cyclos.services.users.TransactionFeedbackService
comment, getDataFromTransaction, getGiveData, getReplyData, getSearchData, getStatistics, getTransactionFeedback, listIgnoredUsers, markAsIgnored, removeFromTransaction, reply, search, searchTransactionsAwaitingFeedback, updateFeedbackFromTransaction
-
-
-
-
Method Detail
-
cancelAll
void cancelAll(UserAccount account)
Cancels all pending feedback for the given account
-
canComment
boolean canComment(BasePayment payment)
Whether the logged user can comment (i.e give) a feedback for the given payment.
-
canReply
boolean canReply(BasePayment payment)
Whether the logged user can reply a received feedback for the given payment.
-
countReceived
int countReceived(User user)
Returns the number of received general references for the given user
-
createExpiredFeedback
TransactionFeedback createExpiredFeedback(BasePayment transaction)
Create a defaultTransactionFeedback, when the time to provide a feedback has expired
-
hasTransactionFeedbacks
boolean hasTransactionFeedbacks(User user)
Returns if the given user has given or received feedback
-
isFeedbackEnabled
boolean isFeedbackEnabled(BasePayment payment)
Whether the feedbacks are enabled for the given payment
-
notifyTransactionFeedback
void notifyTransactionFeedback(PaymentTransferType type)
Notifies a transaction feedback in case transfer type has feedback enabled and configured to be sent after payment is done
-
readPaymentAsSystemAndGetFeedback
TransactionFeedback readPaymentAsSystemAndGetFeedback(TransactionVO vo) throws EntityNotFoundException
Reads the payment as System and return the associated feedback (if any).- Throws:
EntityNotFoundException- if there is no such payment or it hasn't got a feedback.
-
removeAll
void removeAll(User user)
Removes all transaction feedbacks (both received and given) of the given user
-
setFeedbackData
void setFeedbackData(BasePayment payment, BasePaymentData paymentData)
Set data related to feedbacks
-
-