|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.subscribe.service.ResourceSubscriptionProvider
public class ResourceSubscriptionProvider
This common subscription provider can return results from a default ResourceSubscriptionService
implementations that compute basic
operations or from an implementation provided by the component itself in order to compute a
result that takes into account specific component rules.
Constructor Summary | |
---|---|
ResourceSubscriptionProvider()
|
Method Summary | |
---|---|
static SubscriptionSubscriberList |
getSubscribersOfComponent(String componentInstanceId)
Gets all subscribers registered on a component. |
static SubscriptionSubscriberList |
getSubscribersOfComponentAndTypedResource(String componentInstanceId,
SubscriptionResourceType resourceType,
String resourceId)
Gets all subscribers concerned by a specified resource represented by the given resource type and identifier. |
static SubscriptionSubscriberList |
getSubscribersOfSubscriptionResource(SubscriptionResource subscriptionResource)
Gets all subscribers concerned by a specified subscription resource. |
static void |
registerResourceSubscriptionService(AbstractResourceSubscriptionService service)
Registers a new implementation of ResourceSubscriptionService
to manage and to provide. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceSubscriptionProvider()
Method Detail |
---|
public static void registerResourceSubscriptionService(AbstractResourceSubscriptionService service)
ResourceSubscriptionService
to manage and to provide.
service
- the service instance to register.public static SubscriptionSubscriberList getSubscribersOfComponent(String componentInstanceId)
componentInstanceId
- the identifier of the component instance from which subscription
are requested.
SubscriptionSubscriberList
that
represents a collection of SubscriptionSubscriber
decorated
with useful tool methods.public static SubscriptionSubscriberList getSubscribersOfComponentAndTypedResource(String componentInstanceId, SubscriptionResourceType resourceType, String resourceId)
componentInstanceId
- the identifier of the component instance from which subscription
are requested.resourceType
- the type of the aimed resource.resourceId
- the identifier of the aime resource.
SubscriptionSubscriberList
that
represents a collection of SubscriptionSubscriber
decorated
with useful tool methods.public static SubscriptionSubscriberList getSubscribersOfSubscriptionResource(SubscriptionResource subscriptionResource)
subscriptionResource
- the instance of subscription resource.
SubscriptionSubscriberList
that
represents a collection of SubscriptionSubscriber
decorated
with useful tool methods.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |