org.jwarp.service.configuration
Interface IConfigurationService

All Superinterfaces:
IConfigurable, IExceptionProvider, IService
All Known Implementing Classes:
ConfigurationService

public interface IConfigurationService
extends IService

Version:
1.0
Author:
ORCA Systems GmbH, Martin Schäfer

Field Summary
static java.lang.String SERVICE_TYPE
          Service type constant
 
Fields inherited from interface org.jwarp.service.IService
SERVICE_STATUS_CREATED, SERVICE_STATUS_NOT_AVAILABLE, SERVICE_STATUS_READY, SERVICE_STATUS_RESUMING, SERVICE_STATUS_RUNNING, SERVICE_STATUS_STARTING, SERVICE_STATUS_STOPPED, SERVICE_STATUS_STOPPING, SERVICE_STATUS_SUSPENDED
 
Method Summary
 IConfiguration addConfiguration(java.lang.String url, ITicket user)
          Tries to add a new configuration specified by the configuration url.
 IConfiguration getConfiguration(java.lang.String configurationName, ITicket user)
          Return the configuration with the given name
 IConfiguration removeConfiguration(java.lang.String name, ITicket user)
          Tries to remove the configuration with the given name
 
Methods inherited from interface org.jwarp.service.IService
checkContext, getDependencies, getLogLevel, getName, getStatus, getType, resume, setContext, setDependencies, setLogLevel, shutdown, start, suspend
 
Methods inherited from interface org.jwarp.service.configuration.IConfigurable
configure
 
Methods inherited from interface org.jwarp.common.IExceptionProvider
addExceptionListener, getExceptionListeners, removeAllExceptionListeners, removeExceptionListener
 

Field Detail

SERVICE_TYPE

public static final java.lang.String SERVICE_TYPE
Service type constant
Method Detail

getConfiguration

public IConfiguration getConfiguration(java.lang.String configurationName,
                                       ITicket user)
                                throws java.lang.SecurityException,
                                       NotFoundException
Return the configuration with the given name
Parameters:
configurationName - The name of the configuration
user - The user's ticket

addConfiguration

public IConfiguration addConfiguration(java.lang.String url,
                                       ITicket user)
                                throws java.lang.SecurityException,
                                       NotFoundException
Tries to add a new configuration specified by the configuration url.
Parameters:
name - The url of the configuration
user - The user's ticket
Throws:
java.lang.SecurityException - If the access was denied
NotFoundException - If the url could not be resolved or read.

removeConfiguration

public IConfiguration removeConfiguration(java.lang.String name,
                                          ITicket user)
                                   throws java.lang.SecurityException,
                                          NotFoundException
Tries to remove the configuration with the given name
Parameters:
name - The name of the configuration
user - The user's ticket
Throws:
java.lang.SecurityException - If the access was denied
NotFoundException - If the configuration could not be located.

©   O R C A   S y s t e m s