public class BMUserRepo
extends java.lang.Object
implements tigase.db.UserRepository
Constructor and Description |
---|
BMUserRepo() |
Modifier and Type | Method and Description |
---|---|
void |
addDataList(tigase.xmpp.BareJID user,
java.lang.String subnode,
java.lang.String key,
java.lang.String[] list) |
void |
addUser(tigase.xmpp.BareJID user) |
java.lang.String |
getData(tigase.xmpp.BareJID user,
java.lang.String key) |
java.lang.String |
getData(tigase.xmpp.BareJID user,
java.lang.String subnode,
java.lang.String key) |
java.lang.String |
getData(tigase.xmpp.BareJID user,
java.lang.String subnode,
java.lang.String key,
java.lang.String def) |
java.lang.String[] |
getDataList(tigase.xmpp.BareJID user,
java.lang.String subnode,
java.lang.String key) |
java.lang.String[] |
getKeys(tigase.xmpp.BareJID user) |
java.lang.String[] |
getKeys(tigase.xmpp.BareJID user,
java.lang.String subnode) |
java.lang.String |
getResourceUri() |
static BMSessionManager |
getSessionManager() |
java.lang.String[] |
getSubnodes(tigase.xmpp.BareJID user) |
java.lang.String[] |
getSubnodes(tigase.xmpp.BareJID user,
java.lang.String subnode) |
java.util.List<tigase.xmpp.BareJID> |
getUsers() |
long |
getUsersCount() |
long |
getUsersCount(java.lang.String domain) |
long |
getUserUID(tigase.xmpp.BareJID user) |
void |
initRepository(java.lang.String resource_uri,
java.util.Map<java.lang.String,java.lang.String> params) |
void |
removeData(tigase.xmpp.BareJID user,
java.lang.String key) |
void |
removeData(tigase.xmpp.BareJID user,
java.lang.String subnode,
java.lang.String key) |
void |
removeSubnode(tigase.xmpp.BareJID user,
java.lang.String subnode) |
void |
removeUser(tigase.xmpp.BareJID user) |
void |
setData(tigase.xmpp.BareJID user,
java.lang.String key,
java.lang.String value) |
void |
setData(tigase.xmpp.BareJID user,
java.lang.String subnode,
java.lang.String key,
java.lang.String value) |
void |
setDataList(tigase.xmpp.BareJID user,
java.lang.String subnode,
java.lang.String key,
java.lang.String[] list) |
static void |
setSessionManager(BMSessionManager bmSessionManager) |
boolean |
userExists(tigase.xmpp.BareJID user) |
public void addDataList(tigase.xmpp.BareJID user, java.lang.String subnode, java.lang.String key, java.lang.String[] list) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
addDataList
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public void addUser(tigase.xmpp.BareJID user) throws tigase.db.UserExistsException, tigase.db.TigaseDBException
addUser
in interface tigase.db.UserRepository
tigase.db.UserExistsException
tigase.db.TigaseDBException
public java.lang.String getData(tigase.xmpp.BareJID user, java.lang.String subnode, java.lang.String key, java.lang.String def) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getData
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public java.lang.String getData(tigase.xmpp.BareJID user, java.lang.String subnode, java.lang.String key) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getData
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public java.lang.String getData(tigase.xmpp.BareJID user, java.lang.String key) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getData
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public java.lang.String[] getDataList(tigase.xmpp.BareJID user, java.lang.String subnode, java.lang.String key) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getDataList
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public java.lang.String[] getKeys(tigase.xmpp.BareJID user, java.lang.String subnode) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getKeys
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public java.lang.String[] getKeys(tigase.xmpp.BareJID user) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getKeys
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public java.lang.String getResourceUri()
getResourceUri
in interface tigase.db.UserRepository
public java.lang.String[] getSubnodes(tigase.xmpp.BareJID user, java.lang.String subnode) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getSubnodes
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public java.lang.String[] getSubnodes(tigase.xmpp.BareJID user) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getSubnodes
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public long getUserUID(tigase.xmpp.BareJID user) throws tigase.db.TigaseDBException
getUserUID
in interface tigase.db.UserRepository
tigase.db.TigaseDBException
public java.util.List<tigase.xmpp.BareJID> getUsers() throws tigase.db.TigaseDBException
getUsers
in interface tigase.db.UserRepository
tigase.db.TigaseDBException
public long getUsersCount()
getUsersCount
in interface tigase.db.UserRepository
public long getUsersCount(java.lang.String domain)
getUsersCount
in interface tigase.db.UserRepository
public void initRepository(java.lang.String resource_uri, java.util.Map<java.lang.String,java.lang.String> params) throws tigase.db.DBInitException
initRepository
in interface tigase.db.Repository
tigase.db.DBInitException
public void removeData(tigase.xmpp.BareJID user, java.lang.String subnode, java.lang.String key) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
removeData
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public void removeData(tigase.xmpp.BareJID user, java.lang.String key) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
removeData
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public void removeSubnode(tigase.xmpp.BareJID user, java.lang.String subnode) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
removeSubnode
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public void removeUser(tigase.xmpp.BareJID user) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
removeUser
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public void setData(tigase.xmpp.BareJID user, java.lang.String subnode, java.lang.String key, java.lang.String value) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
setData
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public void setData(tigase.xmpp.BareJID user, java.lang.String key, java.lang.String value) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
setData
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public void setDataList(tigase.xmpp.BareJID user, java.lang.String subnode, java.lang.String key, java.lang.String[] list) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
setDataList
in interface tigase.db.UserRepository
tigase.db.UserNotFoundException
tigase.db.TigaseDBException
public boolean userExists(tigase.xmpp.BareJID user)
userExists
in interface tigase.db.UserRepository
public static void setSessionManager(BMSessionManager bmSessionManager)
public static BMSessionManager getSessionManager()
Copyright © 2021. All Rights Reserved.