@Bean(name="dynamic-rosters", parent=SessionManager.class, active=false) public class DynamicRoster extends Object implements RegistrarBean, Initializable, UnregisterAware
Constructor and Description |
---|
DynamicRoster() |
Modifier and Type | Method and Description |
---|---|
static JID[] |
addBuddies(XMPPResourceConnection session,
Map<String,Object> settings,
JID[] buddies) |
static JID[] |
addBuddies(XMPPResourceConnection session,
Map<String,Object> settings,
JID[] buddies,
EnumSet<RosterAbstract.SubscriptionType> subscrs) |
static void |
addBuddiesToList(List<JID> list,
JID[] buddies) |
void |
beforeUnregister()
Method called before bean unregister.
|
static JID[] |
getBuddies(XMPPResourceConnection session,
Map<String,Object> settings) |
static List<JID> |
getBuddiesList(XMPPResourceConnection session,
Map<String,Object> settings) |
static Element |
getBuddyItem(XMPPResourceConnection session,
Map<String,Object> settings,
JID buddy) |
static DynamicRosterIfc[] |
getDynamicRosters(Map<String,Object> settings) |
static Element |
getItemExtraData(XMPPResourceConnection session,
Map<String,Object> settings,
Element item) |
static List<Element> |
getRosterItems(XMPPResourceConnection session,
Map<String,Object> settings) |
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
void |
register(Kernel kernel)
Method called when bean is being registered allowing developer to programatically register other beans.
|
static void |
setItemExtraData(XMPPResourceConnection session,
Map<String,Object> settings,
Element item) |
void |
unregister(Kernel kernel)
Method called while bean is being unregistered.
|
public static JID[] addBuddies(XMPPResourceConnection session, Map<String,Object> settings, JID[] buddies) throws NotAuthorizedException, RosterRetrievingException, RepositoryAccessException
public static JID[] addBuddies(XMPPResourceConnection session, Map<String,Object> settings, JID[] buddies, EnumSet<RosterAbstract.SubscriptionType> subscrs) throws NotAuthorizedException, RosterRetrievingException, RepositoryAccessException
public static JID[] getBuddies(XMPPResourceConnection session, Map<String,Object> settings) throws NotAuthorizedException, RosterRetrievingException, RepositoryAccessException
public static List<JID> getBuddiesList(XMPPResourceConnection session, Map<String,Object> settings) throws NotAuthorizedException, RosterRetrievingException, RepositoryAccessException
public static Element getBuddyItem(XMPPResourceConnection session, Map<String,Object> settings, JID buddy) throws NotAuthorizedException, RosterRetrievingException, RepositoryAccessException
public static DynamicRosterIfc[] getDynamicRosters(Map<String,Object> settings)
public static Element getItemExtraData(XMPPResourceConnection session, Map<String,Object> settings, Element item)
public static List<Element> getRosterItems(XMPPResourceConnection session, Map<String,Object> settings) throws NotAuthorizedException, RosterRetrievingException, RepositoryAccessException
public static void setItemExtraData(XMPPResourceConnection session, Map<String,Object> settings, Element item)
public void register(Kernel kernel)
RegistrarBean
register
in interface RegistrarBean
kernel
- - instance from local scopepublic void unregister(Kernel kernel)
RegistrarBean
unregister
in interface RegistrarBean
kernel
- - instance from local scopepublic void beforeUnregister()
UnregisterAware
beforeUnregister
in interface UnregisterAware
public void initialize()
Initializable
initialize
in interface Initializable
Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.