public interface TransactionServiceLocal extends TransactionService
TransactionService| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_AUTHORIZATION_LEVEL
Script bind variable: the
AuthorizationLevel (if the payment would be authorized) |
static java.lang.String |
ATTR_FROM_OWNER
Script bind variable: the
InternalAccountOwner from |
static java.lang.String |
ATTR_NEW_STATUS
Script bind variable: the new status
|
static java.lang.String |
ATTR_OLD_STATUS
Script bind variable: the old status
|
static java.lang.String |
ATTR_PAYMENT_TYPE
Script bind variable: the
PaymentTransferType |
static java.lang.String |
ATTR_PERFORM_TRANSACTION
Script bind variable: the
PerformTransactionDTO |
static java.lang.String |
ATTR_PREVIEW
Script bind variable: the
PaymentPreviewVO |
static java.lang.String |
ATTR_TO_OWNER
Script bind variable: the
AccountOwner to |
static java.lang.String |
ATTR_TRANSACTION
Script bind variable: the
Transaction (only available in the TransactionExtensionPointEvent.CONFIRM event, on the validated
phase) |
| Modifier and Type | Method and Description |
|---|---|
void |
check(org.cyclos.impl.banking.LocateAccountOwnerResult from,
org.cyclos.impl.banking.LocateAccountOwnerResult to)
Performs security checks for the given transaction parameters
|
void |
check(org.cyclos.impl.banking.LocateAccountOwnerResult from,
org.cyclos.impl.banking.LocateAccountOwnerResult to,
TransferType transferType)
Performs security checks for the given transaction parameters
|
void |
check(PerformInternalTransactionDTO parameters)
Performs security checks for the given transaction parameters
|
void |
checkPaymentParameters(org.cyclos.impl.banking.LocateAccountOwnerResult from,
org.cyclos.impl.banking.LocateAccountOwnerResult to,
org.cyclos.impl.banking.PaymentServiceImpl.PaymentOperation paymentOperation,
PaymentTransferType paymentType)
Checks that a payment can be performed from / to the given owners, with the given payment type
|
org.cyclos.impl.utils.persistence.DBQuery |
createQuery(TransactionNature nature,
org.cyclos.entities.banking.QTransaction t,
BaseTransactionQuery params)
Creates a basic query to search transactions.
|
PaymentTransferType |
fill(BasePaymentTypeData data,
org.cyclos.impl.banking.LocateAccountOwnerResult from,
org.cyclos.impl.banking.LocateAccountOwnerResult to,
java.lang.Long paymentTypeId)
Fills in the given payment type data from / to the given owners, using the given payment type
|
void |
fill(Transaction transaction,
TransactionData data)
Fills a transaction data
|
void |
fill(Transaction transaction,
TransferType type,
org.cyclos.impl.banking.LocateAccountOwnerResult from,
org.cyclos.impl.banking.LocateAccountOwnerResult to,
java.math.BigDecimal amount,
java.lang.String description)
Fills data in a transaction
|
Transaction |
findByTransactionNumber(java.lang.String transactionNumber)
Returns a transaction by transaction number, or throws
EntityNotFoundException if not found |
boolean |
hasTransactions(java.util.Set<UserAccountType> userAccounts,
java.util.Set<Group> groups)
Returns true if there is at least one transaction of a user that belongs to any of the given groups performed from or to any of the given user
accounts.
|
boolean |
isCheckConfirmationPassword(PaymentTransferType paymentType,
InternalAccountOwner owner,
java.math.BigDecimal amount,
java.util.Date date)
It returns true if the confirmation password must be required according to the channel configuration or if it must not be required
(independently of the channel's configuration) because the
payment's amount is less than or equal the maximum for a pin-less payment.
|
org.cyclos.impl.banking.LocateAccountOwnerResult |
locateForPayment(InternalAccountOwner owner)
Locate the receiver when performing a payment using the principal types allowed to perform a payment.
|
org.cyclos.impl.banking.LocateAccountOwnerResult |
locateForReceiving(InternalAccountOwner owner)
Locate the payer when receiving a payment using the principal types allowed to receive a payment.
Additionally, it checks if the BuiltInChannel.POS channel is accessible for the located payer. |
org.cyclos.impl.banking.TransactionValidationData |
prepareValidation(org.cyclos.impl.banking.PrepareValidationParameter parameter)
Returns a validator filled with all common validations, plus some other data which was already loaded.
|
<T> T |
receive(InternalAccountOwner from,
java.util.concurrent.Callable<T> action)
Sets up the session data for receiving a transaction from the given user, invoking the given callable in it.
|
TransactionEntryVO |
toEntry(InternalAccountOwner owner,
Transaction transaction)
Converts a transaction to the corresponding entry type
|
void |
validatePaymentAmount(org.cyclos.impl.banking.LocateAccountOwnerResult from,
org.cyclos.impl.banking.LocateAccountOwnerResult to,
PaymentTransferType paymentType,
java.math.BigDecimal amount,
java.util.Date date)
Validates an amount to be paid from the given account
|
getMaturityTable, getPaymentData, getPaymentToOwnerData, getPaymentTypeData, getReceivePaymentData, getReceivePaymentFromUserData, getReceivePaymentTypeData, getSearchData, load, loadByTransactionNumber, print, requestNewOTPForReceive, searchstatic final java.lang.String ATTR_PERFORM_TRANSACTION
PerformTransactionDTOstatic final java.lang.String ATTR_TRANSACTION
Transaction (only available in the TransactionExtensionPointEvent.CONFIRM event, on the validated
phase)static final java.lang.String ATTR_PREVIEW
PaymentPreviewVOstatic final java.lang.String ATTR_PAYMENT_TYPE
PaymentTransferTypestatic final java.lang.String ATTR_FROM_OWNER
InternalAccountOwner fromstatic final java.lang.String ATTR_TO_OWNER
AccountOwner tostatic final java.lang.String ATTR_AUTHORIZATION_LEVEL
AuthorizationLevel (if the payment would be authorized)static final java.lang.String ATTR_OLD_STATUS
static final java.lang.String ATTR_NEW_STATUS
void check(org.cyclos.impl.banking.LocateAccountOwnerResult from,
org.cyclos.impl.banking.LocateAccountOwnerResult to)
void check(org.cyclos.impl.banking.LocateAccountOwnerResult from,
org.cyclos.impl.banking.LocateAccountOwnerResult to,
TransferType transferType)
void check(PerformInternalTransactionDTO parameters)
void checkPaymentParameters(org.cyclos.impl.banking.LocateAccountOwnerResult from,
org.cyclos.impl.banking.LocateAccountOwnerResult to,
org.cyclos.impl.banking.PaymentServiceImpl.PaymentOperation paymentOperation,
PaymentTransferType paymentType)
throws FrameworkException
FrameworkExceptionorg.cyclos.impl.utils.persistence.DBQuery createQuery(@Nullable
TransactionNature nature,
org.cyclos.entities.banking.QTransaction t,
BaseTransactionQuery params)
throws FrameworkException
FrameworkExceptionPaymentTransferType fill(BasePaymentTypeData data, org.cyclos.impl.banking.LocateAccountOwnerResult from, org.cyclos.impl.banking.LocateAccountOwnerResult to, java.lang.Long paymentTypeId) throws FrameworkException
FrameworkExceptionvoid fill(Transaction transaction, TransactionData data) throws FrameworkException
FrameworkExceptionvoid fill(Transaction transaction, TransferType type, org.cyclos.impl.banking.LocateAccountOwnerResult from, org.cyclos.impl.banking.LocateAccountOwnerResult to, java.math.BigDecimal amount, java.lang.String description) throws FrameworkException
FrameworkExceptionTransaction findByTransactionNumber(java.lang.String transactionNumber) throws FrameworkException
EntityNotFoundException if not foundFrameworkExceptionboolean hasTransactions(java.util.Set<UserAccountType> userAccounts, java.util.Set<Group> groups)
boolean isCheckConfirmationPassword(PaymentTransferType paymentType, InternalAccountOwner owner, java.math.BigDecimal amount, java.util.Date date)
paymentType - the type used for the payment.the - payerdate - if null then the method will only check the maximum per transaction for a pin-less payment.DateHelper.now() as the last parameter.org.cyclos.impl.banking.LocateAccountOwnerResult locateForPayment(InternalAccountOwner owner)
org.cyclos.impl.banking.LocateAccountOwnerResult locateForReceiving(InternalAccountOwner owner) throws UserNotInPosChannelException
BuiltInChannel.POS channel is accessible for the located payer.UserNotInPosChannelExceptionorg.cyclos.impl.banking.TransactionValidationData prepareValidation(org.cyclos.impl.banking.PrepareValidationParameter parameter)
throws FrameworkException
FrameworkException<T> T receive(InternalAccountOwner from, java.util.concurrent.Callable<T> action) throws FrameworkException
FrameworkExceptionTransactionEntryVO toEntry(InternalAccountOwner owner, Transaction transaction) throws FrameworkException
FrameworkExceptionvoid validatePaymentAmount(org.cyclos.impl.banking.LocateAccountOwnerResult from,
org.cyclos.impl.banking.LocateAccountOwnerResult to,
PaymentTransferType paymentType,
java.math.BigDecimal amount,
java.util.Date date)
throws FrameworkException,
TransferException
FrameworkExceptionTransferException