Class UserSubscriptionSubscriber
- java.lang.Object
-
- org.silverpeas.core.subscription.service.AbstractSubscriptionSubscriber
-
- org.silverpeas.core.subscription.service.UserSubscriptionSubscriber
-
- All Implemented Interfaces:
SubscriptionSubscriber
public class UserSubscriptionSubscriber extends AbstractSubscriptionSubscriber
User: Yohann Chastagnier Date: 20/02/13
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UserSubscriptionSubscriber(String id)
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkValid()
This method checks the user subscriber integrity: user identifier MUST be defined user MUST exist user MUST not be an anonymous one or a guest onestatic UserSubscriptionSubscriber
from(String userId)
A way to get an instance of a user subscriber.-
Methods inherited from class org.silverpeas.core.subscription.service.AbstractSubscriptionSubscriber
equals, getId, getType, hashCode
-
-
-
-
Constructor Detail
-
UserSubscriptionSubscriber
protected UserSubscriptionSubscriber(String id)
Default constructor.- Parameters:
id
-
-
-
Method Detail
-
from
public static UserSubscriptionSubscriber from(String userId)
A way to get an instance of a user subscriber.- Parameters:
userId
-- Returns:
-
checkValid
public void checkValid() throws SubscribeRuntimeException
This method checks the user subscriber integrity:- user identifier MUST be defined
- user MUST exist
- user MUST not be an anonymous one or a guest one
- Throws:
SubscribeRuntimeException
- if not valid.
-
-