From:
Scott Lewis [mailto:slewis@xxxxxxxxxxxxx]
Sent: Tuesday, April
03, 2007 6:13
PM
To: Paul Trevithick
Subject: Re: [ecf-dev]
Need advice
for BBAPI refactoring
Paul
Trevithick
wrote:
Erkki wrote:
2) The Presence API prefers returning ID-s instead of full objects. For
example, IIMMessage.getFromID() returns ID instead of some kind of User
object. Bulletin Board API currently returns full objects in most cases.
This originates from my own usage of the API -- it was/is mostly used in
a way that usually expects to easily find the posters name and other
details about a post. For example some Velocity templates could be
written to directly reference a message author's name if given an
IMessageBase object: ${message.from.name}.
In Higgins we do have "user objects" called (Digital Subjects) as first
class objects and insist that each must have exactly one "subjectId"
Attribute. A subjectId is an Attribute whose value is guaranteed to be
locally unique within the container.
Hi Paul
I looked at IDigitalSubject here:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.higgins/plugins/org.eclipse.higgins/src/org/eclipse/higgins/core/?root=Technology_Project
Sorry
that’s
ancient stuff we don’t use anymore. We’ll delete that eventually.
See IDigitalSubject here http://download.eclipse.org/technology/higgins/idas/lastNightlyBuild/javadoc/
.
And I guess I'm not sure what the 'subjectId' is that you are referring
to...i.e. is it the String returned by 'getName()'? Or is it in some
named ISubjectRelationship or something else?
What
I’m
calling a subjectId is the string returned from
IDigitalSubject.getUniqueID()