Class DefaultSubscriptionCategory
- java.lang.Object
-
- org.silverpeas.web.pdcsubscription.control.SubscriptionCategory
-
- org.silverpeas.web.pdcsubscription.control.DefaultSubscriptionCategory
-
public class DefaultSubscriptionCategory extends SubscriptionCategory
The default implementation is directly mapped to aSubscriptionResourceType
instance.- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description DefaultSubscriptionCategory(PdcSubscriptionSessionController ctrl, SubscriptionResourceType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SubscriptionResourceType>
getHandledTypes()
Gets the list ofSubscriptionResourceType
the category handles.String
getId()
Gets the identifier of the category.String
getLabel()
Gets the label of the category.String
getResourceTypeLabel()
Gets the label of the type of resources handled into category.int
priority()
The priority into which the category MUST be displayed.-
Methods inherited from class org.silverpeas.web.pdcsubscription.control.SubscriptionCategory
getCtrl
-
-
-
-
Constructor Detail
-
DefaultSubscriptionCategory
public DefaultSubscriptionCategory(PdcSubscriptionSessionController ctrl, SubscriptionResourceType type)
-
-
Method Detail
-
getId
public String getId()
Description copied from class:SubscriptionCategory
Gets the identifier of the category.- Specified by:
getId
in classSubscriptionCategory
- Returns:
- a string.
-
priority
public int priority()
Description copied from class:SubscriptionCategory
The priority into which the category MUST be displayed.- Specified by:
priority
in classSubscriptionCategory
- Returns:
- an integer which the lowest value means the highest priority.
-
getLabel
public String getLabel()
Description copied from class:SubscriptionCategory
Gets the label of the category.- Specified by:
getLabel
in classSubscriptionCategory
- Returns:
- a string.
-
getResourceTypeLabel
public String getResourceTypeLabel()
Description copied from class:SubscriptionCategory
Gets the label of the type of resources handled into category.- Specified by:
getResourceTypeLabel
in classSubscriptionCategory
- Returns:
- a string.
-
getHandledTypes
public List<SubscriptionResourceType> getHandledTypes()
Description copied from class:SubscriptionCategory
Gets the list ofSubscriptionResourceType
the category handles.- Specified by:
getHandledTypes
in classSubscriptionCategory
- Returns:
- a list of
SubscriptionResourceType
instances.
-
-