Package org.cyclos.impl.users
Class UserManagementProductConversionHandlerImpl<P extends UserManagementProduct,DTO extends UserManagementProductDTO,AD extends ActiveProductsData>
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseNetworkedHandlerImpl
-
- org.cyclos.impl.users.ProductConversionHandlerImpl<P,DTO,AD>
-
- org.cyclos.impl.users.UserManagementProductConversionHandlerImpl<P,DTO,AD>
-
- All Implemented Interfaces:
ProductConversionHandler<P,DTO,AD>
- Direct Known Subclasses:
AdminProductConversionHandlerImpl,BrokerProductConversionHandlerImpl
public abstract class UserManagementProductConversionHandlerImpl<P extends UserManagementProduct,DTO extends UserManagementProductDTO,AD extends ActiveProductsData> extends ProductConversionHandlerImpl<P,DTO,AD>
Base implementation forProductConversionHandlerforUserManagementProducts subclasses
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.users.ProductConversionHandlerImpl
contactCustomFieldService, passwordTypeService, principalTypeService, productService, recordFieldHandler, recordTypeService, transferStatusFlowService, userCustomFieldService, voucherConfigurationService
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<TransferFilterWithAccountTypeVO>filterTransferFilters(Collection<TransferFilterWithAccountTypeVO> transferFilters, Collection<? extends AccountType> accounts)Filters the given transfer filters according to the selected system accountsvoidregisterHandlers()DTOtoDTO(P product)Converts the given entity into DTOPtoEntity(DTO dto)Converts the given DTO to entity-
Methods inherited from class org.cyclos.impl.users.ProductConversionHandlerImpl
enssureDTOConsistency, fill, filterChargebackTypes, filterPaymentTypes, getActiveDataType, getAdditionalCollectionForPermission, getDtoCollectionProperty, getDTOType, getEntityType, getPermissionHandlers, getPermissionsForProperty, getProductPropertyForDtoProperty, hasPasswordActions, register, registerAdditionalCollectionMapping, registerCommonMemberOrBroker, registerPropertyMapping
-
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.impl.users.ProductConversionHandler
getProductNature, getRole
-
-
-
-
Method Detail
-
registerHandlers
public void registerHandlers()
- Overrides:
registerHandlersin classProductConversionHandlerImpl<P extends UserManagementProduct,DTO extends UserManagementProductDTO,AD extends ActiveProductsData>
-
toDTO
public DTO toDTO(P product)
Description copied from interface:ProductConversionHandlerConverts the given entity into DTO- Specified by:
toDTOin interfaceProductConversionHandler<P extends UserManagementProduct,DTO extends UserManagementProductDTO,AD extends ActiveProductsData>- Overrides:
toDTOin classProductConversionHandlerImpl<P extends UserManagementProduct,DTO extends UserManagementProductDTO,AD extends ActiveProductsData>
-
toEntity
public P toEntity(DTO dto)
Description copied from interface:ProductConversionHandlerConverts the given DTO to entity- Specified by:
toEntityin interfaceProductConversionHandler<P extends UserManagementProduct,DTO extends UserManagementProductDTO,AD extends ActiveProductsData>- Overrides:
toEntityin classProductConversionHandlerImpl<P extends UserManagementProduct,DTO extends UserManagementProductDTO,AD extends ActiveProductsData>
-
filterTransferFilters
protected Set<TransferFilterWithAccountTypeVO> filterTransferFilters(Collection<TransferFilterWithAccountTypeVO> transferFilters, Collection<? extends AccountType> accounts)
Filters the given transfer filters according to the selected system accounts
-
-