Package org.cyclos.security.banking
Class RecurringPaymentServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.banking.RecurringPaymentServiceSecurity
-
- All Implemented Interfaces:
RecurringPaymentService,Service
@Security public class RecurringPaymentServiceSecurity extends BaseServiceSecurity implements RecurringPaymentService
Security forRecurringPaymentService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description RecurringPaymentServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidblock(RecurringPaymentActionDTO params)Blocks the given recurring payment, so installments won't be processed on their respective due datesvoidcancel(RecurringPaymentActionDTO params)Permanently cancels the given recurring payment, so installments will never be processedRecurringPaymentDatagetData(Long id)Returns data about a recurring paymentRecurringPaymentEditDatagetEditData(@NotNull RecurringPaymentVO vo)Returns data for edition about a recurring paymentbooleanisAccessible(RecurringPayment recurringPayment)voidmodify(@NotNull RecurringPaymentDTO params, String confirmationPassword)Modifies the given recurring paymentRecurringPaymentVOperform(PerformRecurringPaymentDTO parameters)Performs an recurring payment, returning its dataRecurringPaymentPreviewVOpreview(PerformRecurringPaymentDTO parameters)Previews a recurring payment to be performedRecurringPaymentPreviewVOpreviewReceive(PerformRecurringPaymentDTO parameters)Previews a recurring payment to be receivedTransferVOprocessFailure(@NotNull InstallmentActionDTO params)Processes a failed occurrenceRecurringPaymentVOreceive(PerformRecurringPaymentDTO parameters)Receives a recurring payment, returning its dataprotected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if nonevoidunblock(RecurringPaymentActionDTO params)Unlocks the given recurring payment, so installments will be processed on their respective due dates-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, 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, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
block
public void block(RecurringPaymentActionDTO params) throws FrameworkException
Description copied from interface:RecurringPaymentServiceBlocks the given recurring payment, so installments won't be processed on their respective due dates- Specified by:
blockin interfaceRecurringPaymentService- Throws:
FrameworkException
-
cancel
public void cancel(RecurringPaymentActionDTO params) throws FrameworkException
Description copied from interface:RecurringPaymentServicePermanently cancels the given recurring payment, so installments will never be processed- Specified by:
cancelin interfaceRecurringPaymentService- Throws:
FrameworkException
-
getData
public RecurringPaymentData getData(Long id) throws FrameworkException
Description copied from interface:RecurringPaymentServiceReturns data about a recurring payment- Specified by:
getDatain interfaceRecurringPaymentService- Throws:
FrameworkException
-
getEditData
public RecurringPaymentEditData getEditData(@NotNull @NotNull RecurringPaymentVO vo) throws FrameworkException
Description copied from interface:RecurringPaymentServiceReturns data for edition about a recurring payment- Specified by:
getEditDatain interfaceRecurringPaymentService- Throws:
FrameworkException
-
isAccessible
public boolean isAccessible(RecurringPayment recurringPayment)
-
modify
public void modify(@NotNull @NotNull RecurringPaymentDTO params, String confirmationPassword) throws FrameworkExceptionDescription copied from interface:RecurringPaymentServiceModifies the given recurring payment- Specified by:
modifyin interfaceRecurringPaymentService- Throws:
FrameworkException
-
perform
public RecurringPaymentVO perform(PerformRecurringPaymentDTO parameters) throws FrameworkException
Description copied from interface:RecurringPaymentServicePerforms an recurring payment, returning its data- Specified by:
performin interfaceRecurringPaymentService- Throws:
FrameworkException- See Also:
PaymentService.perform(org.cyclos.model.banking.transactions.PerformPaymentDTO)
-
preview
public RecurringPaymentPreviewVO preview(PerformRecurringPaymentDTO parameters) throws FrameworkException
Description copied from interface:RecurringPaymentServicePreviews a recurring payment to be performed- Specified by:
previewin interfaceRecurringPaymentService- Throws:
FrameworkException
-
previewReceive
public RecurringPaymentPreviewVO previewReceive(PerformRecurringPaymentDTO parameters) throws FrameworkException, TransferException
Description copied from interface:RecurringPaymentServicePreviews a recurring payment to be received- Specified by:
previewReceivein interfaceRecurringPaymentService- Throws:
FrameworkExceptionTransferException
-
processFailure
public TransferVO processFailure(@NotNull @NotNull InstallmentActionDTO params) throws FrameworkException, TransferException
Description copied from interface:RecurringPaymentServiceProcesses a failed occurrence- Specified by:
processFailurein interfaceRecurringPaymentService- Throws:
FrameworkExceptionTransferException
-
receive
public RecurringPaymentVO receive(PerformRecurringPaymentDTO parameters) throws FrameworkException, TransferException
Description copied from interface:RecurringPaymentServiceReceives a recurring payment, returning its data- Specified by:
receivein interfaceRecurringPaymentService- Throws:
FrameworkExceptionTransferException- See Also:
PaymentService.perform(org.cyclos.model.banking.transactions.PerformPaymentDTO)
-
unblock
public void unblock(RecurringPaymentActionDTO params) throws FrameworkException
Description copied from interface:RecurringPaymentServiceUnlocks the given recurring payment, so installments will be processed on their respective due dates- Specified by:
unblockin interfaceRecurringPaymentService- Throws:
FrameworkException
-
resolveEntityCheck
protected EntityCheck<?> resolveEntityCheck()
Description copied from class:BaseServiceSecurityMust be implemented in order to return theEntityCheckmanaged by this security component, or null if none- Specified by:
resolveEntityCheckin classBaseServiceSecurity
-
-