[Yanel-dev] Enhancing the "User" API
Michael Wechner
michael.wechner at wyona.com
Fri Nov 12 09:42:13 CET 2010
Hi
We would like to introduce a "profile picture" per user and do this
generically, which
means we would have to enhance the User API. But it seems to me that we
probably
want to attach more stuff to a user in the future.
Of course one can always extend the interface with a custom interface
and cast it within
other custom classes, but this is not really an approach re generic
stuff and since we don't
have versioned interfaces within the security API (whereas maybe we
should introduce this),
it also will break custom implementations.
Hence I thought maybe something like the below would make sense
src/core/java/org/wyona/security/core/api/User.java
/**
* Get binary property
* @param name Property name
*/
public InputStream getProperty(String name);
/**
* Set binary property
* @param name Property name
*/
public OutputStream setProperty(String name);
WDYT?
Cheers
Michael
More information about the Yanel-development
mailing list