public final class ServerManagementContext extends Object
| Constructor and Description |
|---|
ServerManagementContext(ConfigurationRepository repository)
Creates a context from the provided configuration repository.
|
| Modifier and Type | Method and Description |
|---|---|
ConfigurationRepository |
getConfigRepository()
Returns the repository containing all configuration entries.
|
<C extends ConfigurationClient,S extends Configuration> |
getManagedObject(ManagedObjectPath<C,S> path)
Gets the named managed object.
|
RootCfg |
getRootConfiguration()
Get the root configuration manager associated with this management
context.
|
ServerManagedObject<RootCfg> |
getRootConfigurationManagedObject()
Get the root configuration server managed object associated with this
management context.
|
<C extends ConfigurationClient,S extends Configuration> |
listManagedObjects(ManagedObjectPath<?,?> parent,
RelationDefinition<C,S> relationDef)
Lists the child managed objects of the named parent managed object.
|
boolean |
managedObjectExists(ManagedObjectPath<?,?> path)
Determines whether the named managed object exists.
|
public ServerManagementContext(ConfigurationRepository repository)
repository - The repository of configuration entries.public <C extends ConfigurationClient,S extends Configuration> ServerManagedObject<? extends S> getManagedObject(ManagedObjectPath<C,S> path) throws ConfigException
C - The type of client managed object configuration that the path
definition refers to.S - The type of server managed object configuration that the path
definition refers to.path - The path of the managed object.ConfigException - If the named managed object could not be found or if it could
not be decoded.public RootCfg getRootConfiguration()
public ServerManagedObject<RootCfg> getRootConfigurationManagedObject()
public <C extends ConfigurationClient,S extends Configuration> String[] listManagedObjects(ManagedObjectPath<?,?> parent, RelationDefinition<C,S> relationDef)
C - The type of client managed object configuration that the
relation definition refers to.S - The type of server managed object configuration that the
relation definition refers to.parent - The path of the parent managed object.relationDef - The relation definition.IllegalArgumentException - If the relation definition is not associated with the parent
managed object's definition.public boolean managedObjectExists(ManagedObjectPath<?,?> path)
path - The path of the named managed object.true if the named managed object exists,
false otherwise.public ConfigurationRepository getConfigRepository()
Copyright © 2017-2020 Wren Security. All Rights Reserved.