org.cid.distribution.plugins.list
Class DataMemberManagerComponent

java.lang.Object
  extended by org.cid.distribution.base.DistributionComponentBase
      extended by org.cid.distribution.plugins.list.DataMemberManagerComponent
All Implemented Interfaces:
DistributionContextAware, DistributionComponent, MemberManager

public class DataMemberManagerComponent
extends DistributionComponentBase
implements MemberManager

The DataMemberManagerComponent is a read-only provider of DistributionMember objects. Using the DBMemberManagerComponent the members of a distribution list can be retrieved from any DataProvider Component. This allow, in example, using any JDBC data source and a simple query to provide the desired set of members for a list.

This MemberManager may be of use in newsletter mailings, announcement mailings and similar needs, as it is intended to be an easy way to integrate smsAmlm with an existing database.

Version:
$Revision:111 $

Constructor Summary
DataMemberManagerComponent()
          Class constructor
 
Method Summary
static void addRules(org.apache.commons.digester.Digester d, java.lang.String patternPrefix)
          Configures additional rules for the commons-digester library.
 java.lang.String getAddressColumn()
           
 DataProvider getDataProvider()
           
 java.util.Enumeration<DistributionMember> getMembers()
          Returns the list members.
 java.lang.String getNameColumn()
           
 void setAddressColumn(java.lang.String addressColumn)
           
 void setDataProvider(java.lang.String dataProvider)
           
 void setNameColumn(java.lang.String nameColumn)
           
 
Methods inherited from class org.cid.distribution.base.DistributionComponentBase
destroy, getId, init, setDistributionContext, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cid.distribution.plugins.list.MemberManager
getId
 
Methods inherited from interface org.cid.distribution.DistributionComponent
destroy, init
 

Constructor Detail

DataMemberManagerComponent

public DataMemberManagerComponent()
Class constructor

Method Detail

getMembers

public java.util.Enumeration<DistributionMember> getMembers()
                                                     throws DistributionProcessingException
Returns the list members.

Specified by:
getMembers in interface MemberManager
Returns:
The lists members.
Throws:
DistributionProcessingException

addRules

public static void addRules(org.apache.commons.digester.Digester d,
                            java.lang.String patternPrefix)
Configures additional rules for the commons-digester library.


getDataProvider

public DataProvider getDataProvider()
Returns:
Returns the data provider.

setDataProvider

public void setDataProvider(java.lang.String dataProvider)
Parameters:
data - The data to set.

getAddressColumn

public java.lang.String getAddressColumn()
Returns:
Returns the addressColumn.

setAddressColumn

public void setAddressColumn(java.lang.String addressColumn)
Parameters:
addressColumn - The addressColumn to set.

getNameColumn

public java.lang.String getNameColumn()
Returns:
Returns the nameColumn.

setNameColumn

public void setNameColumn(java.lang.String nameColumn)
Parameters:
nameColumn - The nameColumn to set.


Copyright © 2006 null. All Rights Reserved.