public interface IModuleAPIConfiguration
Module configuration provide access to module parameter and resource paths.
Available only on IPeerModule
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.nio.file.Path> |
getDocpath()
Returns the documentation path.
|
java.nio.file.Path |
getModuleResourcesPath()
Get the path where the files packaged with the module were deployed.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
Get all parameter values.
|
java.lang.String |
getParameterValue(java.lang.String key)
Get the value of the parameter identified by the given
key. |
boolean |
isLocked(java.lang.String key)
Get the lock status of the parameter identified by the given
key. |
boolean |
setParameterValue(java.lang.String key,
java.lang.String value)
Set the value of a parameter.
|
void |
updateFrom(java.util.Map<java.lang.String,java.lang.String> parameters)
Update the mdac parameters with the given ones.
|
java.lang.String getParameterValue(java.lang.String key)
key.
Returns null if the key does not exist
key - Key of the parameterkey parameter (or null)java.util.Map<java.lang.String,java.lang.String> getParameters()
boolean setParameterValue(java.lang.String key,
java.lang.String value)
key - Key of the parametervalue - Value to define on the parametertrue if the parameter is only locally defined.void updateFrom(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters - The new module parameter values.java.nio.file.Path getModuleResourcesPath()
java.util.List<java.nio.file.Path> getDocpath()
boolean isLocked(java.lang.String key)
key.A parameter is locked when defined by a Modelio server.
key - Key of the parameter