Class PublicationSubscriptionResource
- java.lang.Object
-
- org.silverpeas.core.subscription.service.AbstractSubscriptionResource<WAPrimaryKey>
-
- org.silverpeas.core.subscription.service.PKSubscriptionResource
-
- org.silverpeas.core.contribution.publication.subscription.PublicationSubscriptionResource
-
- All Implemented Interfaces:
SubscriptionResource
public class PublicationSubscriptionResource extends PKSubscriptionResource
- Author:
- silveryocha
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PublicationSubscriptionResource(PublicationPK pk)
Default constructor
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PublicationSubscriptionResource
from(PublicationDetail publication)
A way to get an instance of a publication subscription resource.static PublicationSubscriptionResource
from(PublicationPK pk)
A way to get an instance of a publication subscription resource.-
Methods inherited from class org.silverpeas.core.subscription.service.PKSubscriptionResource
from
-
Methods inherited from class org.silverpeas.core.subscription.service.AbstractSubscriptionResource
equals, getId, getInstanceId, getPK, getType, hashCode
-
-
-
-
Constructor Detail
-
PublicationSubscriptionResource
protected PublicationSubscriptionResource(PublicationPK pk)
Default constructor- Parameters:
pk
- theResourceReference
to a publication.
-
-
Method Detail
-
from
public static PublicationSubscriptionResource from(PublicationPK pk)
A way to get an instance of a publication subscription resource.- Parameters:
pk
- a reference to a publication.- Returns:
- the corresponding
CalendarSubscriptionResource
instance.
-
from
public static PublicationSubscriptionResource from(PublicationDetail publication)
A way to get an instance of a publication subscription resource.- Parameters:
publication
- a reference to a publication.- Returns:
- the corresponding
CalendarSubscriptionResource
instance.
-
-