Package tigase.xmpp.impl
Class JabberIqPrivacy.PrivacyListOfflineCache
- java.lang.Object
-
- tigase.xmpp.impl.JabberIqPrivacy.PrivacyListOfflineCache
-
- All Implemented Interfaces:
Initializable,UnregisterAware,SessionManagerHandler
- Enclosing class:
- JabberIqPrivacy
@Bean(name="privacyListOfflineCache", parent=JabberIqPrivacy.class, active=false) public static class JabberIqPrivacy.PrivacyListOfflineCache extends java.lang.Object implements SessionManagerHandler, Initializable, UnregisterAware
-
-
Field Summary
-
Fields inherited from interface tigase.server.xmppsession.SessionManagerHandler
COMMIT_HANDLER_KEY
-
-
Constructor Summary
Constructors Constructor Description PrivacyListOfflineCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeUnregister()Method called before bean unregister.voidclear()JIDgetComponentId()protected PrivacyListgetPrivacyList(BareJID userJID)voidhandleDomainChange(java.lang.String domain, XMPPResourceConnection conn)voidhandleLogin(BareJID userId, XMPPResourceConnection conn)voidhandleLogout(BareJID userId, XMPPResourceConnection conn)voidhandlePresenceSet(XMPPResourceConnection conn)voidhandleResourceBind(XMPPResourceConnection conn)voidinitialize()Method will be called, when bean will be created, configured and ready to use.booleanisLocalDomain(java.lang.String domain, boolean includeComponents)protected PrivacyListloadList(BareJID userJID)voidsetCacheSize(int cacheSize)protected voiduserConnected(UserConnectedEvent event)
-
-
-
Method Detail
-
clear
public void clear()
-
getComponentId
public JID getComponentId()
- Specified by:
getComponentIdin interfaceSessionManagerHandler
-
handleLogin
public void handleLogin(BareJID userId, XMPPResourceConnection conn)
- Specified by:
handleLoginin interfaceSessionManagerHandler
-
handleDomainChange
public void handleDomainChange(java.lang.String domain, XMPPResourceConnection conn)- Specified by:
handleDomainChangein interfaceSessionManagerHandler
-
handleLogout
public void handleLogout(BareJID userId, XMPPResourceConnection conn)
- Specified by:
handleLogoutin interfaceSessionManagerHandler
-
handlePresenceSet
public void handlePresenceSet(XMPPResourceConnection conn)
- Specified by:
handlePresenceSetin interfaceSessionManagerHandler
-
handleResourceBind
public void handleResourceBind(XMPPResourceConnection conn)
- Specified by:
handleResourceBindin interfaceSessionManagerHandler
-
isLocalDomain
public boolean isLocalDomain(java.lang.String domain, boolean includeComponents)- Specified by:
isLocalDomainin interfaceSessionManagerHandler
-
initialize
public void initialize()
Description copied from interface:InitializableMethod will be called, when bean will be created, configured and ready to use.- Specified by:
initializein interfaceInitializable
-
beforeUnregister
public void beforeUnregister()
Description copied from interface:UnregisterAwareMethod called before bean unregister.- Specified by:
beforeUnregisterin interfaceUnregisterAware
-
setCacheSize
public void setCacheSize(int cacheSize)
-
userConnected
@HandleEvent protected void userConnected(UserConnectedEvent event)
-
getPrivacyList
protected PrivacyList getPrivacyList(BareJID userJID)
-
loadList
protected PrivacyList loadList(BareJID userJID) throws NotAuthorizedException, TigaseDBException
-
-