public class PrivateStorage extends BasicModule
Constructor and Description |
---|
PrivateStorage()
Constructs a new PrivateStore instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String username,
org.dom4j.Element data)
Stores private data.
|
org.dom4j.Element |
get(String username,
org.dom4j.Element data)
Returns the data stored under a key corresponding to the name and namespace
of the given element.
|
boolean |
isEnabled()
Returns true if private storage is enabled.
|
void |
setEnabled(boolean enabled)
Sets whether private storage is enabled.
|
destroy, getName, initialize, start, stop
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true if this private store is enabled.public void add(String username, org.dom4j.Element data)
data
- the data to store (XML element)username
- the username of the account where private data is being storedpublic org.dom4j.Element get(String username, org.dom4j.Element data)
<name xmlns='namespace'/>
If no data is currently stored under the given key, an empty element will be returned.
data
- an XML document who's element name and namespace is used to
match previously stored private data.username
- the username of the account where private data is being stored.Copyright © 2003–2019 Ignite Realtime. All rights reserved.