Package org.silverpeas.core.subscription
Interface SubscriptionResourceType
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
SubscriptionContributionType
public interface SubscriptionResourceType extends Serializable
The type of a resource that can be targeted by a subscription.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static SubscriptionResourceType
from(String name)
String
getName()
Gets the name of the subscription type.default boolean
isValid()
Is this type is valid?int
priority()
Indicates a priority which can be used by UI as example.
-
-
-
Method Detail
-
isValid
default boolean isValid()
Is this type is valid? It is valid if the type of the resource isn't unknown.- Returns:
- true if the type of the resource targeted by a subscription is known, false otherwise.
-
priority
int priority()
Indicates a priority which can be used by UI as example.- Returns:
- an integer which lowest value means the highest priority.
-
getName
String getName()
Gets the name of the subscription type.'@' character is not authorized because it is used internally for technical purposes.
- Returns:
- a string.
-
from
static SubscriptionResourceType from(String name)
-
-