|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigGroup
Group of configurations.
Method Summary | |
---|---|
void |
delete(String id)
Deletes a configuration item. |
Config |
getConfiguration(String id)
Returns the configuration with the specified id, if exists. |
Config[] |
getConfigurations()
Returns an array of configurations that belong to this group. |
String |
getId()
Configuration group identifier. |
String |
getLocation()
Bundle location of the targeted managed service/managed service factory. |
String |
getMetadata(String key)
Returns the value of a metadata property by key. |
boolean |
isEmpty()
Returns true if there is no configuration in this group |
void |
setLocation(String location)
Sets the bundle location for this configuration. |
void |
setMetdata(String key,
String value)
Sets a metadata property. |
void |
update(String id,
Map<String,Object> properties)
Updates a configuration item. |
Method Detail |
---|
String getId()
String getLocation()
void setLocation(String location)
location
- bundle location or null for an unbounded configuration
IllegalArgumentException
- - If location is emptyString getMetadata(String key)
key
- metadata key
void setMetdata(String key, String value)
key
- metadata keyvalue
- metadata valueConfig[] getConfigurations()
Config getConfiguration(String id)
id
- configuration id
boolean isEmpty()
void update(String id, Map<String,Object> properties)
id
- configuration item identifier; cannot be nullproperties
- configuration properties; cannot be null
IllegalArgumentException
- - If id is null or empty
- If properties is nullvoid delete(String id)
id
- configuration item identifier; cannot be null
IllegalArgumentException
- - If id is null or empty
IllegalStateException
- - If there is no configuration item with the specified id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |