public abstract class AbstractConfigurableAuthenticatedService extends AbstractAuthenticatedService implements ConfigurableService
ConfigurableService.getChangeableConfigurationKeys(SessionToken)) and
setting the
configuration values since both depends on the semantic of the configuration
keys.AbstractADEPT2Service.ActiveSessionsCFG_EARLY_SERVICEAUTH_ORGPOSID, CFG_EARLY_SERVICEAUTH_ORGPOSNAME, CFG_EARLY_SERVICEAUTH_PASSWORD, CFG_EARLY_SERVICEAUTH_USERNAME, CFG_SERVICEAUTH_ORGPOSID, CFG_SERVICEAUTH_ORGPOSNAME, CFG_SERVICEAUTH_PASSWORD, CFG_SERVICEAUTH_USERNAMECONF_CSV_LOGGING, configuration, logger, registry, runtimeRequiredServices, startupRequiredServicesCONF_RUNTIME_CONF_PREFIX| Constructor and Description |
|---|
AbstractConfigurableAuthenticatedService(Configuration configuration,
Registry registry,
java.lang.Class<?> cls)
Creates a configurable service with the designated configuration, the
designated registry, a logger for this and assuming that there are no other
services required.
|
AbstractConfigurableAuthenticatedService(Configuration configuration,
Registry registry,
java.lang.String[] startupRequiredServices,
java.lang.String[] runtimeRequiredServices,
java.lang.Class<?> cls)
Creates a configurable service with the designated configuration, the
designated registry, a logger for this and the designated required
services.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration(SessionToken session)
Gets the configuration of this service for displaying it.
|
_sessionActive, authenticateService, awaitActiveSessions, createChildSession, createSession, getAgent, getSecurityManager, getSessionFactory, getStartupRequired, getTopLevelAgent, getUserCredentials, globalSecurityManagerAvailable, init, isEarlyService, sessionHasCapability, shutdown_sessionFinished, activeOrInvalidServiceStateException, changeLogContext, changeLogContext, changeLogContext, consoleLog, csvLoggingEnabled, getClassSpecificJulLogger, getDependencyRegistry, getLocalUris, getLogger, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, isActive, isSessionActive, isShutdown, logMethodEntry, logMethodEntry, logMethodEntry, logMethodExit, logMethodExit, ping, preShutdown, privilegeSession, privilegeThread, revertLogContextChanges, sessionActive, sessionActive, sessionActive, sessionActive, sessionFinished, sessionFinished, signalShutdown, signalStart, start, unprivilegeThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChangeableConfigurationKeys, setConfigurationValuegetLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, init, ping, preShutdown, shutdown, startpublic AbstractConfigurableAuthenticatedService(Configuration configuration, Registry registry, java.lang.Class<?> cls) throws ConfigurationException
configuration - The configuration of this service that can be changed
(at least parts of it) at runtime and that provides the logon
credentials for this service.registry - The registry to be used for accessing services by this
service. This is provided as parameter to the constructor when
creating a service.cls - The class specifying the name of the logger of this service.ConfigurationException - If the password for this authenticated
service cannot be parsed from the configuration, a
ConfigurationException will be thrown.public AbstractConfigurableAuthenticatedService(Configuration configuration, Registry registry, java.lang.String[] startupRequiredServices, java.lang.String[] runtimeRequiredServices, java.lang.Class<?> cls) throws ConfigurationException
configuration - The configuration of this service that can be changed
(at least parts of it) at runtime and that provides the logon
credentials for this service.registry - The registry to be used for accessing services by this
service. This is provided as parameter to the constructor when
creating a service.startupRequiredServices - The service type names of services required
at startup time (in AbstractAuthenticatedService.init(java.net.URI[], java.net.URI[]) and
AbstractADEPT2Service.start()).runtimeRequiredServices - The service type names of services required
at runtime (after startup time).cls - The class specifying the name of the logger of this service.ConfigurationException - If the password for this authenticated
service cannot be parsed from the configuration, a
ConfigurationException will be thrown.public Configuration getConfiguration(SessionToken session)
ConfigurableServiceConfigurableService.setConfigurationValue(SessionToken, String, String) for changing
configuration values.
Note to implementors: As stated above return a copy of the configuration and not the configuration itself. Additionally make sure the returned configuration is serialisable since it may be transfered to a remote machine.
getConfiguration in interface ConfigurableServicesession - The session which is used to check for access rights on this
method.