Package org.apache.felix.webconsole.spi
Interface ConfigurationHandler
Deprecated.
The Apache Felix Webconsole is not supported in Cloud environments.
A configuration handler allows to hook into the processing of configurations for
the webconsole plugin.
A handler can decide to hide configurations and properties but also implement
additional validation.
All configuration handlers are called in no particular order.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.A new configuration with that pid should be createdvoid
createFactoryConfiguration
(String factoryPid, String name) Deprecated.A new factory configuration with that pid should be createdvoid
deleteConfiguration
(String factoryPid, String pid) Deprecated.A configuration should be deleteddefault void
filterProperties
(String factoryPid, String pid, Collection<String> propertyNames) Deprecated.Filter the properties do be displayed.default boolean
listConfiguration
(String factoryPid, String pid) Deprecated.A configuration should be listedvoid
updateConfiguration
(String factoryPid, String pid, Dictionary<String, Object> props) Deprecated.A configuration should be updated
-
Method Details
-
createConfiguration
Deprecated.A new configuration with that pid should be created- Parameters:
pid
- The pid- Throws:
IOException
- For an errorValidationException
- if creation is not allowed
-
createFactoryConfiguration
void createFactoryConfiguration(String factoryPid, String name) throws ValidationException, IOException Deprecated.A new factory configuration with that pid should be created- Parameters:
factoryPid
- The factory pidname
- Optional name, might benull
if unknown- Throws:
IOException
- For an errorValidationException
- if creation is not allowed
-
deleteConfiguration
Deprecated.A configuration should be deleted- Parameters:
factoryPid
- Optional factory pidpid
- The pid- Throws:
IOException
- For an errorValidationException
- if deletion is not allowed
-
updateConfiguration
void updateConfiguration(String factoryPid, String pid, Dictionary<String, Object> props) throws ValidationException, IOExceptionDeprecated.A configuration should be updated- Parameters:
factoryPid
- Optional factory pidpid
- The pidprops
- Mutable dictionary- Throws:
IOException
- For an errorValidationException
- if updating is not allowed
-
listConfiguration
Deprecated.A configuration should be listed- Parameters:
factoryPid
- Optional factory pidpid
- The pid- Returns:
- true if the configuration may be listed
- Throws:
IOException
- For an error- Since:
- 1.1
-
filterProperties
default void filterProperties(String factoryPid, String pid, Collection<String> propertyNames) throws IOException Deprecated.Filter the properties do be displayed. Properties that should be hidden can be removed from the passed in collection- Parameters:
factoryPid
- Optional factory pidpid
- The pidpropertyNames
- The mutable collection of property names- Throws:
IOException
- For an error- Since:
- 1.1
-