|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ICommandListservManager is the interface that describes the functionality of any command based list serv managers. In order to obtain a reference to one, you can call:
ICommandListservManager mgr = (ICommandListservManager)mailetContext.getAttribute(ICommandListservManager.ID + listName);
Field Summary | |
static String |
ID
|
Method Summary | |
IListServCommand |
getCommand(String name)
Get a specific command |
Map |
getCommands()
Get all the available commands |
IListServCommand |
getCommandTarget(MailAddress mailAddress)
Based on the to address get a valid or command or null |
String |
getListDomain()
Get the domain of the list |
String |
getListName(boolean displayFormat)
Get the name of this list |
String |
getListOwner()
Gets the owner of this list |
String |
getResourcesFile()
|
Properties |
getStandardProperties()
Use this to get standard properties for future calls to XMLResources |
UsersRepository |
getUsersRepository()
Get the current user repository for this list serv |
XMLResources[] |
initXMLResources(String[] names)
Initializes an array of resources |
void |
onError(Mail mail,
String subject,
String errorMessage)
An error occurred, send some sort of message to the sender |
Methods inherited from interface org.apache.mailet.Mailet |
destroy, getMailetConfig, getMailetInfo, init, service |
Field Detail |
public static final String ID
Method Detail |
public String getListName(boolean displayFormat)
displayFormat
- is whether you want a display version of this or not
public String getListOwner()
public String getListDomain()
public IListServCommand getCommand(String name)
name
- case in-sensitive
IListServCommand
if found, null otherwisepublic Map getCommands()
IListServCommand
spublic IListServCommand getCommandTarget(MailAddress mailAddress)
mailAddress
-
public UsersRepository getUsersRepository()
UsersRepository
that is used for the member list of the list servpublic void onError(Mail mail, String subject, String errorMessage) throws MessagingException
subject
- the subject of the message to sendmail
- errorMessage
-
MessagingException
public String getResourcesFile()
public Properties getStandardProperties()
XMLResources
public XMLResources[] initXMLResources(String[] names) throws org.apache.avalon.framework.configuration.ConfigurationException
names
- such as 'header, footer' etc...
org.apache.avalon.framework.configuration.ConfigurationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |