@Security public class TicketServiceSecurity extends BaseServiceSecurity implements TicketService
| Constructor and Description |
|---|
TicketServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
TicketVO |
accept(AcceptTicketDTO params)
Accepts a ticked only if status is
TicketStatus.OPEN, as a payer, generating a new direct payment. |
SerializableInputStream |
barcode(TicketBarcodeParams params)
Generates a two-dimensional barcode (aka QR code) only if status is
TicketStatus.OPEN containing a URL of
the form: .../pay/ticket_id (e.g
https://www.cyclos.org/pay/1234567890123456789). |
void |
cancel(TicketVO ticketVO)
Cancels the ticket only if status is
TicketStatus.OPEN and the logged user is the ticket's receiver
or a manger of him. |
TicketVO |
create(CreateTicketDTO params)
Creates a new ticket with status
TicketStatus.OPEN for the logged user (i.e setting it as the receiver). |
CreateTicketData |
getCreateData(UserLocatorVO payer)
Returns data used to crate a new ticket, optionally with a fixed payer.
|
TicketData |
getData(TicketVO vo)
Returns data to view the ticket's details.
|
EasyInvoiceData |
getEasyInvoiceData(PerformPaymentDTO params)
Returns data for an easy invoice after logging in.
|
TicketPaymentTypeData |
getTicketPaymentTypeData(TransferTypeVO transferType)
Returns the data for a specific payment type used to create a new ticket
|
boolean |
hasViewPermission(InternalAccountOwner owner) |
boolean |
isAccessible(Ticket ticket) |
PrepareEasyInvoiceData |
prepareEasyInvoice(PrepareEasyInvoiceParams params)
Returns data for displaying details of an easy invoice while still as guest.
|
AcceptTicketPreviewVO |
previewAccept(TicketVO ticketVO)
Previews the payment which would be performed when accepting the given ticket as the 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<TicketEntryVO> |
search(TicketQuery query)
Searches for tickets according to the given query.
|
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, isMemberOnly, 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, mailContentBuilder, message, message, persist, processBatch, refresh, remove, selectFrom, subQuery, updatepublic TicketVO accept(AcceptTicketDTO params) throws FrameworkException, TransferException
TicketServiceTicketStatus.OPEN, as a payer, generating a new direct payment.
The returned ticket will contains a reference to the generated payment.accept in interface TicketServiceFrameworkExceptionTransferExceptionpublic SerializableInputStream barcode(TicketBarcodeParams params) throws FrameworkException
TicketServiceTicketStatus.OPEN containing a URL of
the form: .../pay/ticket_id (e.g
https://www.cyclos.org/pay/1234567890123456789).barcode in interface TicketServiceFrameworkExceptionpublic void cancel(TicketVO ticketVO) throws FrameworkException
TicketServiceTicketStatus.OPEN and the logged user is the ticket's receiver
or a manger of him.cancel in interface TicketServiceFrameworkExceptionpublic TicketVO create(CreateTicketDTO params) throws FrameworkException
TicketServiceTicketStatus.OPEN for the logged user (i.e setting it as the receiver).create in interface TicketServiceFrameworkExceptionpublic CreateTicketData getCreateData(UserLocatorVO payer) throws FrameworkException
TicketServicegetCreateData in interface TicketServiceFrameworkExceptionpublic TicketData getData(TicketVO vo) throws FrameworkException
TicketServicegetData in interface TicketServiceFrameworkExceptionpublic EasyInvoiceData getEasyInvoiceData(PerformPaymentDTO params) throws FrameworkException
TicketServiceTicketService.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 TicketServiceFrameworkExceptionpublic TicketPaymentTypeData getTicketPaymentTypeData(TransferTypeVO transferType) throws FrameworkException
TicketServicegetTicketPaymentTypeData in interface TicketServiceFrameworkExceptionpublic boolean hasViewPermission(InternalAccountOwner owner)
public boolean isAccessible(Ticket ticket)
public PrepareEasyInvoiceData prepareEasyInvoice(PrepareEasyInvoiceParams params) throws FrameworkException
TicketServiceEntityNotFoundException will be thrown.prepareEasyInvoice in interface TicketServiceFrameworkExceptionpublic AcceptTicketPreviewVO previewAccept(TicketVO ticketVO) throws FrameworkException
TicketServicepreviewAccept in interface TicketServiceFrameworkExceptionpublic Page<TicketEntryVO> search(TicketQuery query) throws FrameworkException
TicketServicesearch in interface TicketServiceFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity