tigase.db
public class UserRepositoryMDImpl extends Object implements UserRepository
| Constructor and Description |
|---|
UserRepositoryMDImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataList(tigase.xmpp.BareJID user,
String subnode,
String key,
String[] list)
Method description
|
void |
addRepo(String domain,
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
|
UserRepository |
getRepo(String domain)
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
|
UserRepository |
removeRepo(String domain)
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
|
void |
setDefault(UserRepository repo)
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(String domain, UserRepository repo)
domain - 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 - TigaseDBExceptionUserNotFoundExceptionpublic String getData(tigase.xmpp.BareJID user, String subnode, String key) throws UserNotFoundException, TigaseDBException
getData in interface UserRepositoryuser - subnode - key - TigaseDBExceptionUserNotFoundExceptionpublic String getData(tigase.xmpp.BareJID user, String key) throws UserNotFoundException, TigaseDBException
getData in interface UserRepositoryuser - key - TigaseDBExceptionUserNotFoundExceptionpublic String[] getDataList(tigase.xmpp.BareJID user, String subnode, String key) throws UserNotFoundException, TigaseDBException
getDataList in interface UserRepositoryuser - subnode - key - TigaseDBExceptionUserNotFoundExceptionpublic String[] getKeys(tigase.xmpp.BareJID user, String subnode) throws UserNotFoundException, TigaseDBException
getKeys in interface UserRepositoryuser - subnode - TigaseDBExceptionUserNotFoundExceptionpublic String[] getKeys(tigase.xmpp.BareJID user) throws UserNotFoundException, TigaseDBException
getKeys in interface UserRepositoryuser - TigaseDBExceptionUserNotFoundExceptionpublic UserRepository getRepo(String domain)
domain - public String getResourceUri()
getResourceUri in interface UserRepositorypublic String[] getSubnodes(tigase.xmpp.BareJID user, String subnode) throws UserNotFoundException, TigaseDBException
getSubnodes in interface UserRepositoryuser - subnode - TigaseDBExceptionUserNotFoundExceptionpublic String[] getSubnodes(tigase.xmpp.BareJID user) throws UserNotFoundException, TigaseDBException
getSubnodes in interface UserRepositoryuser - 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 UserRepositorypublic long getUsersCount(String domain)
getUsersCount in interface UserRepositorydomain - 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 UserRepository removeRepo(String domain)
domain - public 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 void setDefault(UserRepository repo)
repo - public boolean userExists(tigase.xmpp.BareJID user)
userExists in interface UserRepositoryuser - Copyright © 2013 Tigase. All rights reserved.