public class NoExtraPropertiesStorage extends Object implements ExtraPropertiesStore
ExtraPropertiesStore
implementation that throws an exception whenever trying to store or update extra properties.Modifier and Type | Field and Description |
---|---|
protected static Map<Name,Property> |
NO_PROPERTIES_MAP |
NO_PROPERTIES
Constructor and Description |
---|
NoExtraPropertiesStorage(Connector connector) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String id)
Check if this store contains any extra properties for the node with the given ID.
|
Map<Name,Property> |
getProperties(String id)
Retrieve the extra properties that were stored for the node with the supplied ID.
|
boolean |
removeProperties(String id)
Remove all of the extra properties that were stored for the node with the supplied ID.
|
void |
storeProperties(String id,
Map<Name,Property> properties)
Store the supplied extra properties for the node with the supplied ID.
|
void |
updateProperties(String id,
Map<Name,Property> properties)
Update the supplied extra properties for the node with the supplied ID.
|
public NoExtraPropertiesStorage(Connector connector)
public Map<Name,Property> getProperties(String id)
ExtraPropertiesStore
getProperties
in interface ExtraPropertiesStore
id
- the identifier for the node; may not be nullpublic boolean removeProperties(String id)
ExtraPropertiesStore
removeProperties
in interface ExtraPropertiesStore
id
- the identifier for the node; may not be nullpublic void storeProperties(String id, Map<Name,Property> properties)
ExtraPropertiesStore
storeProperties
in interface ExtraPropertiesStore
id
- the identifier for the node; may not be nullproperties
- the extra properties for the node that should be stored in this storage area, keyed by their namepublic void updateProperties(String id, Map<Name,Property> properties)
ExtraPropertiesStore
updateProperties
in interface ExtraPropertiesStore
id
- the identifier for the node; may not be nullproperties
- the extra properties for the node that should be stored in this storage area, keyed by their name; any
entry that contains a null Property will define a property that should be removedpublic boolean contains(String id)
ExtraPropertiesStore
contains
in interface ExtraPropertiesStore
id
- the identifier for the node; may not be nulltrue
if this store contains extra properties, false
otherwise.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.