@Security public class TransactionServiceSecurity extends BaseServiceSecurity implements TransactionService
TransactionService| Constructor and Description |
|---|
TransactionServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkBaseTransactionQuery(BaseTransactionQuery query) |
PaymentTransferType |
checkPerform(CalculateInstallmentsDTO params) |
PaymentTransferType |
checkPerform(PerformInternalTransactionDTO params) |
void |
checkQuery(BaseOwnerTransactionQuery query)
Makes sure that if some authorization status is set, the user has permission to view authorized (returning if
true),
and check and filter accessible accounts
|
PaymentTransferType |
checkReceive(CalculateInstallmentsDTO parameters) |
PaymentTransferType |
checkReceive(PerformInternalTransactionDTO parameters) |
DeviceConfirmationVO |
createDeviceConfirmationForReceive(@NotNull PerformInternalTransactionDTO parameters)
Creates a new pending for approval device confirmation for the payer.
|
SerializableInputStream |
deviceConfirmationBarcodeForReceive(InternalAccountOwner payer,
DeviceConfirmationBarcodeParams params)
Generates a two-dimensional barcode (QR code), only if the confirmation was not already approved nor rejected for
the given payer.
|
TransactionData |
getData(TransactionVO vo)
Returns data for a transaction
|
Page<MaturityTableItemData> |
getMaturityTable(MaturityTableQuery query)
returns the maturity table which the user can view in case of paying with a zero d-rate of an earlier account
state, when MaturityPolicy.HISTORY is valid.
|
PerformPaymentData |
getPaymentData(InternalAccountOwner from,
InternalAccountOwner to,
TransferTypeVO paymentType)
Returns data used to prepare a payment matching the given from / to account owners.
|
PerformPaymentToOwnerData |
getPaymentToOwnerData(InternalAccountOwner from,
InternalAccountOwner to,
TransferTypeVO transferType)
Returns simplified data used to prepare a payment matching the given arguments
|
PerformPaymentTypeData |
getPaymentTypeData(InternalAccountOwner from,
InternalAccountOwner to,
TransferTypeVO transferTypeVO)
Returns the data related to a payment type for a payment
|
ReceivePaymentData |
getReceivePaymentData()
Returns data used to receive a payment
|
ReceivePaymentFromUserData |
getReceivePaymentFromUserData(UserLocatorVO locator,
TransferTypeVO paymentType)
Returns data used to receive a payment from a specific user.
|
PerformPaymentTypeData |
getReceivePaymentTypeData(UserLocatorVO locator,
TransferTypeVO transferTypeVO)
Returns the data related to a payment type for receiving a payment from a specific user and payment type
|
TransactionSearchData |
getSearchData(InternalAccountOwner owner)
Returns data used to search for transactions for the given owner
|
java.util.Set<TransactionNature> |
getVisibleNatures(InternalAccountOwner owner)
Returns the visible
TransactionNature the logged user can view for the given owner. |
boolean |
isAccessible(Transaction transaction) |
TransactionVO |
load(java.lang.Long id)
Loads a transaction details by id, returning a proper detailed implementation (for example,
PaymentVO or
ScheduledPaymentVO). |
TransactionVO |
loadByTransactionNumber(java.lang.String transactionNumber)
Returns a transfer by transaction number, or throws
EntityNotFoundException if not found |
SerializableInputStream |
print(java.lang.Long id)
Generates a PDF file for a transaction details
|
void |
removeDeviceConfirmationForReceive(long deviceConfirmationId,
@NotNull PerformInternalTransactionDTO parameters)
Removes a confirmation for the payer.
|
void |
requestNewOTPForReceive(PerformInternalTransactionDTO parameters,
SendMedium medium)
Generates a new OTP (removing any previous password, if any) and sends it to the payer by the specified medium
using the confirmation password
type for the
BuiltInChannel.POS channel for the specified payer. |
protected org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
Page<TransactionEntryVO> |
search(TransactionQuery query)
Searches for transactions, according to the given query
|
void |
setAuthorizationActions(BasePayment transaction,
BasePaymentData data) |
DeviceConfirmationVO |
viewDeviceConfirmationForReceive(long deviceConfirmationId,
@NotNull PerformInternalTransactionDTO parameters)
Loads the details of a confirmation belonging to the payment payer.
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, updatepublic void checkBaseTransactionQuery(BaseTransactionQuery query)
public PaymentTransferType checkPerform(CalculateInstallmentsDTO params)
public PaymentTransferType checkPerform(PerformInternalTransactionDTO params)
public void checkQuery(BaseOwnerTransactionQuery query)
public PaymentTransferType checkReceive(CalculateInstallmentsDTO parameters)
public PaymentTransferType checkReceive(PerformInternalTransactionDTO parameters)
public DeviceConfirmationVO createDeviceConfirmationForReceive(@NotNull @NotNull PerformInternalTransactionDTO parameters) throws FrameworkException
TransactionServicePaymentService.receive(PerformPaymentDTO), that is the logged
user must be allowed to receive payments from the specified payer.createDeviceConfirmationForReceive in interface TransactionServiceFrameworkExceptionpublic SerializableInputStream deviceConfirmationBarcodeForReceive(InternalAccountOwner payer, DeviceConfirmationBarcodeParams params) throws FrameworkException
TransactionServicedeviceConfirmationBarcodeForReceive in interface TransactionServiceFrameworkExceptionpublic TransactionData getData(TransactionVO vo) throws FrameworkException
TransactionServicegetData in interface TransactionServiceFrameworkExceptionpublic Page<MaturityTableItemData> getMaturityTable(MaturityTableQuery query)
TransactionServicegetMaturityTable in interface TransactionServicepublic PerformPaymentData getPaymentData(InternalAccountOwner from, InternalAccountOwner to, TransferTypeVO paymentType) throws FrameworkException
TransactionServicegetPaymentData in interface TransactionServiceFrameworkExceptionpublic PerformPaymentToOwnerData getPaymentToOwnerData(InternalAccountOwner from, InternalAccountOwner to, TransferTypeVO transferType) throws FrameworkException
TransactionServicegetPaymentToOwnerData in interface TransactionServiceFrameworkExceptionpublic PerformPaymentTypeData getPaymentTypeData(InternalAccountOwner from, InternalAccountOwner to, TransferTypeVO transferTypeVO) throws FrameworkException
TransactionServicegetPaymentTypeData in interface TransactionServiceFrameworkExceptionpublic ReceivePaymentData getReceivePaymentData() throws FrameworkException
TransactionServicegetReceivePaymentData in interface TransactionServiceFrameworkExceptionpublic ReceivePaymentFromUserData getReceivePaymentFromUserData(UserLocatorVO locator, TransferTypeVO paymentType) throws FrameworkException
TransactionServicegetReceivePaymentFromUserData in interface TransactionServiceFrameworkExceptionpublic PerformPaymentTypeData getReceivePaymentTypeData(UserLocatorVO locator, TransferTypeVO transferTypeVO) throws FrameworkException
TransactionServicegetReceivePaymentTypeData in interface TransactionServiceFrameworkExceptionpublic TransactionSearchData getSearchData(InternalAccountOwner owner) throws FrameworkException
TransactionServicegetSearchData in interface TransactionServiceFrameworkExceptionpublic java.util.Set<TransactionNature> getVisibleNatures(InternalAccountOwner owner)
TransactionNature the logged user can view for the given owner.public boolean isAccessible(Transaction transaction)
public TransactionVO load(java.lang.Long id) throws FrameworkException
TransactionServicePaymentVO or
ScheduledPaymentVO).load in interface TransactionServiceFrameworkExceptionpublic TransactionVO loadByTransactionNumber(java.lang.String transactionNumber) throws FrameworkException
TransactionServiceEntityNotFoundException if not foundloadByTransactionNumber in interface TransactionServiceFrameworkExceptionpublic SerializableInputStream print(java.lang.Long id) throws FrameworkException
TransactionServiceprint in interface TransactionServiceFrameworkExceptionpublic void removeDeviceConfirmationForReceive(long deviceConfirmationId,
@NotNull
@NotNull PerformInternalTransactionDTO parameters)
throws FrameworkException
TransactionServicePaymentService.receive(PerformPaymentDTO), that is the logged
user must be allowed to receive payments from the specified payer.removeDeviceConfirmationForReceive in interface TransactionServiceFrameworkExceptionpublic void requestNewOTPForReceive(PerformInternalTransactionDTO parameters, SendMedium medium) throws FrameworkException, SmsSendingException
TransactionServiceBuiltInChannel.POS channel for the specified payer.PaymentService.receive(PerformPaymentDTO), that is the logged
user must be allowed to receive payments from the specified payer.requestNewOTPForReceive in interface TransactionServiceparameters - the payment to be received.medium - the medium used to send the OTP.SmsSendingException - only if medium is SendMedium.SMS and the OTP could not be sent to any
enabled for sms phone.FrameworkExceptionpublic Page<TransactionEntryVO> search(TransactionQuery query) throws FrameworkException
TransactionServicesearch in interface TransactionServiceFrameworkExceptionpublic void setAuthorizationActions(BasePayment transaction, BasePaymentData data)
public DeviceConfirmationVO viewDeviceConfirmationForReceive(long deviceConfirmationId, @NotNull @NotNull PerformInternalTransactionDTO parameters) throws FrameworkException
TransactionServicePaymentService.receive(PerformPaymentDTO), that is the logged
user must be allowed to receive payments from the specified payer.viewDeviceConfirmationForReceive in interface TransactionServiceFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity