public interface ProductConversionHandler<P extends Product,DTO extends ProductDTO,AD extends ActiveProductsData>
| Modifier and Type | Method and Description |
|---|---|
void |
fill(java.util.Collection<Permission> permissions,
AD activeData)
Fills the active data object
|
java.lang.Class<AD> |
getActiveDataType()
Returns the active data type handled by this object
|
java.lang.String |
getAdditionalCollectionForPermission(Permission permission)
Returns the additional collection mapping for the given permission, or null if none
|
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
|
java.lang.Class<DTO> |
getDTOType()
Returns the product DTO type handled by this object
|
java.lang.Class<P> |
getEntityType()
Returns the product entity type handled by this object
|
java.util.Collection<Permission> |
getPermissionsForProperty(Property<?,?> dtoProperty)
Returns the known permissions for a given DTO property
|
ProductNature |
getProductNature()
Returns the related product nature
|
java.lang.String |
getProductPropertyForDtoProperty(Property<?,?> dtoProperty)
Returns the product property which corresponds to the given DTO property
|
Role |
getRole()
Returns the related product role
|
DTO |
toDTO(P product)
Converts the given entity into DTO
|
P |
toEntity(DTO dto)
Converts the given DTO to entity
|
void fill(java.util.Collection<Permission> permissions, AD activeData)
java.lang.Class<AD> getActiveDataType()
java.lang.String getAdditionalCollectionForPermission(Permission permission)
Property<?,?> getDtoCollectionProperty(Permission permission)
java.lang.Class<DTO> getDTOType()
java.lang.Class<P> getEntityType()
java.util.Collection<Permission> getPermissionsForProperty(Property<?,?> dtoProperty)
ProductNature getProductNature()
java.lang.String getProductPropertyForDtoProperty(Property<?,?> dtoProperty)
Role getRole()