Class SubscriptionCategory
- java.lang.Object
-
- org.silverpeas.web.pdcsubscription.control.SubscriptionCategory
-
- Direct Known Subclasses:
ContributionSubscriptionCategory
,DefaultSubscriptionCategory
public abstract class SubscriptionCategory extends Object
This abstract class permits to manage categories into personal page of user subscriptions.By this way, there is a separation between the list of
SubscriptionResourceType
and the categories displayed to a user.- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description SubscriptionCategory(PdcSubscriptionSessionController ctrl)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected PdcSubscriptionSessionController
getCtrl()
abstract List<SubscriptionResourceType>
getHandledTypes()
Gets the list ofSubscriptionResourceType
the category handles.abstract String
getId()
Gets the identifier of the category.abstract String
getLabel()
Gets the label of the category.abstract String
getResourceTypeLabel()
Gets the label of the type of resources handled into category.abstract int
priority()
The priority into which the category MUST be displayed.
-
-
-
Constructor Detail
-
SubscriptionCategory
public SubscriptionCategory(PdcSubscriptionSessionController ctrl)
-
-
Method Detail
-
getId
public abstract String getId()
Gets the identifier of the category.- Returns:
- a string.
-
priority
public abstract int priority()
The priority into which the category MUST be displayed.- Returns:
- an integer which the lowest value means the highest priority.
-
getLabel
public abstract String getLabel()
Gets the label of the category.- Returns:
- a string.
-
getResourceTypeLabel
public abstract String getResourceTypeLabel()
Gets the label of the type of resources handled into category.- Returns:
- a string.
-
getHandledTypes
public abstract List<SubscriptionResourceType> getHandledTypes()
Gets the list ofSubscriptionResourceType
the category handles.- Returns:
- a list of
SubscriptionResourceType
instances.
-
getCtrl
protected PdcSubscriptionSessionController getCtrl()
-
-