|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.util.factories.AbstractObjectFactory
com.sapportals.wcm.util.channels.ChannelFactory
A factory to retrieve IChannel s.
IChannel| Nested Class Summary |
| Nested classes inherited from class com.sapportals.wcm.util.factories.AbstractObjectFactory |
AbstractObjectFactory.ObjectClassEntry |
| Field Summary | |
static String |
EMAIL
channel type EMAIL. |
static String |
FAX
channel type FAX. |
static String |
NULL_CHANNEL
channel type NULL. |
static String |
SMS
channel type SMS. |
static String |
STORE
channel type STORE. |
| Fields inherited from class com.sapportals.wcm.util.factories.AbstractObjectFactory |
CONFIG_OBJECTLIST_SEPARATOR, CONFIG_OBJECTLIST_TAG, CONFIG_SINGLETON_DEFAULT, CONFIG_SINGLETON_TAG, m_ID, m_LogName, m_ObjectMap, m_Properties, MULTI, SINGLETON |
| Constructor Summary | |
ChannelFactory(String id)
Create a ChannelFactory with a given id. |
|
| Method Summary | |
IChannelList |
createChannelList()
Create an empty IChannelList . |
IChannel |
getChannel(String id)
Get an IChannel instance for a specific id. |
IChannelList |
getChannelForType(String type)
Get a list of IChannel s for a given type. |
IChannelList |
getChannels()
Get a list with all available IChannel s. |
IChannel |
getFirstChannelForType(String type)
Get the first instance of an IChannel for a given type. |
static ChannelFactory |
getInstance()
Get a new instance of the factory. |
static String[] |
getRecipientAdresses(IChannel channel,
IRecipientList recipients)
Utility method to convert an array of recipients to an array of addresses in a specific channel format. |
protected AbstractObjectFactory.ObjectClassEntry |
newObjectListEntry(String id,
Constructor constructor,
Properties properties,
boolean singletonFlag)
Create a new object class entry for the object class list. |
void |
reconfigure()
Reload the factory's configuration. |
| Methods inherited from class com.sapportals.wcm.util.factories.AbstractObjectFactory |
getAllObjectInstances, getFactoryInstance, getObjectConstructorParameters, getObjectConstructorParameterTypes, getObjectInstance, loadObjectMap, loadObjectMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String EMAIL
public static final String SMS
public static final String FAX
public static final String STORE
public static final String NULL_CHANNEL
| Constructor Detail |
public ChannelFactory(String id)
throws WcmException
AbstractClassFactory()
.
id - a String with the unique id for the factory.
WcmException - Exception raised in failure situation| Method Detail |
protected AbstractObjectFactory.ObjectClassEntry newObjectListEntry(String id,
Constructor constructor,
Properties properties,
boolean singletonFlag)
AbstractObjectFactory
newObjectListEntry in class AbstractObjectFactoryid - a String with the id of the object class.constructor - the Constructor for the object class.properties - the Properties for the object class.singletonFlag - a boolean true if this
object class should have only one instance, false if not.
public static ChannelFactory getInstance()
throws WcmException
ChannelFactory .
WcmException - if the factory can not be created.
public void reconfigure()
throws WcmException
WcmException - if the factory's configuration can not be reloaded.
public IChannel getChannel(String id)
throws WcmException
IChannel instance for a specific id.
id - TBD: Description of the incoming method parameter
IChannel with the channel for the given id,
null if no channel exists for the given id.
WcmException - if there an error occured while creating
the channel.
public IChannelList getChannelForType(String type)
throws WcmException
IChannel s for a given type.
type - TBD: Description of the incoming method parameter
IChannelList with channels for the given type, may
be empty if no channels exists for that type.
WcmException - if there an error occured while creating
the channels.
public IChannel getFirstChannelForType(String type)
throws WcmException
IChannel for a given type.
type - TBD: Description of the incoming method parameter
IChannel for the given type, null if
there is no channel with the given type.
WcmException - if an error occured while creating the
channel.
public IChannelList getChannels()
throws WcmException
IChannel s.
IChannelList which may be empty if no channels
exist.
WcmException - if there an error occured while creating
the channel.
public static String[] getRecipientAdresses(IChannel channel,
IRecipientList recipients)
throws WcmException
channel - an IChannel which defines the address format.recipients - an array of IRecipient s to get the
addresses for.
Strings with the addresses.
- Throws:
WcmException - if an error occured while resolving the
recipients addresses.
public IChannelList createChannelList()
throws WcmException
IChannelList .
IChannelList .
WcmException - if the list could not be created.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||