core: added bare_jid and identities arguments to discoGetByFeatures:

- bare_jid indicate if we are looking for server implementation (True) of devices (False)
    - identities is an optional filter, only entities with this identities set will be kept
This commit is contained in:
Goffi 2018-03-26 08:01:06 +02:00
commit a9105242d0

View file

@ -738,18 +738,22 @@ doc_return=array of tuple (entity, node identifier, name)
async=
type=method
category=core
sig_in=asbbbs
sig_in=asa(ss)bbbbs
sig_out=(a{sa(sss)}a{sa(sss)}a{sa(sss)})
param_1_default=True
param_2_default=True
param_2_default=False
param_3_default=True
param_4_default=u"@DEFAULT@"
param_4_default=True
param_5_default=True
param_6_default=u"@DEFAULT@"
doc=Discover items of an entity
doc_param_0=namespaces: namespaces of the features to check
doc_param_1=service: True to check server's services
doc_param_2=roster: True to check connected devices from people in roster
doc_param_3=own_jid: True to check profile's jid
doc_param_4=%(doc_profile_key)s
doc_param_1=identities: identities to filter
doc_param_2=bare_jid: if True only retrieve bare jids
if False, retrieve full jids of connected resources
doc_param_3=service: True to check server's services
doc_param_4=roster: True to check connected devices from people in roster
doc_param_5=own_jid: True to check profile's jid
doc_param_6=%(doc_profile_key)s
doc_return=tuple of maps of found entities full jids to their identities. Maps are in this order:
- services entities
- own entities (i.e. entities linked to profile's jid)