public class MongoRepository extends Object implements tigase.db.AuthRepository, tigase.db.UserRepository
| Constructor and Description |
|---|
MongoRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataList(tigase.xmpp.BareJID user,
String subnode,
String key,
String[] list) |
void |
addUser(tigase.xmpp.BareJID user) |
void |
addUser(tigase.xmpp.BareJID user,
String password) |
boolean |
digestAuth(tigase.xmpp.BareJID user,
String digest,
String id,
String alg) |
String |
getData(tigase.xmpp.BareJID user,
String key) |
String |
getData(tigase.xmpp.BareJID user,
String subnode,
String key) |
String |
getData(tigase.xmpp.BareJID user,
String subnode,
String key,
String def) |
String[] |
getDataList(tigase.xmpp.BareJID user,
String subnode,
String key) |
String[] |
getKeys(tigase.xmpp.BareJID user) |
String[] |
getKeys(tigase.xmpp.BareJID user,
String subnode) |
String |
getPassword(tigase.xmpp.BareJID user) |
String |
getResourceUri() |
String[] |
getSubnodes(tigase.xmpp.BareJID user) |
String[] |
getSubnodes(tigase.xmpp.BareJID user,
String subnode) |
List<tigase.xmpp.BareJID> |
getUsers() |
long |
getUsersCount() |
long |
getUsersCount(String domain) |
long |
getUserUID(tigase.xmpp.BareJID user)
Deprecated.
|
void |
initRepository(String resource_uri,
Map<String,String> params) |
void |
logout(tigase.xmpp.BareJID user) |
boolean |
otherAuth(Map<String,Object> authProps) |
boolean |
plainAuth(tigase.xmpp.BareJID user,
String password) |
void |
queryAuth(Map<String,Object> authProps) |
void |
removeData(tigase.xmpp.BareJID user,
String key) |
void |
removeData(tigase.xmpp.BareJID user,
String subnode,
String key) |
void |
removeSubnode(tigase.xmpp.BareJID user,
String subnode) |
void |
removeUser(tigase.xmpp.BareJID user) |
void |
setData(tigase.xmpp.BareJID user,
String key,
String value) |
void |
setData(tigase.xmpp.BareJID user,
String subnode,
String key,
String value) |
void |
setDataList(tigase.xmpp.BareJID user,
String subnode,
String key,
String[] list) |
void |
updatePassword(tigase.xmpp.BareJID user,
String password) |
boolean |
userExists(tigase.xmpp.BareJID user) |
public void initRepository(String resource_uri, Map<String,String> params) throws tigase.db.DBInitException
initRepository in interface tigase.db.Repositorytigase.db.DBInitExceptionpublic void addDataList(tigase.xmpp.BareJID user,
String subnode,
String key,
String[] list)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException
addDataList in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic void addUser(tigase.xmpp.BareJID user)
throws tigase.db.UserExistsException,
tigase.db.TigaseDBException
addUser in interface tigase.db.UserRepositorytigase.db.UserExistsExceptiontigase.db.TigaseDBExceptionpublic String getData(tigase.xmpp.BareJID user, String subnode, String key, String def) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getData in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic String getData(tigase.xmpp.BareJID user, String subnode, String key) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getData in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic String getData(tigase.xmpp.BareJID user, String key) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getData in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic String[] getDataList(tigase.xmpp.BareJID user, String subnode, String key) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getDataList in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic String[] getKeys(tigase.xmpp.BareJID user, String subnode) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getKeys in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic String[] getKeys(tigase.xmpp.BareJID user) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getKeys in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic String getResourceUri()
getResourceUri in interface tigase.db.AuthRepositorygetResourceUri in interface tigase.db.UserRepositorypublic List<tigase.xmpp.BareJID> getUsers() throws tigase.db.TigaseDBException
getUsers in interface tigase.db.UserRepositorytigase.db.TigaseDBExceptionpublic long getUsersCount()
getUsersCount in interface tigase.db.AuthRepositorygetUsersCount in interface tigase.db.UserRepositorypublic long getUsersCount(String domain)
getUsersCount in interface tigase.db.AuthRepositorygetUsersCount in interface tigase.db.UserRepositorypublic boolean userExists(tigase.xmpp.BareJID user)
userExists in interface tigase.db.UserRepositorypublic void setDataList(tigase.xmpp.BareJID user,
String subnode,
String key,
String[] list)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException
setDataList in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic void setData(tigase.xmpp.BareJID user,
String key,
String value)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException
setData in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic void setData(tigase.xmpp.BareJID user,
String subnode,
String key,
String value)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException
setData in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic void removeUser(tigase.xmpp.BareJID user)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException
removeUser in interface tigase.db.AuthRepositoryremoveUser in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic void removeSubnode(tigase.xmpp.BareJID user,
String subnode)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException
removeSubnode in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic void removeData(tigase.xmpp.BareJID user,
String key)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException
removeData in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic void removeData(tigase.xmpp.BareJID user,
String subnode,
String key)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException
removeData in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBException@Deprecated public long getUserUID(tigase.xmpp.BareJID user) throws tigase.db.TigaseDBException
getUserUID in interface tigase.db.UserRepositoryuser - tigase.db.TigaseDBExceptionpublic String[] getSubnodes(tigase.xmpp.BareJID user) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getSubnodes in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic String[] getSubnodes(tigase.xmpp.BareJID user, String subnode) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getSubnodes in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic void addUser(tigase.xmpp.BareJID user,
String password)
throws tigase.db.UserExistsException,
tigase.db.TigaseDBException
addUser in interface tigase.db.AuthRepositorytigase.db.UserExistsExceptiontigase.db.TigaseDBExceptionpublic boolean digestAuth(tigase.xmpp.BareJID user,
String digest,
String id,
String alg)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException,
tigase.db.AuthorizationException
digestAuth in interface tigase.db.AuthRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptiontigase.db.AuthorizationExceptionpublic void logout(tigase.xmpp.BareJID user)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException
logout in interface tigase.db.AuthRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic boolean otherAuth(Map<String,Object> authProps) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException, tigase.db.AuthorizationException
otherAuth in interface tigase.db.AuthRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptiontigase.db.AuthorizationExceptionpublic boolean plainAuth(tigase.xmpp.BareJID user,
String password)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException,
tigase.db.AuthorizationException
plainAuth in interface tigase.db.AuthRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptiontigase.db.AuthorizationExceptionpublic void queryAuth(Map<String,Object> authProps)
queryAuth in interface tigase.db.AuthRepositorypublic String getPassword(tigase.xmpp.BareJID user) throws tigase.db.UserNotFoundException, tigase.db.TigaseDBException
getPassword in interface tigase.db.AuthRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic void updatePassword(tigase.xmpp.BareJID user,
String password)
throws tigase.db.UserNotFoundException,
tigase.db.TigaseDBException
updatePassword in interface tigase.db.AuthRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionCopyright © 2015 "Tigase, Inc.". All rights reserved.