org.apache.james.management.impl
Class DomainListManagement

java.lang.Object
  extended by org.apache.james.management.impl.DomainListManagement
All Implemented Interfaces:
org.apache.avalon.framework.service.Serviceable, DomainListManagementMBean, DomainListManagementService

public class DomainListManagement
extends java.lang.Object
implements DomainListManagementService, DomainListManagementMBean, org.apache.avalon.framework.service.Serviceable

Provide management class for DomainLists


Field Summary
 
Fields inherited from interface org.apache.james.management.DomainListManagementService
ROLE
 
Constructor Summary
DomainListManagement()
           
 
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
 void service(org.apache.avalon.framework.service.ServiceManager arg0)
           
 void setDomainList(DomainList domList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainListManagement

public DomainListManagement()
Method Detail

service

public void service(org.apache.avalon.framework.service.ServiceManager arg0)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

setDomainList

public void setDomainList(DomainList domList)

addDomain

public boolean addDomain(java.lang.String domain)
                  throws DomainListManagementException
Description copied from interface: DomainListManagementMBean
Add domain to the service

Specified by:
addDomain in interface DomainListManagementMBean
Specified by:
addDomain in interface DomainListManagementService
Parameters:
domain - domain to add
Returns:
true if successfully
Throws:
DomainListManagementException
See Also:
DomainListManagementService.addDomain(java.lang.String)

removeDomain

public boolean removeDomain(java.lang.String domain)
                     throws DomainListManagementException
Description copied from interface: DomainListManagementMBean
Remove domain from the service

Specified by:
removeDomain in interface DomainListManagementMBean
Specified by:
removeDomain in interface DomainListManagementService
Parameters:
domain - domain to remove
Returns:
true if succesfully
Throws:
DomainListManagementException
See Also:
DomainListManagementService.removeDomain(java.lang.String)

containsDomain

public boolean containsDomain(java.lang.String domain)
Description copied from interface: DomainListManagementMBean
Return true if the domain exists in the service

Specified by:
containsDomain in interface DomainListManagementMBean
Specified by:
containsDomain in interface DomainListManagementService
Parameters:
domain - the domain
Returns:
true if the given domain exists in the service
See Also:
DomainListManagementService.containsDomain(java.lang.String)

getDomains

public java.util.List getDomains()
Description copied from interface: DomainListManagementMBean
Return List of domains which should be used as localdomains. Return null if no domains were found

Specified by:
getDomains in interface DomainListManagementMBean
Specified by:
getDomains in interface DomainListManagementService
Returns:
domains
See Also:
DomainListManagementService.getDomains()


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