Package org.cyclos.impl.banking
Class TransferFilterServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.CRUDServiceImpl<TransferFilter,QTransferFilter,TransferFilterDTO,TransferFilterData,AccountTypeVO>
-
- org.cyclos.impl.banking.TransferFilterServiceImpl
-
- All Implemented Interfaces:
TransferFilterServiceLocal,CRUDServiceLocal<TransferFilter,TransferFilterDTO,TransferFilterData,AccountTypeVO>,TransferFilterService,CRUDService<TransferFilterDTO,TransferFilterData,AccountTypeVO>,CRUDWithConfirmationPasswordService<TransferFilterDTO,TransferFilterData,AccountTypeVO>,Service
@Service public class TransferFilterServiceImpl extends CRUDServiceImpl<TransferFilter,QTransferFilter,TransferFilterDTO,TransferFilterData,AccountTypeVO> implements TransferFilterServiceLocal
implementation forTransferFilterService
-
-
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 TransferFilterServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TransferFilterDatagetData(TransferFilter filter)Returns details data for the given entityList<TransferFilterWithAccountTypeVO>list(AccountTypeVO fromAccountTypeVO, AccountTypeVO toAccountTypeVO)Returns the transfer filters from the given source account type to the given destination account type, taking into account the logged user permissions over transfer filtersTransferFilternewEntity(AccountTypeVO accountTypeVO)Should be implemented in order to instantiate a new entity based on the given context parametersprotected voidpreProcessCurrentCopy(TransferFilterDTO dto, TransferFilter currentCopy)This method is invoked before saving the entity and also, if the log is enabled, before removing.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkprotected ValidatorresolveValidator(TransferFilterDTO dto)<T> Page<T>search(Class<T> resultType, TransferFilterQuery params)Searches for transfer filters, according to the given query returning a page of the specified type.Page<TransferFilterVO>search(TransferFilterQuery query)Searches for transfer filters, according to the given query-
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, onBeforeSave, 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
-
list
public List<TransferFilterWithAccountTypeVO> list(AccountTypeVO fromAccountTypeVO, AccountTypeVO toAccountTypeVO)
Description copied from interface:TransferFilterServiceReturns the transfer filters from the given source account type to the given destination account type, taking into account the logged user permissions over transfer filters- Specified by:
listin interfaceTransferFilterService
-
newEntity
public TransferFilter 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<TransferFilter,TransferFilterDTO,TransferFilterData,AccountTypeVO>- Specified by:
newEntityin classCRUDServiceImpl<TransferFilter,QTransferFilter,TransferFilterDTO,TransferFilterData,AccountTypeVO>
-
search
public <T> Page<T> search(Class<T> resultType, TransferFilterQuery params)
Description copied from interface:TransferFilterServiceLocalSearches for transfer filters, according to the given query returning a page of the specified type.- Specified by:
searchin interfaceTransferFilterServiceLocal
-
search
public Page<TransferFilterVO> search(TransferFilterQuery query)
Description copied from interface:TransferFilterServiceSearches for transfer filters, according to the given query- Specified by:
searchin interfaceTransferFilterService
-
getData
protected TransferFilterData getData(TransferFilter filter) throws FrameworkException
Description copied from class:CRUDServiceImplReturns details data for the given entity- Specified by:
getDatain classCRUDServiceImpl<TransferFilter,QTransferFilter,TransferFilterDTO,TransferFilterData,AccountTypeVO>- Throws:
FrameworkException
-
preProcessCurrentCopy
protected void preProcessCurrentCopy(TransferFilterDTO dto, TransferFilter currentCopy)
Description copied from class:CRUDServiceImplThis method is invoked before saving the entity and also, if the log is enabled, before removing. Subclasses can override it to fetch lazy relationships, etc as the current copy will be detached. In case of removing (i.e the log is enabled for this entity) the dto parameter will be null.- Overrides:
preProcessCurrentCopyin classCRUDServiceImpl<TransferFilter,QTransferFilter,TransferFilterDTO,TransferFilterData,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(TransferFilterDTO dto)
- Specified by:
resolveValidatorin classCRUDServiceImpl<TransferFilter,QTransferFilter,TransferFilterDTO,TransferFilterData,AccountTypeVO>
-
-