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.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 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.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic 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.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic java.lang.String getData(tigase.xmpp.BareJID user,
                                java.lang.String key)
                         throws tigase.db.UserNotFoundException,
                                tigase.db.TigaseDBException
getData in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic 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.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic java.lang.String[] getKeys(tigase.xmpp.BareJID user,
                                  java.lang.String subnode)
                           throws tigase.db.UserNotFoundException,
                                  tigase.db.TigaseDBException
getKeys in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic java.lang.String[] getKeys(tigase.xmpp.BareJID user)
                           throws tigase.db.UserNotFoundException,
                                  tigase.db.TigaseDBException
getKeys in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic java.lang.String getResourceUri()
getResourceUri in interface tigase.db.UserRepositorypublic java.lang.String[] getSubnodes(tigase.xmpp.BareJID user,
                                      java.lang.String subnode)
                               throws tigase.db.UserNotFoundException,
                                      tigase.db.TigaseDBException
getSubnodes in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic java.lang.String[] getSubnodes(tigase.xmpp.BareJID user)
                               throws tigase.db.UserNotFoundException,
                                      tigase.db.TigaseDBException
getSubnodes in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic long getUserUID(tigase.xmpp.BareJID user)
                throws tigase.db.TigaseDBException
getUserUID in interface tigase.db.UserRepositorytigase.db.TigaseDBExceptionpublic java.util.List<tigase.xmpp.BareJID> getUsers()
                                             throws tigase.db.TigaseDBException
getUsers in interface tigase.db.UserRepositorytigase.db.TigaseDBExceptionpublic long getUsersCount()
getUsersCount in interface tigase.db.UserRepositorypublic long getUsersCount(java.lang.String domain)
getUsersCount in interface tigase.db.UserRepositorypublic 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.Repositorytigase.db.DBInitExceptionpublic 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.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic void removeData(tigase.xmpp.BareJID user,
                       java.lang.String key)
                throws tigase.db.UserNotFoundException,
                       tigase.db.TigaseDBException
removeData in interface tigase.db.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic void removeSubnode(tigase.xmpp.BareJID user,
                          java.lang.String subnode)
                   throws tigase.db.UserNotFoundException,
                          tigase.db.TigaseDBException
removeSubnode 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.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic 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.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic 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.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic 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.UserRepositorytigase.db.UserNotFoundExceptiontigase.db.TigaseDBExceptionpublic boolean userExists(tigase.xmpp.BareJID user)
userExists in interface tigase.db.UserRepositorypublic static void setSessionManager(BMSessionManager bmSessionManager)
public static BMSessionManager getSessionManager()
Copyright © 2023. All Rights Reserved.