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
AccountOwner 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 |
addStaticAmountValidations(org.cyclos.impl.utils.validation.Validator validator,
PaymentTransferType transferType,
PerformTransactionDTO dto)
Add static amount validations
|
void |
checkPaymentParameters(AccountOwner from,
AccountOwner to,
boolean forPaymentRequest,
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,
org.cyclos.entities.banking.QPaymentTransferType tt,
BaseTransactionQuery params)
Creates a basic query to search transactions.
|
PaymentTransferType |
fill(BasePaymentTypeData data,
AccountOwner from,
AccountOwner 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,
AccountOwner from,
AccountOwner 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,
AccountOwner 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.TransactionValidationData |
prepareValidation(PerformTransactionDTO dto,
boolean ignoreChannelForPaymentType,
boolean allowSearchingTTWhenNoneIsGiven,
boolean validateConfirmationPassword,
boolean excludeHideInForm,
boolean validateNFCChallenge)
Returns a validator filled with all common validations, plus some other data which was already loaded.
|
<T> T |
receive(AccountOwner from,
PrincipalType principalType,
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(AccountOwner owner,
Transaction transaction)
Converts a transaction to the corresponding entry type
|
void |
validatePaymentAmount(AccountOwner from,
AccountOwner to,
PaymentTransferType paymentType,
java.math.BigDecimal amount,
java.util.Date date)
Validates an amount to be paid from the given account
|
getPaymentData, getPaymentToOwnerData, getPaymentTypeData, getReceivePaymentData, getReceivePaymentFromUserData, getReceivePaymentTypeData, getSearchData, load, loadByTransactionNumber, print, 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
AccountOwner 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 addStaticAmountValidations(org.cyclos.impl.utils.validation.Validator validator,
PaymentTransferType transferType,
PerformTransactionDTO dto)
void checkPaymentParameters(AccountOwner from, AccountOwner to, boolean forPaymentRequest, PaymentTransferType paymentType) throws FrameworkException
FrameworkExceptionorg.cyclos.impl.utils.persistence.DBQuery createQuery(@Nullable
TransactionNature nature,
org.cyclos.entities.banking.QTransaction t,
org.cyclos.entities.banking.QPaymentTransferType tt,
BaseTransactionQuery params)
throws FrameworkException
FrameworkExceptionPaymentTransferType fill(BasePaymentTypeData data, AccountOwner from, AccountOwner to, java.lang.Long paymentTypeId) throws FrameworkException
FrameworkExceptionvoid fill(Transaction transaction, TransactionData data) throws FrameworkException
FrameworkExceptionvoid fill(Transaction transaction, TransferType type, AccountOwner from, AccountOwner 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, AccountOwner 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.TransactionValidationData prepareValidation(PerformTransactionDTO dto, boolean ignoreChannelForPaymentType, boolean allowSearchingTTWhenNoneIsGiven, boolean validateConfirmationPassword, boolean excludeHideInForm, boolean validateNFCChallenge) throws FrameworkException
validateNFCChallenge - only taken into account if the payer was located by a NFC token.FrameworkException<T> T receive(AccountOwner from, PrincipalType principalType, java.util.concurrent.Callable<T> action) throws FrameworkException
FrameworkExceptionTransactionEntryVO toEntry(AccountOwner owner, Transaction transaction) throws FrameworkException
FrameworkExceptionvoid validatePaymentAmount(AccountOwner from, AccountOwner to, PaymentTransferType paymentType, java.math.BigDecimal amount, java.util.Date date) throws FrameworkException, TransferException
FrameworkExceptionTransferException