Constructor and Description |
---|
CartProductTransformService() |
Modifier and Type | Method and Description |
---|---|
List<String> |
cartItemsToKeys(List<CI> cis) |
String |
cartItemsToString(List<CI> cis)
|
String |
getCartItemKey(CI ci) |
static CartProductTransformService |
getInstance() |
String |
getProductKey(P p) |
List<P> |
getProductsForKeys(Collection keys,
javax.persistence.EntityManager em)
Convert
CartItem keys into actual Products |
void |
setCartItemKey(CI ci,
String key) |
List<CI> |
stringToCartItems(String val)
|
public static CartProductTransformService getInstance()
public List<P> getProductsForKeys(Collection keys, javax.persistence.EntityManager em)
CartItem
keys into actual Productspublic List<CI> stringToCartItems(String val)
public String cartItemsToString(List<CI> cis)
CartItem
into comma separated list of names within it.Copyright © 2018. All rights reserved.