Class PublicationSubscriptionBeanService
- java.lang.Object
-
- org.silverpeas.core.web.subscription.bean.AbstractSubscriptionBeanService
-
- org.silverpeas.core.web.publication.subscription.bean.PublicationSubscriptionBeanService
-
- All Implemented Interfaces:
Initialization
,SubscriptionBeanService
@Service public class PublicationSubscriptionBeanService extends AbstractSubscriptionBeanService
- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description PublicationSubscriptionBeanService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.silverpeas.kernel.bundle.LocalizationBundle
getBundle(String language)
protected List<SubscriptionResourceType>
getHandledSubscriptionResourceTypes()
Gets the list of subscription resource type that the implementation handles.String
getSubscriptionTypeListLabel(SubscriptionResourceType type, String language)
Gets the label of a list of the givenSubscriptionResourceType
instance.List<AbstractSubscriptionBean>
toSubscriptionBean(Collection<Subscription> subscriptions, String language)
Gets the list of subscription of a user.-
Methods inherited from class org.silverpeas.core.web.subscription.bean.AbstractSubscriptionBeanService
init
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.initialization.Initialization
getPriority, release
-
-
-
-
Method Detail
-
getHandledSubscriptionResourceTypes
protected List<SubscriptionResourceType> getHandledSubscriptionResourceTypes()
Description copied from class:AbstractSubscriptionBeanService
Gets the list of subscription resource type that the implementation handles.An empty returned list means that the default implementation is aimed.
- Specified by:
getHandledSubscriptionResourceTypes
in classAbstractSubscriptionBeanService
- Returns:
- a list of
SubscriptionResourceType
instances.
-
getSubscriptionTypeListLabel
public String getSubscriptionTypeListLabel(SubscriptionResourceType type, String language)
Description copied from interface:SubscriptionBeanService
Gets the label of a list of the givenSubscriptionResourceType
instance.- Specified by:
getSubscriptionTypeListLabel
in interfaceSubscriptionBeanService
- Overrides:
getSubscriptionTypeListLabel
in classAbstractSubscriptionBeanService
- Parameters:
type
- a type of subscription.language
- the aimed language.- Returns:
- the label
-
toSubscriptionBean
public List<AbstractSubscriptionBean> toSubscriptionBean(Collection<Subscription> subscriptions, String language)
Description copied from interface:SubscriptionBeanService
Gets the list of subscription of a user.- Specified by:
toSubscriptionBean
in interfaceSubscriptionBeanService
- Overrides:
toSubscriptionBean
in classAbstractSubscriptionBeanService
- Parameters:
subscriptions
- the subscriptions to convert.language
- the aimed language.- Returns:
- a list of
AbstractSubscriptionBean
.
-
getBundle
protected org.silverpeas.kernel.bundle.LocalizationBundle getBundle(String language)
- Overrides:
getBundle
in classAbstractSubscriptionBeanService
-
-