public class ProductNotificationConverter extends java.lang.Object implements NotificationToEntityConverter
Modifier and Type | Field and Description |
---|---|
private ProductReadService |
productReadService |
private ShopRequestContextServiceForPrivateApiOnly |
shopService |
Constructor and Description |
---|
ProductNotificationConverter(ProductReadService productReadService,
ShopRequestContextServiceForPrivateApiOnly shopService) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<ProductApi> |
convert(NotificationEntity notification) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getScopes
private final ProductReadService productReadService
private final ShopRequestContextServiceForPrivateApiOnly shopService
@Inject public ProductNotificationConverter(ProductReadService productReadService, ShopRequestContextServiceForPrivateApiOnly shopService)
public java.util.Optional<ProductApi> convert(NotificationEntity notification)
convert
in interface Converter<NotificationEntity,java.util.Optional<?>>