1 17 18 package org.apache.james.transport.mailets; 19 20 import org.apache.james.transport.mailets.listservcommands.IListServCommand; 21 import org.apache.james.services.UsersRepository; 22 import org.apache.james.util.XMLResources; 23 import org.apache.mailet.Mailet; 24 import org.apache.mailet.Mail; 25 import org.apache.mailet.MailAddress; 26 import org.apache.avalon.framework.configuration.ConfigurationException; 27 28 import javax.mail.MessagingException ; 29 import java.util.Map ; 30 import java.util.Properties ; 31 32 44 public interface ICommandListservManager extends Mailet { 45 46 public static final String ID = ICommandListservManager.class.getName(); 47 48 53 public String getListName(boolean displayFormat); 54 55 59 public String getListOwner(); 60 61 65 public String getListDomain(); 66 67 72 public IListServCommand getCommand(String name); 73 74 78 public Map getCommands(); 79 80 85 public IListServCommand getCommandTarget(MailAddress mailAddress); 86 87 91 public UsersRepository getUsersRepository(); 92 93 99 public void onError(Mail mail, String subject, String errorMessage) throws MessagingException ; 100 101 104 public String getResourcesFile(); 105 106 110 public Properties getStandardProperties(); 111 112 118 public XMLResources[] initXMLResources(String [] names) throws ConfigurationException; 119 } 120 | Popular Tags |