diff options
author | Yana Stamcheva <yana@jitsi.org> | 2008-11-03 15:03:41 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2008-11-03 15:03:41 +0000 |
commit | f2c9964e1c870ed0227836197e7340411323d312 (patch) | |
tree | 74c1bf0c122525f6e20b6c6f75b1591c87901722 /src/net/java/sip/communicator/service/contactlist | |
parent | c5b0fc3781f800813aa69c879394292685b4fffc (diff) | |
download | jitsi-f2c9964e1c870ed0227836197e7340411323d312.zip jitsi-f2c9964e1c870ed0227836197e7340411323d312.tar.gz jitsi-f2c9964e1c870ed0227836197e7340411323d312.tar.bz2 |
Method added to the MetaContactList service and implementation that allows us to obtain all meta contacts for a given protocol provider.
Diffstat (limited to 'src/net/java/sip/communicator/service/contactlist')
-rw-r--r-- | src/net/java/sip/communicator/service/contactlist/MetaContactListService.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/contactlist/MetaContactListService.java b/src/net/java/sip/communicator/service/contactlist/MetaContactListService.java index 7179ebd..543a496 100644 --- a/src/net/java/sip/communicator/service/contactlist/MetaContactListService.java +++ b/src/net/java/sip/communicator/service/contactlist/MetaContactListService.java @@ -6,6 +6,8 @@ */ package net.java.sip.communicator.service.contactlist; +import java.util.*; + import net.java.sip.communicator.service.contactlist.event.*; import net.java.sip.communicator.service.protocol.*; @@ -132,6 +134,34 @@ public interface MetaContactListService public MetaContact findMetaContactByMetaUID(String metaContactID); /** + * Returns a list of all <tt>MetaContact</tt>s containing a protocol contact + * from the given <tt>ProtocolProviderService</tt>. + * + * @param protocolProvider the <tt>ProtocolProviderService</tt> whose + * contacts we're looking for. + * @return a list of all <tt>MetaContact</tt>s containing a protocol contact + * from the given <tt>ProtocolProviderService</tt>. + */ + public Iterator<MetaContact> findAllMetaContactsForProvider( + ProtocolProviderService protocolProvider); + + /** + * Returns a list of all <tt>MetaContact</tt>s contained in the given group + * and containing a protocol contact from the given + * <tt>ProtocolProviderService</tt>. + * + * @param protocolProvider the <tt>ProtocolProviderService</tt> whose + * contacts we're looking for. + * @param metaContactGroup the parent group. + * + * @return a list of all <tt>MetaContact</tt>s containing a protocol contact + * from the given <tt>ProtocolProviderService</tt>. + */ + public Iterator<MetaContact> findAllMetaContactsForProvider( + ProtocolProviderService protocolProvider, + MetaContactGroup metaContactGroup); + + /** * Adds a listener for <tt>MetaContactListChangeEvent</tt>s posted after * the tree changes. * |