@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<InstallmentDTO> |
calculateInstallments(CalculateInstallmentsDTO dto)
Calculates future installments for the given parameters
|
java.util.List<InstallmentDTO> |
calculateInstallmentsReceive(CalculateInstallmentsDTO dto)
Calculates future installments for the given parameters on a receive payment
|
boolean |
canCancel(TransactionWithInstallments<?> scheduledPayment) |
void |
cancel(ScheduledPaymentActionDTO params)
Permanently cancels the given scheduled payment, so installments will never be processed
|
boolean |
canProcessInstallments(TransactionWithInstallments<?> scheduledPayment) |
boolean |
canSettleInstallments(TransactionWithInstallments<?> scheduledPayment) |
ScheduledPaymentData |
getData(java.lang.Long id)
Returns data about a scheduled payment
|
boolean |
isAccessible(ScheduledPayment scheduledPayment) |
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
|
TransferVO |
processInstallment(InstallmentActionDTO 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 |
void |
settleInstallment(InstallmentActionDTO params)
Marks the given installment status as
InstallmentStatus.SETTLED if the status is not
terminal. |
void |
settleRemaining(ScheduledPaymentActionDTO params)
Marks all installments whose status is not terminal as
InstallmentStatus.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, 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 void block(ScheduledPaymentActionDTO params) throws FrameworkException
ScheduledPaymentServiceblock in interface ScheduledPaymentServiceFrameworkExceptionpublic java.util.List<InstallmentDTO> calculateInstallments(CalculateInstallmentsDTO dto) throws FrameworkException
ScheduledPaymentServicecalculateInstallments in interface ScheduledPaymentServiceFrameworkExceptionpublic java.util.List<InstallmentDTO> calculateInstallmentsReceive(CalculateInstallmentsDTO dto) throws FrameworkException
ScheduledPaymentServicecalculateInstallmentsReceive in interface ScheduledPaymentServiceFrameworkExceptionpublic boolean canCancel(TransactionWithInstallments<?> scheduledPayment)
public void cancel(ScheduledPaymentActionDTO params) throws FrameworkException
ScheduledPaymentServicecancel in interface ScheduledPaymentServiceFrameworkExceptionpublic boolean canProcessInstallments(TransactionWithInstallments<?> scheduledPayment)
public boolean canSettleInstallments(TransactionWithInstallments<?> scheduledPayment)
public ScheduledPaymentData getData(java.lang.Long id) throws FrameworkException
ScheduledPaymentServicegetData in interface ScheduledPaymentServiceFrameworkExceptionpublic boolean isAccessible(ScheduledPayment scheduledPayment)
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 TransferVO processInstallment(InstallmentActionDTO params) throws FrameworkException, TransferException
ScheduledPaymentServiceprocessInstallment in interface ScheduledPaymentServiceFrameworkExceptionTransferExceptionInstallmentStatus.isTerminal()public ScheduledPaymentVO receive(PerformScheduledPaymentDTO parameters) throws FrameworkException, TransferException
ScheduledPaymentServicereceive in interface ScheduledPaymentServiceFrameworkExceptionTransferExceptionPaymentService.perform(org.cyclos.model.banking.transactions.PerformPaymentDTO)public void settleInstallment(InstallmentActionDTO params) throws FrameworkException, TransferException
ScheduledPaymentServiceInstallmentStatus.SETTLED if the status is not
terminal.settleInstallment in interface ScheduledPaymentServiceFrameworkExceptionTransferExceptionInstallmentStatus.isTerminal()public void settleRemaining(ScheduledPaymentActionDTO params) throws FrameworkException, TransferException
ScheduledPaymentServiceInstallmentStatus.SETTLED, and
closes the scheduled paymentsettleRemaining in interface ScheduledPaymentServiceFrameworkExceptionTransferExceptionInstallmentStatus.isTerminal()public void unblock(ScheduledPaymentActionDTO params) throws FrameworkException
ScheduledPaymentServiceunblock in interface ScheduledPaymentServiceFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity