|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.services.notification.SubscribersNotifierAdapterSupport
public abstract class SubscribersNotifierAdapterSupport
This is a support class to extend for classes wanting to use SubscribersNotifier
.
Field Summary | |
---|---|
static java.lang.String |
EVENT_PARAM
Name of configurable parameter denoting the key of event to notity. |
protected static ParameterDefinition |
eventParam
ParameterDefinition representation of parameter denoting the key of event to notify. |
protected java.lang.String |
name
The name identifying this notifier adapter. |
protected static java.util.List |
parameters
List of ParameterDefinition s supported by this adapter |
static java.lang.String |
RESOURCE_PARAM
Name of configuratble parameter denoting the key of resource to notifiy event for. |
protected static ParameterDefinition |
resourceParam
ParameterDefinition representation of parameter denoting the key of resource to notify event for. |
Constructor Summary | |
---|---|
protected |
SubscribersNotifierAdapterSupport()
Creates a new instance of SubscribersNotifierAdapterSupport. |
Method Summary | |
---|---|
java.lang.String |
getEventKey()
|
java.lang.String |
getName()
Retrieve the name of this adapter. |
ParameterDefinition[] |
getParameterDefinitions()
Get this object parameters definitions as an array |
java.util.List |
getParameterDefinitionsAsList()
Get this object parameters definitions as a list |
java.lang.String |
getResourceKey()
|
abstract SubscribersNotifier |
getSubscribersNotifier()
Subclasses must implement this method in order to specify the Notifier implementation to use (and thus the publication media). |
protected RemoteMailingList |
retrieveMailingList(java.lang.String eventKey,
java.lang.String resourceId)
Connect to remote reporting service and retrieve mailing list |
protected ReportingService |
retrieveReportingService()
Helper method for retrieving remote ReportingService. |
protected RemoteSubscriber[] |
retrieveSubscribers(RemoteMailingList list)
Connect to remote reporting service and retrieve subscribers |
void |
setEventKey(java.lang.String eventKey)
|
void |
setName(java.lang.String name)
Set the name identifying this adapter. |
void |
setParameter(ParameterDefinition parameter,
java.lang.String parameterValue)
Set the value of a parameter using its definitions |
void |
setParameter(java.lang.String parameterName,
java.lang.String parameterValue)
Set the value of a parameter using its nama |
void |
setParameters(java.util.Properties parameters)
Convenient methods for setting all attributes values using a single method. |
void |
setResourceKey(java.lang.String resourceKey)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EVENT_PARAM
public static final java.lang.String RESOURCE_PARAM
protected static java.util.List parameters
ParameterDefinition
s supported by this adapter
protected static final ParameterDefinition eventParam
protected static final ParameterDefinition resourceParam
protected java.lang.String name
Constructor Detail |
---|
protected SubscribersNotifierAdapterSupport()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of this adapterpublic java.lang.String getEventKey()
public void setEventKey(java.lang.String eventKey)
eventKey
- The key of event to notify to subscriberspublic java.lang.String getResourceKey()
public void setResourceKey(java.lang.String resourceKey)
resourceKey
- The key of resource to notify event forpublic abstract SubscribersNotifier getSubscribersNotifier()
public java.util.List getParameterDefinitionsAsList()
getParameterDefinitionsAsList
in interface Configurable
ParameterDefinition
objectspublic ParameterDefinition[] getParameterDefinitions()
getParameterDefinitions
in interface Configurable
ParameterDefinition
objectspublic void setParameter(java.lang.String parameterName, java.lang.String parameterValue) throws InvalidParameterException
setParameter
in interface Configurable
parameterName
- The name of parameter so set value forparameterValue
- The value of the paramater
InvalidParameterException
- if this parameter is not supported by this objectpublic void setParameter(ParameterDefinition parameter, java.lang.String parameterValue) throws InvalidParameterException
setParameter
in interface Configurable
parameter
- The definitino of the paramater to setparameterValue
- The value of the parameter
InvalidParameterException
- if this parameter is not supported by this objectpublic void setParameters(java.util.Properties parameters) throws InvalidParameterException
setParameters
in interface Configurable
parameters
- Properties where keys are parameter names
InvalidParameterException
- if one of these parameters is not supported by this objectprotected RemoteMailingList retrieveMailingList(java.lang.String eventKey, java.lang.String resourceId) throws java.lang.Exception
eventKey
- The key of event to retrieve mailing list forresourceId
- The id of resource to retrieve mailing list for (may be null if no resource specified)
java.lang.Exception
protected RemoteSubscriber[] retrieveSubscribers(RemoteMailingList list) throws java.lang.Exception
list
- The mailing list to retrieve subscribers for
java.lang.Exception
protected ReportingService retrieveReportingService() throws InfrastructureException, java.rmi.RemoteException
BootstrapManager.getOtherSideUrl()
as the root of remote service url.
InfrastructureException
- if BoostrapManager and url cannot be retrieved
java.rmi.RemoteException
- if remote service cannot be retieviedBootstrapManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |