Package org.cyclos.impl.users
Class AdminProductConversionHandlerImpl
- 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<AdminProduct,AdminProductDTO,ActiveAdminProductsData>
-
- org.cyclos.impl.users.AdminProductConversionHandlerImpl
-
- All Implemented Interfaces:
ProductConversionHandler<AdminProduct,AdminProductDTO,ActiveAdminProductsData>
@Component public class AdminProductConversionHandlerImpl extends UserManagementProductConversionHandlerImpl<AdminProduct,AdminProductDTO,ActiveAdminProductsData>
-
-
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
-
-
Constructor Summary
Constructors Constructor Description AdminProductConversionHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductNaturegetProductNature()Returns the related product natureRolegetRole()Returns the related product rolevoidregisterHandlers()AdminProductDTOtoDTO(AdminProduct product)Converts the given entity into DTOAdminProducttoEntity(AdminProductDTO dto)Converts the given DTO to entity-
Methods inherited from class org.cyclos.impl.users.UserManagementProductConversionHandlerImpl
filterTransferFilters
-
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
-
-
-
-
Method Detail
-
getProductNature
public ProductNature getProductNature()
Description copied from interface:ProductConversionHandlerReturns the related product nature
-
getRole
public Role getRole()
Description copied from interface:ProductConversionHandlerReturns the related product role
-
registerHandlers
public void registerHandlers()
- Overrides:
registerHandlersin classUserManagementProductConversionHandlerImpl<AdminProduct,AdminProductDTO,ActiveAdminProductsData>
-
toDTO
public AdminProductDTO toDTO(AdminProduct product)
Description copied from interface:ProductConversionHandlerConverts the given entity into DTO- Specified by:
toDTOin interfaceProductConversionHandler<AdminProduct,AdminProductDTO,ActiveAdminProductsData>- Overrides:
toDTOin classUserManagementProductConversionHandlerImpl<AdminProduct,AdminProductDTO,ActiveAdminProductsData>
-
toEntity
public AdminProduct toEntity(AdminProductDTO dto)
Description copied from interface:ProductConversionHandlerConverts the given DTO to entity- Specified by:
toEntityin interfaceProductConversionHandler<AdminProduct,AdminProductDTO,ActiveAdminProductsData>- Overrides:
toEntityin classUserManagementProductConversionHandlerImpl<AdminProduct,AdminProductDTO,ActiveAdminProductsData>
-
-