Class PKSubscription<R extends PKSubscriptionResource>
- java.lang.Object
-
- org.silverpeas.core.subscription.service.AbstractSubscription<R>
-
- org.silverpeas.core.subscription.service.PKSubscription<R>
-
- All Implemented Interfaces:
Subscription
- Direct Known Subclasses:
CalendarSubscription
,PublicationAliasSubscription
,PublicationSubscription
public class PKSubscription<R extends PKSubscriptionResource> extends AbstractSubscription<R>
A subscription related to a resource behind a Primary PK.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PKSubscription(String subscriberId, R subscriptionResource)
PK subscription constructor for which the type of the subscriber is USER and the subscriber is the one that handles the subscription.protected
PKSubscription(SubscriptionSubscriber subscriber, R subscriptionResource, String creatorId)
PK subscription constructor for a subscriber that handles the subscription too.
-
Method Summary
-
Methods inherited from class org.silverpeas.core.subscription.service.AbstractSubscription
equals, getCreationDate, getCreatorId, getResource, getSubscriber, getSubscriptionMethod, hashCode, setCreationDate, setSubscriptionMethod
-
-
-
-
Constructor Detail
-
PKSubscription
protected PKSubscription(String subscriberId, R subscriptionResource)
PK subscription constructor for which the type of the subscriber is USER and the subscriber is the one that handles the subscription.- Parameters:
subscriberId
- id of the subscribersubscriptionResource
- representation of the resource subscription
-
PKSubscription
protected PKSubscription(SubscriptionSubscriber subscriber, R subscriptionResource, String creatorId)
PK subscription constructor for a subscriber that handles the subscription too.- Parameters:
subscriber
- the subscribersubscriptionResource
- representation of the resource subscriptioncreatorId
- the user id that has handled the subscription
-
-