Class AbstractCalendarSubscriptionService
- java.lang.Object
-
- org.silverpeas.core.subscription.service.AbstractResourceSubscriptionService
-
- org.silverpeas.core.calendar.subscription.AbstractCalendarSubscriptionService
-
- All Implemented Interfaces:
Initialization
,ResourceSubscriptionService
public abstract class AbstractCalendarSubscriptionService extends AbstractResourceSubscriptionService
As the class is implementingInitialization
, no annotation appears in order to be taken into account by CDI.
The service will be taken in charge by initialization treatments.- Author:
- silveryocha
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.silverpeas.core.subscription.ResourceSubscriptionService
ResourceSubscriptionService.Constants
-
-
Constructor Summary
Constructors Constructor Description AbstractCalendarSubscriptionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionSubscriberList
getSubscribersOfComponentAndTypedResource(String componentInstanceId, SubscriptionResourceType resourceType, String resourceId, SubscriberDirective... directives)
Gets all subscribers concerned by a specified resource represented by the given resource type and identifier.
The inheritance of subscription is handled by this method.void
init()
Initializes some resources required by the services or performs some initialization processes at Silverpeas startup.-
Methods inherited from class org.silverpeas.core.subscription.service.AbstractResourceSubscriptionService
addAllSubscribersAboutNodePath, getHandledComponentName, getNodeService, getSubscribersOfComponent, getSubscribersOfSubscriptionResource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.initialization.Initialization
getPriority, release
-
-
-
-
Method Detail
-
init
public void init() throws Exception
Description copied from interface:Initialization
Initializes some resources required by the services or performs some initialization processes at Silverpeas startup.- Specified by:
init
in interfaceInitialization
- Overrides:
init
in classAbstractResourceSubscriptionService
- Throws:
Exception
- if an error occurs during the initialization process. In this case the Silverpeas startup fails.
-
getSubscribersOfComponentAndTypedResource
public SubscriptionSubscriberList getSubscribersOfComponentAndTypedResource(String componentInstanceId, SubscriptionResourceType resourceType, String resourceId, SubscriberDirective... directives)
Description copied from interface:ResourceSubscriptionService
Gets all subscribers concerned by a specified resource represented by the given resource type and identifier.
The inheritance of subscription is handled by this method. So if the aimed subscription resource has a parent subscription resource, subscribers of both of them are returned.- Specified by:
getSubscribersOfComponentAndTypedResource
in interfaceResourceSubscriptionService
- Overrides:
getSubscribersOfComponentAndTypedResource
in classAbstractResourceSubscriptionService
- Parameters:
componentInstanceId
- the identifier of the component instance from which subscription are requested.resourceType
- the type of the aimed resource.resourceId
- the identifier of the aimed resource.directives
- some directive to apply when it is necessary.- Returns:
- an instance of
SubscriptionSubscriberList
that represents a collection ofSubscriptionSubscriber
decorated with useful tool methods.
-
-