public class NonAuthUserRepositoryImpl extends Object implements NonAuthUserRepository
OFFLINE_DATA_NODE, PUBLIC_DATA_NODE| Constructor and Description |
|---|
NonAuthUserRepositoryImpl(UserRepository userRep,
tigase.xmpp.BareJID defDomain,
boolean autoCreateOffline)
Constructs ...
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOfflineData(tigase.xmpp.BareJID user,
String subnode,
String key,
String value)
Method description
|
void |
addOfflineDataList(tigase.xmpp.BareJID user,
String subnode,
String key,
String[] list)
Method description
|
String |
getDomainTempData(tigase.xmpp.BareJID domain,
String subnode,
String key,
String def)
Method description
|
String |
getPublicData(tigase.xmpp.BareJID user,
String subnode,
String key,
String def)
Method description
|
String[] |
getPublicDataList(tigase.xmpp.BareJID user,
String subnode,
String key)
Method description
|
String |
getTempData(String subnode,
String key,
String def)
Method description
|
void |
putDomainTempData(tigase.xmpp.BareJID domain,
String subnode,
String key,
String value)
Method description
|
void |
putTempData(String subnode,
String key,
String value)
Method description
|
void |
removeDomainTempData(tigase.xmpp.BareJID domain,
String subnode,
String key)
Method description
|
void |
removeTempData(String subnode,
String key)
Method description
|
public NonAuthUserRepositoryImpl(UserRepository userRep, tigase.xmpp.BareJID defDomain, boolean autoCreateOffline)
userRep - defDomain - autoCreateOffline - public void addOfflineData(tigase.xmpp.BareJID user,
String subnode,
String key,
String value)
throws UserNotFoundException,
DataOverwriteException
addOfflineData in interface NonAuthUserRepositoryuser - subnode - key - value - DataOverwriteExceptionUserNotFoundExceptionpublic void addOfflineDataList(tigase.xmpp.BareJID user,
String subnode,
String key,
String[] list)
throws UserNotFoundException
addOfflineDataList in interface NonAuthUserRepositoryuser - subnode - key - list - UserNotFoundExceptionpublic String getDomainTempData(tigase.xmpp.BareJID domain, String subnode, String key, String def) throws TigaseDBException
getDomainTempData in interface NonAuthUserRepositorydomain - subnode - key - def - String value for a given subnode and key or def
if no entry has been found.TigaseDBExceptionpublic String getPublicData(tigase.xmpp.BareJID user, String subnode, String key, String def) throws UserNotFoundException
getPublicData in interface NonAuthUserRepositoryuser - subnode - key - def - String value for a given subnode and key or def
if no entry has been found.UserNotFoundExceptionpublic String[] getPublicDataList(tigase.xmpp.BareJID user, String subnode, String key) throws UserNotFoundException
getPublicDataList in interface NonAuthUserRepositoryuser - subnode - key - String[] valueUserNotFoundExceptionpublic String getTempData(String subnode, String key, String def) throws TigaseDBException
getTempData in interface NonAuthUserRepositorysubnode - key - def - String value for a given subnode and key or def
if no entry has been found.TigaseDBExceptionpublic void putDomainTempData(tigase.xmpp.BareJID domain,
String subnode,
String key,
String value)
throws TigaseDBException
putDomainTempData in interface NonAuthUserRepositorydomain - subnode - key - value - TigaseDBExceptionpublic void putTempData(String subnode, String key, String value) throws TigaseDBException
putTempData in interface NonAuthUserRepositorysubnode - key - value - TigaseDBExceptionpublic void removeDomainTempData(tigase.xmpp.BareJID domain,
String subnode,
String key)
throws TigaseDBException
removeDomainTempData in interface NonAuthUserRepositorydomain - subnode - key - TigaseDBExceptionpublic void removeTempData(String subnode, String key) throws TigaseDBException
removeTempData in interface NonAuthUserRepositorysubnode - key - TigaseDBExceptionCopyright © 2013 Tigase. All rights reserved.