Package org.cyclos.security.banking
Class ChargebackServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.banking.ChargebackServiceSecurity
-
- All Implemented Interfaces:
ChargebackService,Service
@Security public class ChargebackServiceSecurity extends BaseServiceSecurity implements ChargebackService
Security forChargebackService
-
-
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 ChargebackServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanChargeback(Transfer transfer)Longchargeback(TransferActionDTO params)Performs the chargeback for the given transfer, returning the chargeback id.ChargebackDatagetData(Long id)Returns details about a chargebackprotected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if none-
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, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
canChargeback
public boolean canChargeback(Transfer transfer)
-
chargeback
public Long chargeback(TransferActionDTO params) throws FrameworkException, TransferException
Description copied from interface:ChargebackServicePerforms the chargeback for the given transfer, returning the chargeback id. The chargeback transfer is from / to the same original transfer, but the amount is negative- Specified by:
chargebackin interfaceChargebackService- Throws:
IllegalActionException- When the given transfer has already been charged backInsufficientBalanceException- When the source account, or source account for any generated fee is limited and had insufficient balance for such a paymentMaxAmountPerDayExceededException- When the maximum amount for payments of this transfer type has been exceeded, according to the transfer type configurationUpperCreditLimitReachedException- When the destination account, or destination account for any generated fee is limited and would have more balance than the allowed maximumFrameworkExceptionTransferException
-
getData
public ChargebackData getData(Long id) throws FrameworkException
Description copied from interface:ChargebackServiceReturns details about a chargeback- Specified by:
getDatain interfaceChargebackService- 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
-
-