org.apache.james.management
Interface DomainListManagementMBean

All Known Implementing Classes:
DomainListManagement

public interface DomainListManagementMBean


Method Summary
 boolean addDomain(java.lang.String domain)
          Add domain to the service
 boolean containsDomain(java.lang.String domain)
          Return true if the domain exists in the service
 java.util.List getDomains()
          Return List of domains which should be used as localdomains.
 boolean removeDomain(java.lang.String domain)
          Remove domain from the service
 

Method Detail

addDomain

boolean addDomain(java.lang.String domain)
                  throws DomainListManagementException
Add domain to the service

Parameters:
domain - domain to add
Returns:
true if successfully
Throws:
DomainListManagementException

removeDomain

boolean removeDomain(java.lang.String domain)
                     throws DomainListManagementException
Remove domain from the service

Parameters:
domain - domain to remove
Returns:
true if succesfully
Throws:
DomainListManagementException

getDomains

java.util.List getDomains()
Return List of domains which should be used as localdomains. Return null if no domains were found

Returns:
domains

containsDomain

boolean containsDomain(java.lang.String domain)
Return true if the domain exists in the service

Parameters:
domain - the domain
Returns:
true if the given domain exists in the service


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.