Class SubscriptionBeanProvider
- java.lang.Object
-
- org.silverpeas.core.web.subscription.bean.SubscriptionBeanProvider
-
public class SubscriptionBeanProvider extends Object
This common subscription bean provider can return results from a defaultSubscriptionBeanService
implementations that compute basic operations or from an implementation provided by the component itself in order to compute a result that takes into account specific component rules.- Author:
- silveryocha
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<AbstractSubscriptionBean>
getBySubscription(Subscription subscription, String language)
static List<AbstractSubscriptionBean>
getByUserSubscriberAndSubscriptionResourceType(SubscriptionResourceType type, String userId, String language)
static String
getSubscriptionTypeListLabel(SubscriptionResourceType type, String language)
static void
registerSubscriptionBeanService(AbstractSubscriptionBeanService service)
Registers a new implementation ofSubscriptionBeanService
to manage and to provide.
-
-
-
Method Detail
-
registerSubscriptionBeanService
public static void registerSubscriptionBeanService(AbstractSubscriptionBeanService service)
Registers a new implementation ofSubscriptionBeanService
to manage and to provide.- Parameters:
service
- the service instance to register.
-
getSubscriptionTypeListLabel
public static String getSubscriptionTypeListLabel(SubscriptionResourceType type, String language)
-
getByUserSubscriberAndSubscriptionResourceType
public static List<AbstractSubscriptionBean> getByUserSubscriberAndSubscriptionResourceType(SubscriptionResourceType type, String userId, String language)
-
getBySubscription
public static Optional<AbstractSubscriptionBean> getBySubscription(Subscription subscription, String language)
-
-