|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.sapportals.wcm.util.factories.AbstractObjectFactory
|
+--com.sapportals.wcm.util.channels.ChannelFactory
A factory to retrieve IChannel s.
IChannel| Inner classes inherited from class com.sapportals.wcm.util.factories.AbstractObjectFactory |
AbstractObjectFactory.ObjectClassEntry |
| Field Summary | |
static java.lang.String |
EMAIL
channel type EMAIL. |
static java.lang.String |
FAX
channel type FAX. |
static java.lang.String |
NULL_CHANNEL
channel type NULL. |
static java.lang.String |
SMS
channel type SMS. |
static java.lang.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(java.lang.String id)
Create a ChannelFactory with a given id. Note : This constructor has to be public (although it should be protected), to allow dynamic creation via the AbstractClassFactory()
. |
|
| Method Summary | |
IChannelList |
createChannelList()
Create an empty IChannelList . |
IChannel |
getChannel(java.lang.String id)
Get an IChannel instance for a specific id. |
IChannelList |
getChannelForType(java.lang.String type)
Get a list of IChannel s for a given type. |
IChannelList |
getChannels()
Get a list with all available IChannel s. |
IChannel |
getFirstChannelForType(java.lang.String type)
Get the first instance of an IChannel for a given type. |
static ChannelFactory |
getInstance()
Get a new instance of the factory. |
static java.lang.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(java.lang.String id,
java.lang.reflect.Constructor constructor,
java.util.Properties properties,
boolean singletonFlag)
Create a new object class entry for the object class list. |
| 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 java.lang.String EMAIL
public static final java.lang.String SMS
public static final java.lang.String FAX
public static final java.lang.String STORE
public static final java.lang.String NULL_CHANNEL
| Constructor Detail |
public ChannelFactory(java.lang.String id)
throws WcmException
AbstractClassFactory()
.id - a String with the unique id for the factory.WcmException - Exception raised in failure situation| Method Detail |
public static ChannelFactory getInstance()
throws WcmException
ChannelFactory .WcmException - if the factory can not be created.
protected AbstractObjectFactory.ObjectClassEntry newObjectListEntry(java.lang.String id,
java.lang.reflect.Constructor constructor,
java.util.Properties properties,
boolean singletonFlag)
AbstractObjectFactorynewObjectListEntry in class AbstractObjectFactorycom.sapportals.wcm.util.factories.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 IChannel getChannel(java.lang.String id)
throws WcmException
IChannel instance for a specific id.id - TBD: Description of the incoming method parameterIChannel 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(java.lang.String type)
throws WcmException
IChannel s for a given type.type - TBD: Description of the incoming method parameterIChannelList 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(java.lang.String type)
throws WcmException
IChannel for a given type.type - TBD: Description of the incoming method parameterIChannel 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 java.lang.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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||