Package org.cyclos.impl.banking
Class AccountFeeServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<AccountFee,QAccountFee,AccountFeeDTO,AccountFeeData,AccountTypeVO>
-
- org.cyclos.impl.banking.AccountFeeServiceImpl
-
- All Implemented Interfaces:
AccountFeeServiceLocal,CRUDServiceLocal<AccountFee,AccountFeeDTO,AccountFeeData,AccountTypeVO>,AccountFeeService,CRUDService<AccountFeeDTO,AccountFeeData,AccountTypeVO>,CRUDWithConfirmationPasswordService<AccountFeeDTO,AccountFeeData,AccountTypeVO>,Service
@Service public class AccountFeeServiceImpl extends CRUDServiceImpl<AccountFee,QAccountFee,AccountFeeDTO,AccountFeeData,AccountTypeVO> implements AccountFeeServiceLocal
Implementation forAccountFeeService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.CRUDServiceImpl
$, ATTR_CURRENT_COPY, cacheHandler, dtoClass, entityClass, extensionPointService, idPath, internalNamePath, namePath, ownerEntityIdPath, ownerEntityPath, ownerEntityPropertyName, passwordHandler, richTextHandler, withConfirmationPassword
-
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 AccountFeeServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AccountFeeDatagetData(AccountFee accountFee)Returns details data for the given entityList<AccountFee>listScheduledFeesReservingAmount(UserAccount account)Returns, for the given account, the fees which are scheduled, enabled and set to reserve the amountList<AccountFee>listVisible()Returns all visible account fees (on all managed account types)AccountFeenewEntity(AccountTypeVO accountTypeVO)Should be implemented in order to instantiate a new entity based on the given context parametersprotected ObjectonBeforeSave(AccountFee accountFee, AccountFee currentCopy)May be overridden in order to perform custom logic before saving an entity.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkIntegerresolveBigDecimalScale(AccountType accountType, AccountFeeChargeMode chargeMode)It resolves the scale for the specified account fee's account type and charge modeUserAccountTyperesolveUserAccountType(AccountFee accountFee)Returns theUserAccountTypefor the given user involved in the given fee.protected ValidatorresolveValidator(AccountFeeDTO dto)<T> Page<T>search(Class<T> returnType, AccountFeeQuery params)Searches for account fees returning a page of the specified type.Page<AccountFeeVO>search(AccountFeeQuery params)Searches for account fees-
Methods inherited from class org.cyclos.impl.CRUDServiceImpl
addCustomInternalNameValidations, addCustomNameValidations, checkConfirmationPassword, doRemove, find, findAll, from, getConfirmationPasswordInput, getConfirmationPasswordInputForRemove, getData, getDataForNew, getDeviceConfirmationParams, getEntityClass, getEntityInternalNameKey, getExcludedPropertiesToDTO, getExcludedPropertiesToEntity, getNameLabel, getUniqueInternalNameQuery, getUniqueNameQuery, isEntityInternalNameRequired, isNameRequired, load, logEntity, onAfterRemove, onAfterSave, onBeforeRemove, preProcessCurrentCopy, remove, remove, removeAll, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveDTOType, resolveEntityType, resolveExtensionPointAccessor, save, saveOrder, saveSkippingEntityLog, saveWithConfirmationPassword, shouldCheckConfirmationPassword, subClassMappings, toDTO, toEntity, validate
-
Methods inherited from class org.cyclos.impl.BaseServiceImpl
initializeNetworkMappings
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
-
-
-
Method Detail
-
listScheduledFeesReservingAmount
public List<AccountFee> listScheduledFeesReservingAmount(UserAccount account)
Description copied from interface:AccountFeeServiceLocalReturns, for the given account, the fees which are scheduled, enabled and set to reserve the amount- Specified by:
listScheduledFeesReservingAmountin interfaceAccountFeeServiceLocal
-
listVisible
public List<AccountFee> listVisible() throws FrameworkException
Description copied from interface:AccountFeeServiceLocalReturns all visible account fees (on all managed account types)- Specified by:
listVisiblein interfaceAccountFeeServiceLocal- Throws:
FrameworkException
-
newEntity
public AccountFee newEntity(AccountTypeVO accountTypeVO)
Description copied from class:CRUDServiceImplShould be implemented in order to instantiate a new entity based on the given context parameters- Specified by:
newEntityin interfaceCRUDServiceLocal<AccountFee,AccountFeeDTO,AccountFeeData,AccountTypeVO>- Specified by:
newEntityin classCRUDServiceImpl<AccountFee,QAccountFee,AccountFeeDTO,AccountFeeData,AccountTypeVO>
-
resolveBigDecimalScale
public Integer resolveBigDecimalScale(AccountType accountType, AccountFeeChargeMode chargeMode) throws FrameworkException
Description copied from interface:AccountFeeServiceLocalIt resolves the scale for the specified account fee's account type and charge mode- Specified by:
resolveBigDecimalScalein interfaceAccountFeeServiceLocal- Throws:
FrameworkException
-
resolveUserAccountType
public UserAccountType resolveUserAccountType(AccountFee accountFee)
Description copied from interface:AccountFeeServiceLocalReturns theUserAccountTypefor the given user involved in the given fee. Account fees may be paid from or to system.- Specified by:
resolveUserAccountTypein interfaceAccountFeeServiceLocal
-
search
public Page<AccountFeeVO> search(AccountFeeQuery params)
Description copied from interface:AccountFeeServiceSearches for account fees- Specified by:
searchin interfaceAccountFeeService
-
search
public <T> Page<T> search(Class<T> returnType, AccountFeeQuery params) throws FrameworkException
Description copied from interface:AccountFeeServiceLocalSearches for account fees returning a page of the specified type.- Specified by:
searchin interfaceAccountFeeServiceLocal- Throws:
FrameworkException
-
getData
protected AccountFeeData getData(AccountFee accountFee)
Description copied from class:CRUDServiceImplReturns details data for the given entity- Specified by:
getDatain classCRUDServiceImpl<AccountFee,QAccountFee,AccountFeeDTO,AccountFeeData,AccountTypeVO>
-
onBeforeSave
protected Object onBeforeSave(AccountFee accountFee, AccountFee currentCopy)
Description copied from class:CRUDServiceImplMay be overridden in order to perform custom logic before saving an entity. Any returned value will be passed to theCRUDServiceImpl.onAfterSave(BaseEntity, BaseEntity, Object)method- Overrides:
onBeforeSavein classCRUDServiceImpl<AccountFee,QAccountFee,AccountFeeDTO,AccountFeeData,AccountTypeVO>
-
registerNetworkMappings
protected void registerNetworkMappings(NetworkPathRegistry networkPathRegistry)
Description copied from class:BaseServiceImplNeeds to be overridden by subclasses to register the path up to the network- Specified by:
registerNetworkMappingsin classBaseServiceImpl
-
resolveValidator
protected Validator resolveValidator(AccountFeeDTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<AccountFee,QAccountFee,AccountFeeDTO,AccountFeeData,AccountTypeVO>
-
-