org.nhindirect.config.service.impl
Class SettingServiceImpl

java.lang.Object
  extended by org.nhindirect.config.service.impl.SettingServiceImpl
All Implemented Interfaces:
SettingService

public class SettingServiceImpl
extends Object
implements SettingService

Service class for methods related to a Service object.


Constructor Summary
SettingServiceImpl()
           
 
Method Summary
 void addSetting(String name, String value)
           
 void deleteSetting(Collection<String> names)
           
 Collection<Setting> getAllSettings()
           
 SettingDao getDao()
          Return the value of the AnchorDao object.
 Setting getSettingByName(String name)
           
 Collection<Setting> getSettingsByNames(Collection<String> names)
           
 void init()
          Initialization method.
 void setDao(SettingDao dao)
          Set the value of the AnchorDao object.
 void updateSetting(String name, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingServiceImpl

public SettingServiceImpl()
Method Detail

init

public void init()
Initialization method.


addSetting

public void addSetting(String name,
                       String value)
                throws ConfigurationServiceException
Specified by:
addSetting in interface SettingService
Throws:
ConfigurationServiceException

deleteSetting

public void deleteSetting(Collection<String> names)
                   throws ConfigurationServiceException
Specified by:
deleteSetting in interface SettingService
Throws:
ConfigurationServiceException

getAllSettings

public Collection<Setting> getAllSettings()
                                   throws ConfigurationServiceException
Specified by:
getAllSettings in interface SettingService
Throws:
ConfigurationServiceException

getSettingByName

public Setting getSettingByName(String name)
                         throws ConfigurationServiceException
Specified by:
getSettingByName in interface SettingService
Throws:
ConfigurationServiceException

getSettingsByNames

public Collection<Setting> getSettingsByNames(Collection<String> names)
                                       throws ConfigurationServiceException
Specified by:
getSettingsByNames in interface SettingService
Throws:
ConfigurationServiceException

updateSetting

public void updateSetting(String name,
                          String value)
                   throws ConfigurationServiceException
Specified by:
updateSetting in interface SettingService
Throws:
ConfigurationServiceException

setDao

public void setDao(SettingDao dao)
Set the value of the AnchorDao object.

Parameters:
dao - the value of the AnchorDao object.

getDao

public SettingDao getDao()
Return the value of the AnchorDao object.

Returns:
the value of the AnchorDao object.


Copyright © 2010. All Rights Reserved.