@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) |
boolean |
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) |
protected void |
checkViewPermission(Transaction transaction) |
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)
Returns data used to prepare a payment matching the given arguments
|
PerformPaymentToOwnerData |
getPaymentToOwnerData(InternalAccountOwner from,
InternalAccountOwner to)
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)
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
|
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 |
requestNewOTPForReceive(PerformInternalTransactionDTO parameters,
OTPSendMedium 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.It has the same security controls as for PaymentService.receive(PerformPaymentDTO), that is the logged
user must be allowed to receive
payments from 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) |
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, getValidationResult, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, message, message, persist, processBatch, refresh, remove, subQuery, updatepublic void checkBaseTransactionQuery(BaseTransactionQuery query)
public PaymentTransferType checkPerform(CalculateInstallmentsDTO params)
public PaymentTransferType checkPerform(PerformInternalTransactionDTO params)
public boolean checkQuery(BaseOwnerTransactionQuery query)
public PaymentTransferType checkReceive(CalculateInstallmentsDTO parameters)
public PaymentTransferType checkReceive(PerformInternalTransactionDTO parameters)
public 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) throws FrameworkException
TransactionServicegetPaymentData in interface TransactionServiceFrameworkExceptionpublic PerformPaymentToOwnerData getPaymentToOwnerData(InternalAccountOwner from, InternalAccountOwner to) 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) 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 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 requestNewOTPForReceive(PerformInternalTransactionDTO parameters, OTPSendMedium 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 OTPSendMedium.BY_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)
protected void checkViewPermission(Transaction transaction)
protected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity