|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.stock.service.impl.AbstractService
fr.paris.lutece.plugins.stock.service.SubscriptionProductService
public class SubscriptionProductService
ProductService
| Constructor Summary | |
|---|---|
SubscriptionProductService()
|
|
| Method Summary | |
|---|---|
void |
doDeleteByIdProduct(String strIdProduct)
Delete subscriptions to a given product |
void |
doDeleteSubscriptionProduct(String strUserEmail,
String strIdProduct)
Delete a subscription for a product to an user |
void |
doSaveSubscriptionProduct(String strUserEmail,
String strIdProduct)
save the subscription to a product for an user |
List<String> |
getListEmailSubscriber(String strIdProduct)
Get the list of emails users that subscribed to a list given product |
List<Product> |
getProductsByUserSubscription(String strUserEmail)
Find the list of products a user subscribed to |
boolean |
hasUserSubscribedToProduct(String strUserEmail,
String strIdProduct)
Check if a user has subscribed to a given product |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubscriptionProductService()
| Method Detail |
|---|
public boolean hasUserSubscribedToProduct(String strUserEmail,
String strIdProduct)
hasUserSubscribedToProduct in interface ISubscriptionProductServicestrUserEmail - The email of the userstrIdProduct - The id of the product
public List<Product> getProductsByUserSubscription(String strUserEmail)
getProductsByUserSubscription in interface ISubscriptionProductServicestrUserEmail - The email of the user to get product subscriptions of
@Transactional(readOnly=false,
propagation=REQUIRES_NEW)
public void doSaveSubscriptionProduct(String strUserEmail,
String strIdProduct)
doSaveSubscriptionProduct in interface ISubscriptionProductServicestrUserEmail - The email of the user that made the subscriptionstrIdProduct - The id of the product the user subscribed to
public void doDeleteSubscriptionProduct(String strUserEmail,
String strIdProduct)
doDeleteSubscriptionProduct in interface ISubscriptionProductServicestrUserEmail - the email of the subscriptionstrIdProduct - The id of the product to unsubscribepublic void doDeleteByIdProduct(String strIdProduct)
doDeleteByIdProduct in interface ISubscriptionProductServicestrIdProduct - the id of the product to remove subscriptions ofpublic List<String> getListEmailSubscriber(String strIdProduct)
getListEmailSubscriber in interface ISubscriptionProductServicestrIdProduct - The id of the product
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||