Interface TransferServiceLocal

    • Method Detail

      • 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 numberOfIncoming incoming 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).
        • order is from new to old, and it includes exactly the numberOfIncoming most recent incoming transfers.
        • all transfers in between are listed too, even if they don't count for the numberOfIncoming goal. 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 numberOfIncoming goal is not reached.
        The list is used to compose a maturity table.
        Parameters:
        account - , may not be null
        numberOfIncoming -
        Returns:
        the list of transfers. Never returns null; if conditons are not met an emtpy list is returned.
      • getTransfers

        List<Transfer> getTransfers​(Account account,
                                    DatePeriod period,
                                    boolean includeChargebacks)
        Gets a List of Transfers, depending on the parameters.
      • 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 given Trans (transfer / transaction)
      • notifyTransferReceived

        void notifyTransferReceived​(Transfer transfer)
        Send all notifications derived from a transfer creation. E.g notifies the receiver user