public class UserRepositoryPool extends Object implements UserRepository
| Constructor and Description |
|---|
UserRepositoryPool() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataList(tigase.xmpp.BareJID user,
String subnode,
String key,
String[] list)
Method description
|
void |
addRepo(UserRepository repo)
Method description
|
void |
addUser(tigase.xmpp.BareJID user)
Method description
|
String |
getData(tigase.xmpp.BareJID user,
String key)
Method description
|
String |
getData(tigase.xmpp.BareJID user,
String subnode,
String key)
Method description
|
String |
getData(tigase.xmpp.BareJID user,
String subnode,
String key,
String def)
Method description
|
String[] |
getDataList(tigase.xmpp.BareJID user,
String subnode,
String key)
Method description
|
String[] |
getKeys(tigase.xmpp.BareJID user)
Method description
|
String[] |
getKeys(tigase.xmpp.BareJID user,
String subnode)
Method description
|
String |
getResourceUri()
Method description
|
String[] |
getSubnodes(tigase.xmpp.BareJID user)
Method description
|
String[] |
getSubnodes(tigase.xmpp.BareJID user,
String subnode)
Method description
|
List<tigase.xmpp.BareJID> |
getUsers()
Method description
|
long |
getUsersCount()
Method description
|
long |
getUsersCount(String domain)
Method description
|
long |
getUserUID(tigase.xmpp.BareJID user)
Method description
|
void |
initRepository(String resource_uri,
Map<String,String> params)
Method description
|
void |
removeData(tigase.xmpp.BareJID user,
String key)
Method description
|
void |
removeData(tigase.xmpp.BareJID user,
String subnode,
String key)
Method description
|
void |
removeSubnode(tigase.xmpp.BareJID user,
String subnode)
Method description
|
void |
removeUser(tigase.xmpp.BareJID user)
Method description
|
void |
setData(tigase.xmpp.BareJID user,
String key,
String value)
Method description
|
void |
setData(tigase.xmpp.BareJID user,
String subnode,
String key,
String value)
Method description
|
void |
setDataList(tigase.xmpp.BareJID user,
String subnode,
String key,
String[] list)
Method description
|
UserRepository |
takeRepo()
Method description
|
boolean |
userExists(tigase.xmpp.BareJID user)
Method description
|
public void addDataList(tigase.xmpp.BareJID user,
String subnode,
String key,
String[] list)
throws UserNotFoundException,
TigaseDBException
addDataList in interface UserRepositoryuser - subnode - key - list - TigaseDBExceptionUserNotFoundExceptionpublic void addRepo(UserRepository repo)
repo - public void addUser(tigase.xmpp.BareJID user)
throws UserExistsException,
TigaseDBException
addUser in interface UserRepositoryuser - TigaseDBExceptionUserExistsExceptionpublic String getData(tigase.xmpp.BareJID user, String subnode, String key, String def) throws UserNotFoundException, TigaseDBException
getData in interface UserRepositoryuser - subnode - key - def - String valueTigaseDBExceptionUserNotFoundExceptionpublic String getData(tigase.xmpp.BareJID user, String subnode, String key) throws UserNotFoundException, TigaseDBException
getData in interface UserRepositoryuser - subnode - key - String valueTigaseDBExceptionUserNotFoundExceptionpublic String getData(tigase.xmpp.BareJID user, String key) throws UserNotFoundException, TigaseDBException
getData in interface UserRepositoryuser - key - String valueTigaseDBExceptionUserNotFoundExceptionpublic String[] getDataList(tigase.xmpp.BareJID user, String subnode, String key) throws UserNotFoundException, TigaseDBException
getDataList in interface UserRepositoryuser - subnode - key - String[] valueTigaseDBExceptionUserNotFoundExceptionpublic String[] getKeys(tigase.xmpp.BareJID user, String subnode) throws UserNotFoundException, TigaseDBException
getKeys in interface UserRepositoryuser - subnode - String[] valueTigaseDBExceptionUserNotFoundExceptionpublic String[] getKeys(tigase.xmpp.BareJID user) throws UserNotFoundException, TigaseDBException
getKeys in interface UserRepositoryuser - String[] valueTigaseDBExceptionUserNotFoundExceptionpublic String getResourceUri()
getResourceUri in interface UserRepositoryString value representing database connection string.public String[] getSubnodes(tigase.xmpp.BareJID user, String subnode) throws UserNotFoundException, TigaseDBException
getSubnodes in interface UserRepositoryuser - subnode - String[] value is an array of all direct subnodes.TigaseDBExceptionUserNotFoundExceptionpublic String[] getSubnodes(tigase.xmpp.BareJID user) throws UserNotFoundException, TigaseDBException
getSubnodes in interface UserRepositoryuser - String[] value is an array of all root
nodes for given user.TigaseDBExceptionUserNotFoundExceptionpublic long getUserUID(tigase.xmpp.BareJID user)
throws TigaseDBException
getUserUID in interface UserRepositoryuser - TigaseDBExceptionpublic List<tigase.xmpp.BareJID> getUsers() throws TigaseDBException
getUsers in interface UserRepositoryTigaseDBExceptionpublic long getUsersCount()
getUsersCount in interface UserRepositorylong number of registered users in the repository.public long getUsersCount(String domain)
getUsersCount in interface UserRepositorydomain - long number of registered users in the repository.public void initRepository(String resource_uri, Map<String,String> params) throws DBInitException
initRepository in interface UserRepositoryresource_uri - params - DBInitExceptionpublic void removeData(tigase.xmpp.BareJID user,
String subnode,
String key)
throws UserNotFoundException,
TigaseDBException
removeData in interface UserRepositoryuser - subnode - key - TigaseDBExceptionUserNotFoundExceptionpublic void removeData(tigase.xmpp.BareJID user,
String key)
throws UserNotFoundException,
TigaseDBException
removeData in interface UserRepositoryuser - key - TigaseDBExceptionUserNotFoundExceptionpublic void removeSubnode(tigase.xmpp.BareJID user,
String subnode)
throws UserNotFoundException,
TigaseDBException
removeSubnode in interface UserRepositoryuser - subnode - TigaseDBExceptionUserNotFoundExceptionpublic void removeUser(tigase.xmpp.BareJID user)
throws UserNotFoundException,
TigaseDBException
removeUser in interface UserRepositoryuser - TigaseDBExceptionUserNotFoundExceptionpublic void setData(tigase.xmpp.BareJID user,
String subnode,
String key,
String value)
throws UserNotFoundException,
TigaseDBException
setData in interface UserRepositoryuser - subnode - key - value - TigaseDBExceptionUserNotFoundExceptionpublic void setData(tigase.xmpp.BareJID user,
String key,
String value)
throws UserNotFoundException,
TigaseDBException
setData in interface UserRepositoryuser - key - value - TigaseDBExceptionUserNotFoundExceptionpublic void setDataList(tigase.xmpp.BareJID user,
String subnode,
String key,
String[] list)
throws UserNotFoundException,
TigaseDBException
setDataList in interface UserRepositoryuser - subnode - key - list - TigaseDBExceptionUserNotFoundExceptionpublic UserRepository takeRepo()
public boolean userExists(tigase.xmpp.BareJID user)
userExists in interface UserRepositoryuser - boolean valueCopyright © 2013 Tigase. All rights reserved.