org.benow.java.config
Class ConfigurationServiceImpl

java.lang.Object
  extended by org.benow.java.config.ConfigurationServiceImpl
All Implemented Interfaces:
ConfigurationService, org.benow.java.spec.Markup, org.benow.service.Service

public class ConfigurationServiceImpl
extends java.lang.Object
implements ConfigurationService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.benow.java.config.ConfigurationService
ConfigurationService.Customised
 
Nested classes/interfaces inherited from interface org.benow.java.spec.Markup
org.benow.java.spec.Markup.ParamName, org.benow.java.spec.Markup.ReturnDescription
 
Constructor Summary
ConfigurationServiceImpl()
           
 
Method Summary
 void extract(java.lang.String name)
           
 java.util.List<org.benow.java.config.ConfigurationEntry> getAllEntries()
           
 java.util.List<java.lang.String> getClassNamesWithEntries()
           
 java.util.List<org.benow.java.config.ConfigurationEntry> getEntries(ConfigurationService.Customised customised, org.benow.java.config.ConfigurationEntry.Relevance relevance)
           
 java.util.List<org.benow.java.config.ConfigurationEntry> getEntriesStartingWith(java.lang.String prefix)
           
 org.benow.java.config.ConfigurationEntry getEntry(java.lang.Class<?> declaringClass, java.lang.String name)
           
 org.benow.java.config.ConfigurationEntry getEntryByName(java.lang.String name)
           
static java.lang.String getTypeDisplay(java.lang.String className)
           
static boolean hasChangePermission(java.lang.String declaringClassName, java.lang.String name)
           
 java.util.List<org.benow.java.config.ConfigurationEntry> searchEntries(java.lang.String term)
           
 void setEntry(java.lang.Class<?> declaringClass, java.lang.String name, java.lang.String value)
           
 void updateEntry(org.benow.java.config.ConfigurationEntry entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationServiceImpl

public ConfigurationServiceImpl()
Method Detail

getAllEntries

public java.util.List<org.benow.java.config.ConfigurationEntry> getAllEntries()
Specified by:
getAllEntries in interface ConfigurationService

getEntriesStartingWith

public java.util.List<org.benow.java.config.ConfigurationEntry> getEntriesStartingWith(java.lang.String prefix)
Specified by:
getEntriesStartingWith in interface ConfigurationService

getClassNamesWithEntries

public java.util.List<java.lang.String> getClassNamesWithEntries()
Specified by:
getClassNamesWithEntries in interface ConfigurationService

getEntryByName

public org.benow.java.config.ConfigurationEntry getEntryByName(java.lang.String name)
                                                        throws org.benow.java.config.NoSuchEntryException
Specified by:
getEntryByName in interface ConfigurationService
Throws:
org.benow.java.config.NoSuchEntryException

updateEntry

public void updateEntry(org.benow.java.config.ConfigurationEntry entry)
Specified by:
updateEntry in interface ConfigurationService

extract

public void extract(java.lang.String name)
             throws org.benow.java.config.NoSuchEntryException
Specified by:
extract in interface ConfigurationService
Throws:
org.benow.java.config.NoSuchEntryException

getTypeDisplay

public static java.lang.String getTypeDisplay(java.lang.String className)

getEntries

public java.util.List<org.benow.java.config.ConfigurationEntry> getEntries(ConfigurationService.Customised customised,
                                                                           org.benow.java.config.ConfigurationEntry.Relevance relevance)
Specified by:
getEntries in interface ConfigurationService

searchEntries

public java.util.List<org.benow.java.config.ConfigurationEntry> searchEntries(java.lang.String term)
Specified by:
searchEntries in interface ConfigurationService

setEntry

public void setEntry(java.lang.Class<?> declaringClass,
                     java.lang.String name,
                     java.lang.String value)
              throws org.benow.security.PermissionDeniedException,
                     org.benow.java.config.NoSuchEntryException
Specified by:
setEntry in interface ConfigurationService
Throws:
org.benow.security.PermissionDeniedException
org.benow.java.config.NoSuchEntryException

hasChangePermission

public static boolean hasChangePermission(java.lang.String declaringClassName,
                                          java.lang.String name)
                                   throws org.benow.java.config.NoSuchEntryException,
                                          java.lang.ClassNotFoundException
Throws:
org.benow.java.config.NoSuchEntryException
java.lang.ClassNotFoundException

getEntry

public org.benow.java.config.ConfigurationEntry getEntry(java.lang.Class<?> declaringClass,
                                                         java.lang.String name)
                                                  throws org.benow.java.config.NoSuchEntryException
Specified by:
getEntry in interface ConfigurationService
Throws:
org.benow.java.config.NoSuchEntryException