Package org.cyclos.security.banking
Class PaymentRequestServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.banking.PaymentRequestServiceSecurity
-
- All Implemented Interfaces:
PaymentRequestService,Service
@Security public class PaymentRequestServiceSecurity extends BaseServiceSecurity implements PaymentRequestService
Security layer forPaymentRequestService
-
-
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 PaymentRequestServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentRequestVOaccept(AcceptPaymentRequestDTO params)Accepts a payment request.voidcancel(PaymentRequestActionDTO params)Cancels a payment request (as payee)voidchangeExpirationDate(ChangePaymentRequestExpirationDateDTO params)Changes the payment request's expiration date as payee, admin or broker only if permissions are granted.voiddeny(PaymentRequestActionDTO params)Denies a payment request (as payer)PaymentRequestDatagetData(Long id)Returns data about a payment requestRequestPaymentDatagetRequestData(InternalAccountOwner payee, InternalAccountOwner payer, TransferTypeVO paymentType)Returns data used to request a paymentRequestPaymentPayerDatagetRequestPaymentPayerData(InternalAccountOwner payee, InternalAccountOwner payer)Returns data used to request a payment from a specific ownerRequestPaymentTypeDatagetRequestPaymentTypeData(InternalAccountOwner payee, InternalAccountOwner payer, TransferTypeVO transferTypeVO)Returns the data for a specific payment type on a payment request from / to the given ownersbooleanisAccessible(PaymentRequest paymentRequest)AcceptPaymentRequestPreviewVOpreviewAccept(PaymentRequestVO paymentRequestVO)Previews the payment which would be performed when accepting the given payment requestPaymentRequestVOreschedule(AcceptPaymentRequestDTO params)Reschedules a payment request.protected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if nonePaymentRequestVOsend(SendPaymentRequestDTO params)Sends a payment request-
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
-
accept
public PaymentRequestVO accept(AcceptPaymentRequestDTO params) throws FrameworkException
Description copied from interface:PaymentRequestServiceAccepts a payment request. May process immediately or schedule for processing in a future date. Returns the updated payment request information.- Specified by:
acceptin interfacePaymentRequestService- Throws:
FrameworkException- See Also:
PaymentService.perform(org.cyclos.model.banking.transactions.PerformPaymentDTO)
-
cancel
public void cancel(PaymentRequestActionDTO params) throws FrameworkException
Description copied from interface:PaymentRequestServiceCancels a payment request (as payee)- Specified by:
cancelin interfacePaymentRequestService- Throws:
FrameworkException
-
changeExpirationDate
public void changeExpirationDate(ChangePaymentRequestExpirationDateDTO params) throws FrameworkException
Description copied from interface:PaymentRequestServiceChanges the payment request's expiration date as payee, admin or broker only if permissions are granted.- Specified by:
changeExpirationDatein interfacePaymentRequestService- Throws:
FrameworkException
-
deny
public void deny(PaymentRequestActionDTO params) throws FrameworkException
Description copied from interface:PaymentRequestServiceDenies a payment request (as payer)- Specified by:
denyin interfacePaymentRequestService- Throws:
FrameworkException
-
getData
public PaymentRequestData getData(Long id) throws FrameworkException
Description copied from interface:PaymentRequestServiceReturns data about a payment request- Specified by:
getDatain interfacePaymentRequestService- Throws:
FrameworkException
-
getRequestData
public RequestPaymentData getRequestData(InternalAccountOwner payee, InternalAccountOwner payer, TransferTypeVO paymentType) throws FrameworkException
Description copied from interface:PaymentRequestServiceReturns data used to request a payment- Specified by:
getRequestDatain interfacePaymentRequestService- Throws:
FrameworkException
-
getRequestPaymentPayerData
public RequestPaymentPayerData getRequestPaymentPayerData(InternalAccountOwner payee, InternalAccountOwner payer) throws FrameworkException
Description copied from interface:PaymentRequestServiceReturns data used to request a payment from a specific owner- Specified by:
getRequestPaymentPayerDatain interfacePaymentRequestService- Throws:
FrameworkException
-
getRequestPaymentTypeData
public RequestPaymentTypeData getRequestPaymentTypeData(InternalAccountOwner payee, InternalAccountOwner payer, TransferTypeVO transferTypeVO) throws FrameworkException
Description copied from interface:PaymentRequestServiceReturns the data for a specific payment type on a payment request from / to the given owners- Specified by:
getRequestPaymentTypeDatain interfacePaymentRequestService- Throws:
FrameworkException
-
isAccessible
public boolean isAccessible(PaymentRequest paymentRequest)
-
previewAccept
public AcceptPaymentRequestPreviewVO previewAccept(PaymentRequestVO paymentRequestVO) throws FrameworkException
Description copied from interface:PaymentRequestServicePreviews the payment which would be performed when accepting the given payment request- Specified by:
previewAcceptin interfacePaymentRequestService- Throws:
FrameworkException
-
reschedule
public PaymentRequestVO reschedule(AcceptPaymentRequestDTO params) throws FrameworkException
Description copied from interface:PaymentRequestServiceReschedules a payment request. If the new processing date is null, will process the payment request immediately. Otherwise, changes the processing date for the given one.- Specified by:
reschedulein interfacePaymentRequestService- Throws:
FrameworkException
-
send
public PaymentRequestVO send(SendPaymentRequestDTO params) throws FrameworkException
Description copied from interface:PaymentRequestServiceSends a payment request- Specified by:
sendin interfacePaymentRequestService- 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
-
-