Package org.cyclos.impl.banking
Interface TransferServiceLocal
-
- All Superinterfaces:
Service,TransferService
- All Known Implementing Classes:
TransferServiceImpl
public interface TransferServiceLocal extends TransferService
Local interface forTransferService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransferfindByTransactionNumber(String transactionNumber)Returns a transfer by transaction number, or throwsEntityNotFoundExceptionif not foundTransferDatagetData(Transfer transfer)Returns details data for the given transferStringgetDescription(Transfer transfer)Returns the description of the given transfer.List<Transfer>getRatedTransfers(Account account, int numberOfIncoming)gets a List of transfers with the following properties: transfers are from or toownerlist containsnumberOfIncomingincoming transactions, where: transfers which are charged back, or which are a chargeback of another transfer, do not count for thenumberOfIncomingchild transfers are not counted, only their parents count (for 1).List<Transfer>getTransfers(Account account, DatePeriod period, boolean includeChargebacks)Gets a List of Transfers, depending on the parameters.TransferSummarygetTransferSummary(GetTransferSummaryParameters params)Returns a transaction summary for payments with the given characteristicsAccountFeeTransferinsertAccountFeeTransfer(UserAccountFeeLog userAccountFeeLog)Inserts the transfer for charging an account feeChargebackTransferinsertChargebackTransfer(Chargeback chargeback, Transfer toChargeback)Inserts a transfer to chargeback another transferImportTransferinsertImportTransfer(ImportTransaction importTransaction, Set<TransferStatus> status)Inserts an import transfer with the given statuses.InitialCreditTransferinsertInitialCreditTransfer(UserAccount account, GeneratedTransferType transferType, BigDecimal amount)Inserts the initial credit for the given user account, returning the generated transferInstallmentTransferinsertInstallmentTransfer(Installment installment)Inserts the transfer for processing the given installmentPaymentTransferinsertPaymentTransfer(Payment payment)Inserts the transfer for the given paymentbooleanisVisible(Trans trans)Returns whether the logged user can see the givenTrans(transfer / transaction)voidnotifyTransferReceived(Transfer transfer)Send all notifications derived from a transfer creation.-
Methods inherited from interface org.cyclos.services.banking.TransferService
exportTransfer, getData, load, loadByTransactionNumber
-
-
-
-
Method Detail
-
findByTransactionNumber
Transfer findByTransactionNumber(String transactionNumber)
Returns a transfer by transaction number, or throwsEntityNotFoundExceptionif not found
-
getData
TransferData getData(Transfer transfer)
Returns details data for the given transfer
-
getDescription
String getDescription(Transfer transfer)
Returns the description of the given transfer. If there is an associated transaction, and it has a description, return it. Otherwise returns the (translated) transfer type name.
-
getRatedTransfers
List<Transfer> getRatedTransfers(Account account, int numberOfIncoming)
gets a List of transfers with the following properties:- transfers are from or to
owner - list contains
numberOfIncomingincoming transactions, where:- transfers which are charged back, or which are a chargeback of another transfer, do not count for the
numberOfIncoming - child transfers are not counted, only their parents count (for 1).
- transfers which are charged back, or which are a chargeback of another transfer, do not count for the
- order is from new to old, and it includes exactly the
numberOfIncomingmost recent incoming transfers. - all transfers in between are listed too, even if they don't count for the
numberOfIncominggoal. So outgoing transfers and chargebacks are included. - list only contains elements if the D-rate is enabled now. If D-rate is not enabled, an empty list is returned.
- all included tranfers are D-rate enabled. Tranfers from before the enabling date of the present D-rate are
NOT included, even when that
means that the
numberOfIncominggoal is not reached.
- Parameters:
account- , may not be nullnumberOfIncoming-- Returns:
- the list of transfers. Never returns null; if conditons are not met an emtpy list is returned.
- transfers are from or to
-
getTransfers
List<Transfer> getTransfers(Account account, DatePeriod period, boolean includeChargebacks)
Gets a List of Transfers, depending on the parameters.
-
getTransferSummary
TransferSummary getTransferSummary(GetTransferSummaryParameters params)
Returns a transaction summary for payments with the given characteristics
-
insertAccountFeeTransfer
AccountFeeTransfer insertAccountFeeTransfer(UserAccountFeeLog userAccountFeeLog)
Inserts the transfer for charging an account fee
-
insertChargebackTransfer
ChargebackTransfer insertChargebackTransfer(Chargeback chargeback, Transfer toChargeback)
Inserts a transfer to chargeback another transfer
-
insertImportTransfer
ImportTransfer insertImportTransfer(ImportTransaction importTransaction, Set<TransferStatus> status)
Inserts an import transfer with the given statuses. No fees are processed.
-
insertInitialCreditTransfer
InitialCreditTransfer insertInitialCreditTransfer(UserAccount account, GeneratedTransferType transferType, BigDecimal amount)
Inserts the initial credit for the given user account, returning the generated transfer
-
insertInstallmentTransfer
InstallmentTransfer insertInstallmentTransfer(Installment installment)
Inserts the transfer for processing the given installment
-
insertPaymentTransfer
PaymentTransfer insertPaymentTransfer(Payment payment)
Inserts the transfer for the given payment
-
isVisible
boolean isVisible(Trans trans)
Returns whether the logged user can see the givenTrans(transfer / transaction)
-
notifyTransferReceived
void notifyTransferReceived(Transfer transfer)
Send all notifications derived from a transfer creation. E.g notifies the receiver user
-
-