Interface ProductConversionHandler<P extends Product,​DTO extends ProductDTO,​AD extends ActiveProductsData>

    • Method Detail

      • getActiveDataType

        Class<AD> getActiveDataType()
        Returns the active data type handled by this object
      • getAdditionalCollectionForPermission

        String getAdditionalCollectionForPermission​(Permission permission)
        Returns the additional collection mapping for the given permission, or null if none
      • getDtoCollectionProperty

        Property<?,​?> getDtoCollectionProperty​(Permission permission)
        Returns the DTO property which represents the related value collection for the given property, if any, or null if not applicable
      • getDTOType

        Class<DTO> getDTOType()
        Returns the product DTO type handled by this object
      • getEntityType

        Class<P> getEntityType()
        Returns the product entity type handled by this object
      • getPermissionsForProperty

        Collection<Permission> getPermissionsForProperty​(Property<?,​?> dtoProperty)
        Returns the known permissions for a given DTO property
      • getProductNature

        ProductNature getProductNature()
        Returns the related product nature
      • getProductPropertyForDtoProperty

        String getProductPropertyForDtoProperty​(Property<?,​?> dtoProperty)
        Returns the product property which corresponds to the given DTO property
      • getRole

        Role getRole()
        Returns the related product role
      • toDTO

        DTO toDTO​(P product)
        Converts the given entity into DTO
      • toEntity

        P toEntity​(DTO dto)
        Converts the given DTO to entity