Hi Markus,
Thanks for the explanation! Sure I can do that and submit the changes,
once I verify the new ProfileEntry class.
Thanks,
Mohamad
Markus Sabadello wrote:
Hello,
Ah that's interesting to know..
Well, in general the Entity ID can be anything that "makes sense" for a
particular context type.
Note that the IContext.open() method returns a String. This is supposed
to be the Entity ID of whoever opened the context. In the case of
contexts that are UN/PW authenticated (such as yours), it often makes
sense to simply use the UN as the Entity ID.
E.g. if I open my Google context with username "markus.sabadello", then
it makes sense to also use that as the Entity ID. I saw that your
IContext.open() implementation already returns the username, which is
exactly what I mean :)
So I think all that's missing is that you should return an IEntity if
someone calls IContext.getEntity("markus.sabadello"), if possible...
Markus
On Mon, Aug 17, 2009 at 6:00 PM, Mohamad
Raja Gani <mohamad.raja@xxxxxxxxxx>
wrote:
Hi Markus,
There was no option in GData API at that time to map the authenticated
user account to an IdAS Entity. But, when I searched the latest GData
API (Version 1.33) documentation today, I could find a new
ProfileEntry class that contains the logged-in user profile. I will try
this out tomorrow and let you know if I could retrieve the user
details.
Can you please explain how should I expose this user's IdAS Entity from
IContext? For example, is there a standard Entity ID that I can use to
return the authenticated user Entity from IContext::getEntity(entityID)
API?
Thanks,
Mohamad Raja
Markus Sabadello wrote:
Hi Mohamad,
Not sure if you are still doing anything related to the Google CP which
you contributed to Higgins, but I have a question.
If I understand correctly, if I use it to access my "markus.sabadello"
Google account, the CP will map all my Google contacts to IdAS Entities
with some attributes. My question is, does it (or could it) also map my
OWN account ("markus.sabadello") to an IdAS Entity? Or only my contacts?
Or in other words, does the Gdata API you are using provide a way to
read anything interesting about my own account, or only about my
contacts?
The reason why I'm asking is that if the CP could expose one's own
account as an IdAS Entity, then we could use UDIs (see http://wiki.eclipse.org/UDI)
to point to Google accounts in a globally resolvable way.
thanks
Markus
|