@Bean(name="privacyListOfflineCache", parent=JabberIqPrivacy.class, active=false) public static class JabberIqPrivacy.PrivacyListOfflineCache extends Object implements SessionManagerHandler, Initializable, UnregisterAware
COMMIT_HANDLER_KEY
Constructor and Description |
---|
PrivacyListOfflineCache() |
Modifier and Type | Method and Description |
---|---|
void |
beforeUnregister()
Method called before bean unregister.
|
void |
clear() |
JID |
getComponentId() |
protected PrivacyList |
getPrivacyList(BareJID userJID) |
void |
handleDomainChange(String domain,
XMPPResourceConnection conn) |
void |
handleLogin(BareJID userId,
XMPPResourceConnection conn) |
void |
handleLogout(BareJID userId,
XMPPResourceConnection conn) |
void |
handlePresenceSet(XMPPResourceConnection conn) |
void |
handleResourceBind(XMPPResourceConnection conn) |
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
boolean |
isLocalDomain(String domain,
boolean includeComponents) |
protected PrivacyList |
loadList(BareJID userJID) |
void |
setCacheSize(int cacheSize) |
protected void |
userConnected(UserConnectedEvent event) |
public void clear()
public JID getComponentId()
getComponentId
in interface SessionManagerHandler
public void handleLogin(BareJID userId, XMPPResourceConnection conn)
handleLogin
in interface SessionManagerHandler
public void handleDomainChange(String domain, XMPPResourceConnection conn)
handleDomainChange
in interface SessionManagerHandler
public void handleLogout(BareJID userId, XMPPResourceConnection conn)
handleLogout
in interface SessionManagerHandler
public void handlePresenceSet(XMPPResourceConnection conn)
handlePresenceSet
in interface SessionManagerHandler
public void handleResourceBind(XMPPResourceConnection conn)
handleResourceBind
in interface SessionManagerHandler
public boolean isLocalDomain(String domain, boolean includeComponents)
isLocalDomain
in interface SessionManagerHandler
public void initialize()
Initializable
initialize
in interface Initializable
public void beforeUnregister()
UnregisterAware
beforeUnregister
in interface UnregisterAware
public void setCacheSize(int cacheSize)
@HandleEvent protected void userConnected(UserConnectedEvent event)
protected PrivacyList getPrivacyList(BareJID userJID)
protected PrivacyList loadList(BareJID userJID) throws NotAuthorizedException, TigaseDBException
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.