Package org.cyclos.impl.banking
Interface TicketServiceLocal
-
- All Superinterfaces:
Service,TicketService
- All Known Implementing Classes:
TicketServiceImpl
public interface TicketServiceLocal extends TicketService
Local interface for ticket service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcancelAll(UserAccount account)Cancels all open tickets for the given accountvoidcheckExists(String ticketNumber, boolean mustBeOpen)Checks that a ticket with the given number exists, throwingEntityNotFoundExceptionif not.voidexpire(Ticket ticket)Expires the given ticketTicketfindByTicketNumber(String ticketNumber)Returns a ticket by ticket number, or throwsEntityNotFoundExceptionif not found.StringgetApproveUrl(Ticket ticket)Returns the URL used to approve the given ticket, or null if the ticket isn't open.TicketDatagetData(Ticket ticket)Returns data for a ticketList<PaymentTransferType>listPossiblePaymentTypesForCreateTicket(User owner, User payer)Based on the logged user's permissions over the given owner, returns the possible payment types for creating tickets, optionally to the given fixed payer-
Methods inherited from interface org.cyclos.services.banking.TicketService
approve, barcode, cancel, create, getCreateData, getData, getTicketPaymentTypeData, previewApprove, process
-
-
-
-
Method Detail
-
cancelAll
int cancelAll(UserAccount account)
Cancels all open tickets for the given account
-
checkExists
void checkExists(String ticketNumber, boolean mustBeOpen)
Checks that a ticket with the given number exists, throwingEntityNotFoundExceptionif not. Optionally only succeds if the ticket is open.
-
expire
void expire(Ticket ticket)
Expires the given ticket
-
findByTicketNumber
Ticket findByTicketNumber(String ticketNumber)
Returns a ticket by ticket number, or throwsEntityNotFoundExceptionif not found.
-
getApproveUrl
String getApproveUrl(Ticket ticket)
Returns the URL used to approve the given ticket, or null if the ticket isn't open.
-
getData
TicketData getData(Ticket ticket)
Returns data for a ticket
-
listPossiblePaymentTypesForCreateTicket
List<PaymentTransferType> listPossiblePaymentTypesForCreateTicket(User owner, User payer)
Based on the logged user's permissions over the given owner, returns the possible payment types for creating tickets, optionally to the given fixed payer
-
-