public class ServerStoredContactListIcqImpl
extends java.lang.Object
implements net.kano.joustsim.oscar.BuddyInfoTrackerListener
Constructor and Description |
---|
ServerStoredContactListIcqImpl(OperationSetPersistentPresenceIcqImpl parentOperationSet,
ProtocolProviderServiceIcqImpl icqProvider)
Creates a ServerStoredContactList wrapper for the specified BuddyList.
|
Modifier and Type | Method and Description |
---|---|
void |
addContact(ContactGroupIcqImpl parent,
java.lang.String screenname)
Adds a new contact with the specified screenname to the list under the
specified group.
|
void |
addContact(java.lang.String screenname)
Adds a new contact with the specified screenname to the list under a
default location.
|
protected void |
addContactForUpdate(ContactIcqImpl c)
when there is no alias for contact we must retreive its nickname from server
but when the contact list is loaded the client is not yet registered to
server we wait this and then retreive the nicknames
|
(package private) void |
addGroupListener(ServerStoredGroupListener listener)
Registers the specified group listener so that it would receive events
on group modification/creation/destruction.
|
void |
createGroup(java.lang.String groupName)
Creates the specified group on the server stored contact list.
|
(package private) ContactIcqImpl |
createUnresolvedContact(ContactGroupIcqImpl parentGroup,
net.kano.joustsim.Screenname screenname)
Creates a non resolved contact for the specified address and inside the
specified group.
|
(package private) ContactGroupIcqImpl |
createUnresolvedContactGroup(java.lang.String groupName)
Creates a non resolved contact group for the specified name.
|
(package private) ContactIcqImpl |
createVolatileContact(net.kano.joustsim.Screenname screenname)
Creates a non persistent contact for the specified address.
|
ContactIcqImpl |
findContactByJoustSimBuddy(net.kano.joustsim.oscar.oscar.service.ssi.Buddy buddy)
Returns the Contact with the specified screenname (or icq UIN) or null if
no such screenname was found.
|
ContactIcqImpl |
findContactByScreenName(java.lang.String screenName)
Returns the Contact with the specified screenname (or icq UIN) or null if
no such screenname was found.
|
ContactGroupIcqImpl |
findContactGroup(ContactIcqImpl child)
Returns the ContactGroup containing the specified contact or null
if no such group or contact exist.
|
ContactGroupIcqImpl |
findContactGroup(net.kano.joustsim.oscar.oscar.service.ssi.Group joustSimGroup)
Returns the ContactGroup corresponding to the specified joust sim group.
|
ContactGroupIcqImpl |
findContactGroup(java.lang.String name)
Returns the ConntactGroup with the specified name or null if no such
group was found.
|
int |
findContactGroupIndex(net.kano.joustsim.oscar.oscar.service.ssi.Group joustSimGroup)
Returns the index of the ContactGroup containing the specified joust sim
group.
|
(package private) ContactGroupIcqImpl |
findGroup(net.kano.joustsim.oscar.oscar.service.ssi.Buddy buddy) |
(package private) void |
fireGroupEvent(ContactGroup group,
int eventID)
Creates the corresponding event and notifies all
ServerStoredGroupListeners that the source group has been
removed, changed, renamed or whatever happened to it.
|
(package private) ProtocolProviderServiceIcqImpl |
getParentProvider()
Retrns a reference to the provider that created us.
|
ContactGroup |
getRootGroup()
Returns the root group of the contact list.
|
(package private) void |
init(net.kano.joustsim.oscar.oscar.service.ssi.SsiService joustSimSsiService)
Sets a reference to the currently active and valid instance of
the JoustSIM SsiService that this list is to use for retrieving
server stored information
|
void |
moveContact(ContactIcqImpl contact,
ContactGroupIcqImpl newParent)
Moves the specified contact to the group indicated by
newParent.
|
void |
removeGroup(ContactGroupIcqImpl groupToRemove)
Removes the specified group from the icq buddy list.
|
(package private) void |
removeGroupListener(ServerStoredGroupListener listener)
Removes the specified group listener so that it won't receive further
events on group modification/creation/destruction.
|
void |
renameGroup(ContactGroupIcqImpl groupToRename,
java.lang.String newName)
Renames the specified group according to the specified new name..
|
ServerStoredContactListIcqImpl(OperationSetPersistentPresenceIcqImpl parentOperationSet, ProtocolProviderServiceIcqImpl icqProvider)
parentOperationSet
- the operation set that created us and that
we could use for dispatching subscription eventsicqProvider
- the icqProvider that has instantiated us.public ContactGroup getRootGroup()
void addGroupListener(ServerStoredGroupListener listener)
listener
- the ServerStoredGroupListener to register for group eventsvoid removeGroupListener(ServerStoredGroupListener listener)
listener
- the ServerStoredGroupListener to unregistervoid fireGroupEvent(ContactGroup group, int eventID)
group
- the ContactGroup that has been created/modified/removedeventID
- the id of the event to generate.ProtocolProviderServiceIcqImpl getParentProvider()
public int findContactGroupIndex(net.kano.joustsim.oscar.oscar.service.ssi.Group joustSimGroup)
joustSimGroup
- the joust sim group we're looking for.public ContactGroupIcqImpl findContactGroup(java.lang.String name)
name
- the name of the group we're looking for.public ContactGroupIcqImpl findContactGroup(net.kano.joustsim.oscar.oscar.service.ssi.Group joustSimGroup)
joustSimGroup
- the joust sim group we're looking for.public ContactIcqImpl findContactByScreenName(java.lang.String screenName)
screenName
- the screen name (or ICQ UIN) of the contact to find.public ContactIcqImpl findContactByJoustSimBuddy(net.kano.joustsim.oscar.oscar.service.ssi.Buddy buddy)
buddy
- the buddy (or ICQ UIN) of the contact to find.public ContactGroupIcqImpl findContactGroup(ContactIcqImpl child)
child
- the contact whose parent group we're looking for.public void addContact(java.lang.String screenname)
screenname
- the screenname or icq uin of the contact to add.ContactIcqImpl createVolatileContact(net.kano.joustsim.Screenname screenname)
screenname
- the UIN/Screenname of the contact to create.ContactIcqImpl createUnresolvedContact(ContactGroupIcqImpl parentGroup, net.kano.joustsim.Screenname screenname)
parentGroup
- the group where the unersolved contact is to be
createdscreenname
- the UIN/Screenname of the contact to create.ContactGroupIcqImpl createUnresolvedContactGroup(java.lang.String groupName)
groupName
- the name of the group to create.public void addContact(ContactGroupIcqImpl parent, java.lang.String screenname)
screenname
- the screenname or icq uin of the contact to add.parent
- the group under which we want the new contact placed.public void createGroup(java.lang.String groupName)
groupName
- a String containing the name of the new group.public void removeGroup(ContactGroupIcqImpl groupToRemove)
groupToRemove
- the group that we'd like removed.public void renameGroup(ContactGroupIcqImpl groupToRename, java.lang.String newName)
groupToRename
- the group that we'd like removed.newName
- the new name of the grouppublic void moveContact(ContactIcqImpl contact, ContactGroupIcqImpl newParent)
contact
- the contact that we'd like moved under the new group.newParent
- the group where we'd like the parent placed.void init(net.kano.joustsim.oscar.oscar.service.ssi.SsiService joustSimSsiService)
joustSimSsiService
- a valid reference to the currently active JoustSIM
SsiService.protected void addContactForUpdate(ContactIcqImpl c)
c
- ContactIcqImplContactGroupIcqImpl findGroup(net.kano.joustsim.oscar.oscar.service.ssi.Buddy buddy)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.