[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ecf-dev] Using Namespaces, IDs etc.
|
Why would it be good to include the username in the ID? One thing I
can think of is that the same bulletin board objects might look
different to different users, if they have different privileges.
So far I've used actual WWW URL's, and some applications actually need
to get the actual WWW URL's somehow (for example the example.bbreader,
which gets them using id.toURI().toURL()), which is kind of bad, I
admit.
One thing I can think of to replace this method of getting the URL's
is to make the ID implementations adapt to URL, since ID's are
IAdaptable anyway and this would require no API change. Another way is
to implement an interface with a getURL() method and use instanceof
to know if an object has a WWW URL. I think I'd prefer adapting.
I would also be inclined to make the ID include the username (if not in
anonymous mode). I assume that the ID could have URI-nature like:
phpbb://slewis@xxxxxxxxxxxxxxxxxxx/index.php?topic=68
or something like that. Having flexibility in the definition of the
targetID is the reason for the ECF namespace extension point (so
basically you can define your own URI for the given service).