@Security public class EasyInvoiceServiceSecurity extends BaseServiceSecurity implements EasyInvoiceService
| Constructor and Description |
|---|
EasyInvoiceServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
SerializableInputStream |
barcode(EasyInvoiceBarcodeParams params)
Generates a QR-Code image for the given
PerformPaymentDTO |
EasyInvoiceData |
getEasyInvoiceData(PerformPaymentDTO params)
Returns data for an easy invoice after logging in.
|
PaymentVO |
perform(@NotNull PerformPaymentDTO parameters)
Same as
PaymentService.perform(PerformPaymentDTO) but through the BuiltInChannel.EASY_INVOICE
channel |
PrepareEasyInvoiceData |
prepareEasyInvoice(PrepareEasyInvoiceParams params)
Returns data for displaying details of an easy invoice while still as guest.
|
PaymentPreviewVO |
preview(@NotNull PerformPaymentDTO parameters)
Previews a payment to be performed
|
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 |
void |
validate(@NotNull PerformPaymentDTO parameters)
Validates the parameters to perform a payment without actually performing the payment.
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, 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 SerializableInputStream barcode(EasyInvoiceBarcodeParams params) throws FrameworkException
EasyInvoiceServicePerformPaymentDTObarcode in interface EasyInvoiceServiceFrameworkExceptionpublic EasyInvoiceData getEasyInvoiceData(PerformPaymentDTO params) throws FrameworkException
EasyInvoiceServicePerformPaymentDTO#TO user is required.
The amount either is not specified or a currency must be resolved, in the same way as
EasyInvoiceService.prepareEasyInvoice(PrepareEasyInvoiceParams)
The resulting data will contain the resolved read-only custom field values.
The resulting PerformPaymentTypeData will contain the custom fields for the missing values.getEasyInvoiceData in interface EasyInvoiceServiceFrameworkExceptionpublic PaymentVO perform(@NotNull @NotNull PerformPaymentDTO parameters) throws TransferException, FrameworkException
EasyInvoiceServicePaymentService.perform(PerformPaymentDTO) but through the BuiltInChannel.EASY_INVOICE
channelperform in interface EasyInvoiceServiceTransferExceptionFrameworkExceptionpublic PrepareEasyInvoiceData prepareEasyInvoice(PrepareEasyInvoiceParams params) throws FrameworkException
EasyInvoiceServicePerformPaymentDTO#TO user is required.
If an amount is specified, it is required that a single currency is resolved. This can be either because:
EntityNotFoundException will be thrown.prepareEasyInvoice in interface EasyInvoiceServiceFrameworkExceptionpublic PaymentPreviewVO preview(@NotNull @NotNull PerformPaymentDTO parameters) throws FrameworkException
EasyInvoiceServicepreview in interface EasyInvoiceServiceFrameworkExceptionpublic void validate(@NotNull
@NotNull PerformPaymentDTO parameters)
throws FrameworkException
EasyInvoiceServicevalidate in interface EasyInvoiceServiceFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity