|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NonAuthUserRepository
Describe interface WriteOnlyUserRepository here. Created: Sat Oct 14 20:42:30 2006
Field Summary | |
---|---|
static String |
OFFLINE_DATA_NODE
Field description |
static String |
PUBLIC_DATA_NODE
Field description |
Method Summary | |
---|---|
void |
addOfflineData(String user,
String subnode,
String key,
String value)
addDataList method adds mode entries to existing data list
associated with given key in repository under given node path. |
void |
addOfflineDataList(String user,
String subnode,
String key,
String[] list)
addDataList method adds mode entries to existing data list
associated with given key in repository under given node path. |
String |
getDomainTempData(String domain,
String subnode,
String key,
String def)
Retrieves and returns a value associated with given subnode and key from a publicly available space. |
String |
getPublicData(String user,
String subnode,
String key,
String def)
getPublicData method returns a value associated with given key for
user repository in given subnode. |
String[] |
getPublicDataList(String user,
String subnode,
String key)
getPublicDataList method returns array of values associated with
given key or null if given key does not exist for given user
ID in given node path. |
String |
getTempData(String subnode,
String key,
String def)
Retrieves and returns a value associated with given subnode and key from a publicly available space. |
void |
putDomainTempData(String domain,
String subnode,
String key,
String value)
The method allows to store some temporary data by the plugin in publicly available space. |
void |
putTempData(String subnode,
String key,
String value)
The method allows to store some temporary data by the plugin in publicly available space. |
void |
removeDomainTempData(String domain,
String subnode,
String key)
The method allows to remove existing data stored in a temporary storage space associated with a given DNS domain. |
void |
removeTempData(String subnode,
String key)
The method allows to remove existing data stored in the Tigase instance specific temporary storage. |
Field Detail |
---|
static final String PUBLIC_DATA_NODE
static final String OFFLINE_DATA_NODE
Method Detail |
---|
void addOfflineData(String user, String subnode, String key, String value) throws UserNotFoundException, DataOverwriteException
addDataList
method adds mode entries to existing data list
associated with given key in repository under given node path.
This method is very similar to setDataList(...)
except it
doesn't remove existing data.
user
- a String
value of user ID for which data must be
stored. User ID consists of user name and domain name.subnode
- a String
value is a node path where data is
stored. Node path has the same form as directory path on file system:
/root/subnode1/subnode2.
key
- a String
with which the specified values list is to
be associated.value
- a String
is an array of values to be assosiated
with the specified key.
UserNotFoundException
- if user id hasn't been found in reository.
DataOverwriteException
void addOfflineDataList(String user, String subnode, String key, String[] list) throws UserNotFoundException
addDataList
method adds mode entries to existing data list
associated with given key in repository under given node path.
This method is very similar to setDataList(...)
except it
doesn't remove existing data.
user
- a String
value of user ID for which data must be
stored. User ID consists of user name and domain name.subnode
- a String
value is a node path where data is
stored. Node path has the same form as directory path on file system:
/root/subnode1/subnode2.
key
- a String
with which the specified values list is to
be associated.list
- a String[]
is an array of values to be assosiated
with the specified key.
UserNotFoundException
- if user id hasn't been found in reository.String getDomainTempData(String domain, String subnode, String key, String def) throws TigaseDBException
domain
- is a DNS domain name with which the data is associated.subnode
- a String
value is a node path where data is
stored. Node path has the same form as directory path on file system:
/root/subnode1/subnode2.
key
- a String
with which the needed value is
associated.def
- a String
value which is returned in case if data
for specified key does not exixist in repository.
String
value for a given subnode and key or def
if no entry has been found.
TigaseDBException
- if there was an error during reading data from the repository.String getPublicData(String user, String subnode, String key, String def) throws UserNotFoundException
getPublicData
method returns a value associated with given key for
user repository in given subnode.
If key is not found in repository given default value is returned.
user
- a String
value of user ID for which data must be
stored. User ID consists of user name and domain name.subnode
- a String
value is a node path where data is
stored. Node path has the same form as directory path on file system:
/root/subnode1/subnode2.
key
- a String
with which the needed value is
associated.def
- a String
value which is returned in case if data
for specified key does not exixist in repository.
String
value for a given subnode and key or def
if no entry has been found.
UserNotFoundException
- if user id hasn't been found in reository.String[] getPublicDataList(String user, String subnode, String key) throws UserNotFoundException
getPublicDataList
method returns array of values associated with
given key or null
if given key does not exist for given user
ID in given node path.
user
- a String
value of user ID for which data must be
stored. User ID consists of user name and domain name.subnode
- a String
value is a node path where data is
stored. Node path has the same form as directory path on file system:
/root/subnode1/subnode2.
key
- a String
with which the needed values list is
associated.
String[]
value
UserNotFoundException
- if user id hasn't been found in reository.String getTempData(String subnode, String key, String def) throws TigaseDBException
subnode
- a String
value is a node path where data is
stored. Node path has the same form as directory path on file system:
/root/subnode1/subnode2.
key
- a String
with which the needed value is
associated.def
- a String
value which is returned in case if data
for specified key does not exixist in repository.
String
value for a given subnode and key or def
if no entry has been found.
TigaseDBException
- if there was an error during reading data from the repository.void putDomainTempData(String domain, String subnode, String key, String value) throws TigaseDBException
domain
- is a DNS domain name with which the data is associated.subnode
- a String
value is a node path where data is
stored. Node path has the same form as directory path on file system:
/root/subnode1/subnode2.
key
- a String
with which the specified values list is to
be associated.value
- a String
is an array of values to be assosiated
with the specified key.
TigaseDBException
- if there was an error during writing data to the repository.void putTempData(String subnode, String key, String value) throws TigaseDBException
subnode
- a String
value is a node path where data is
stored. Node path has the same form as directory path on file system:
/root/subnode1/subnode2.
key
- a String
with which the specified values list is to
be associated.value
- a String
is an array of values to be assosiated
with the specified key.
TigaseDBException
- if there was an error during writing data to the repository.void removeDomainTempData(String domain, String subnode, String key) throws TigaseDBException
domain
- is a DNS domain name with which the data is associated.subnode
- a String
value is a node path where data is
stored. Node path has the same form as directory path on file system:
/root/subnode1/subnode2.
key
- a String
with which the specified values list is to
be associated.
TigaseDBException
- if there was an error during writing data to the repository.void removeTempData(String subnode, String key) throws TigaseDBException
subnode
- a String
value is a node path where data is
stored. Node path has the same form as directory path on file system:
/root/subnode1/subnode2.
key
- a String
with which the specified values list is to
be associated.
TigaseDBException
- if there was an error during writing data to the repository.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |