How can I get a list of all the users in a Tigase Xmpp server? - tigase

How can I get a list of all the users in a Tigase Xmpp server?
What I'd like to do is to allow a user to be able to select users from a list queried from the database, and add them into their Roster contacts list.


Need Clarification on Facebook Platform Policy with Regards to Storing Graph Data

Our iOS app allows users to store information about their immediate relatives: name, picture, contact info, birthdate, etc. We want to allow users who login with Facebook to populate that information automatically from the Graph API as an alternative to entering it manually. However, it's not clear to me whether this is allowed by the FacebookSDK terms of service. Specifically, clause 3.14 of the platform policy:
If you use friend data from Facebook to establish social connections in your app, only do so if each person in that connection has granted you access to that information.
I'm not clear on what it means to "establish social connections" in this context. Am I allowed to store social graph data about the user's family members, either locally or remotely?

How to get billing info for each account returned in getAllOwnedAccounts() in Softlayer

I am developing a billing application using Softlayer.
My userID and API Key is from my Brand's Master account, just below Brand, and I have created 3 accounts under my brand. I can retrieve the list of accounts using getAllOwnedAccounts(). However, I need to retrieve additional information for each account, such as invoices (and associated invoice items) and storage (LUNs, NAS, etc.).
How can I retrieve this data using my Master Account? API calls using client['Account'].getInvoices() don't return anything.
the only way to get that information from your accounts, using API, is using their API credentials in your request. Currently when you call the API
you are getting empty result, becasue you are using the credentials of your Brand's Master account, you need to use the credentials of the accounts that you created.

How do I retrieve the users of a specific group or data store through OpenAm 11 SOAP (or REST) web-services?

I have the following requirement: Retrieve the users from OpenAm which are members of a specific group. Alternatively, if possible, retrieve users defined in a specific data store. All this through web-services.
We have our own JDBC data store implementation which reads users from and authenticates users against our database. That works fine. The data store is one of two data stores in our sub realm. The other data store points to an LDAP.
Now I need to read the users (and later the user attributes) from users being defined in the LDAP data store, and only users of a specific group, if possible.
Previously we did that with wso2. There they had a web-service method that allowed you to retrieve users of a specific group only.
Currently I am looking into the IdentityServices web-service of OpenAm, and I am able to list all users of my realm, and get the attributes. But for performance reasons, it would be nice to be able to refine the search. Is that possible? Am I looking at the wrong web-service?

Outbound E-mail Profile API: Get list of e-mailaddresses

I'm working on a Java console application that needs to go through all the e-mailaddresses in the frontend database in Tridion Outbound E-mail 2011 and change a certain extended field of that contact.
I've gone through the Subscription API documentation for clues on how to get a listing of all the e-mailaddresses, but I'm getting stuck there. Is there any clean way to do this through the API, without resorting to database queries?
It is not possible to get a list of Contacts using the Subscription API. It is meant primarily for working with single Contacts, who update their profile on your website.
For bulk management of Contacts, you should use Tridion.AudienceManagement.API on your Content Management server instead. The changes will then be synchronized to all of your websites.
You should not change anything directly in the database, as you will get issues with synchronization.

SignalR: Get clients list for PersistentConnection

I searched google, SignalR wiki and SignalR code itself (for example, Broadcast function, Signaler and more), and found nothing.
I wrote ClientIDFactory and successfuly set ClientID to UserID.
It works, but now user cannot connect from more than one browser/tab.
I modified the function and added random string to the UserID. It works.
Now I need to find a way to get all connections for user(s), to send specific message to specific UserID.
I think about looping around client list, and find the UserID by string.split(), but other ways may be usefull.
I am not using Hub. only PersistentConnection.
I think your approach is not right hence this has surfaced. You have connect and disconnect method on server side to hook into. On Connection you need to persist connection with some meta data and then even if server restarts you can check meta data for unique user or unique client and reconnect them with new ID.
For example
If you are buying an item from mobile and you are not logged in (no meta data to relate to user) and you place 2 items in your basket. When you go on your desktop you wont see those two items in basket because server cannot relate to you as same user coming from same machine.
If you are logged in (meta data like email or username attached to current connection ID) and you browse from mobile and add 2 items in basket. When you login to your desktop (the new Connection ID can then be linked with same meta data email or userid) and then you can tell that its same user. If you then need to send a message to that user you have to send it to two client IDs which you can do by grouping them or sending it to two IDs.
If client lost connection ID it should be disconnected and on new connection it will have new connection ID so you should be thinking about mapping them.
If I connect with 7 IDs from 7 different mobiles notification would be sent to all 7 as long as your system knows that they are all intended recipient of this notifications. Implementation of persisting this knowledge is not part of signalR and so you have to implement it yourself.