@Security public class ScheduledPaymentServiceSecurity extends BaseServiceSecurity implements ScheduledPaymentService
ScheduledPaymentService| Constructor and Description |
|---|
ScheduledPaymentServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
void |
block(ScheduledPaymentActionDTO params)
Blocks the given scheduled payment, so installments won't be processed on their respective due dates
|
java.util.List<ScheduledPaymentInstallmentDTO> |
calculateInstallments(CalculateInstallmentsDTO dto)
Calculates future installments for the given parameters
|
java.util.List<ScheduledPaymentInstallmentDTO> |
calculateInstallmentsReceive(CalculateInstallmentsDTO dto)
Calculates future installments for the given parameters on a receive payment
|
void |
cancel(ScheduledPaymentActionDTO params)
Permanently cancels the given scheduled payment, so installments will never be processed
|
protected void |
checkQuery(BaseOwnerTransactionQuery query) |
protected void |
doInitialize() |
ScheduledPaymentData |
getData(java.lang.Long id)
Returns data about a scheduled payment
|
boolean |
hasViewPermission(InternalAccountOwner owner) |
ScheduledPaymentVO |
perform(PerformScheduledPaymentDTO parameters)
Performs an scheduled payment, returning its data
|
ScheduledPaymentPreviewVO |
preview(PerformScheduledPaymentDTO parameters)
Previews a scheduled payment to be performed
|
ScheduledPaymentPreviewVO |
previewReceive(PerformScheduledPaymentDTO parameters)
Previews a scheduled payment to be received
|
SerializableInputStream |
print(java.lang.Long id)
Generates a PDF file with the details of a scheduled payment.
|
SerializableInputStream |
printScheduledPayments(ScheduledPaymentQuery query)
Generates a PDF with the scheduled payment list result.
|
java.lang.Long |
processInstallment(ScheduledPaymentInstallmentActionDTO params)
Process the given installment if it's status is not terminal, returning the resulting transfer id
|
ScheduledPaymentVO |
receive(PerformScheduledPaymentDTO parameters)
Receives a scheduled payment, returning its data
|
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<ScheduledPaymentEntryVO> |
search(ScheduledPaymentQuery query)
Searches for scheduled payments, according to the given query
|
Page<ScheduledPaymentInstallmentEntryVO> |
searchInstallments(ScheduledPaymentInstallmentQuery query)
Searches for scheduled payment installments, according to the given query
|
void |
settleInstallment(ScheduledPaymentInstallmentActionDTO params)
Marks the given installment status as
ScheduledPaymentInstallmentStatus.SETTLED if the status is not
terminal. |
void |
settleRemaining(ScheduledPaymentActionDTO params)
Marks all installments whose status is not terminal as
ScheduledPaymentInstallmentStatus.SETTLED, and
closes the scheduled payment |
void |
unblock(ScheduledPaymentActionDTO params)
Unlocks the given scheduled payment, so installments will be processed on their respective due dates
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, 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 block(ScheduledPaymentActionDTO params) throws FrameworkException
ScheduledPaymentServiceblock in interface ScheduledPaymentServiceFrameworkExceptionpublic java.util.List<ScheduledPaymentInstallmentDTO> calculateInstallments(CalculateInstallmentsDTO dto) throws FrameworkException
ScheduledPaymentServicecalculateInstallments in interface ScheduledPaymentServiceFrameworkExceptionpublic java.util.List<ScheduledPaymentInstallmentDTO> calculateInstallmentsReceive(CalculateInstallmentsDTO dto) throws FrameworkException
ScheduledPaymentServicecalculateInstallmentsReceive in interface ScheduledPaymentServiceFrameworkExceptionpublic void cancel(ScheduledPaymentActionDTO params) throws FrameworkException
ScheduledPaymentServicecancel in interface ScheduledPaymentServiceFrameworkExceptionpublic ScheduledPaymentData getData(java.lang.Long id) throws FrameworkException
ScheduledPaymentServicegetData in interface ScheduledPaymentServiceFrameworkExceptionpublic boolean hasViewPermission(InternalAccountOwner owner)
public ScheduledPaymentVO perform(PerformScheduledPaymentDTO parameters) throws FrameworkException
ScheduledPaymentServiceperform in interface ScheduledPaymentServiceFrameworkExceptionPaymentService.perform(org.cyclos.model.banking.transactions.PerformPaymentDTO)public ScheduledPaymentPreviewVO preview(PerformScheduledPaymentDTO parameters) throws FrameworkException
ScheduledPaymentServicepreview in interface ScheduledPaymentServiceFrameworkExceptionpublic ScheduledPaymentPreviewVO previewReceive(PerformScheduledPaymentDTO parameters) throws FrameworkException, TransferException
ScheduledPaymentServicepreviewReceive in interface ScheduledPaymentServiceFrameworkExceptionTransferExceptionpublic SerializableInputStream print(java.lang.Long id) throws FrameworkException, ReportExecutionException
ScheduledPaymentServiceprint in interface ScheduledPaymentServiceFrameworkExceptionReportExecutionExceptionpublic SerializableInputStream printScheduledPayments(ScheduledPaymentQuery query)
ScheduledPaymentServiceprintScheduledPayments in interface ScheduledPaymentServicepublic java.lang.Long processInstallment(ScheduledPaymentInstallmentActionDTO params) throws FrameworkException, TransferException
ScheduledPaymentServiceprocessInstallment in interface ScheduledPaymentServiceFrameworkExceptionTransferExceptionScheduledPaymentInstallmentStatus.isTerminal()public ScheduledPaymentVO receive(PerformScheduledPaymentDTO parameters) throws FrameworkException, TransferException
ScheduledPaymentServicereceive in interface ScheduledPaymentServiceFrameworkExceptionTransferExceptionPaymentService.perform(org.cyclos.model.banking.transactions.PerformPaymentDTO)public Page<ScheduledPaymentEntryVO> search(ScheduledPaymentQuery query) throws FrameworkException
ScheduledPaymentServicesearch in interface ScheduledPaymentServiceFrameworkExceptionpublic Page<ScheduledPaymentInstallmentEntryVO> searchInstallments(ScheduledPaymentInstallmentQuery query) throws FrameworkException
ScheduledPaymentServicesearchInstallments in interface ScheduledPaymentServiceFrameworkExceptionpublic void settleInstallment(ScheduledPaymentInstallmentActionDTO params) throws FrameworkException, TransferException
ScheduledPaymentServiceScheduledPaymentInstallmentStatus.SETTLED if the status is not
terminal.settleInstallment in interface ScheduledPaymentServiceFrameworkExceptionTransferExceptionScheduledPaymentInstallmentStatus.isTerminal()public void settleRemaining(ScheduledPaymentActionDTO params) throws FrameworkException, TransferException
ScheduledPaymentServiceScheduledPaymentInstallmentStatus.SETTLED, and
closes the scheduled paymentsettleRemaining in interface ScheduledPaymentServiceFrameworkExceptionTransferExceptionScheduledPaymentInstallmentStatus.isTerminal()public void unblock(ScheduledPaymentActionDTO params) throws FrameworkException
ScheduledPaymentServiceunblock in interface ScheduledPaymentServiceFrameworkExceptionprotected void checkQuery(BaseOwnerTransactionQuery query)
protected void doInitialize()
doInitialize in class BaseServiceSecurityprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity