[Yanel-dev] Introducing User.getFirstname() and User.getLastname()

basZero baszero at gmail.com
Thu Mar 22 13:48:50 CET 2012


Hi Michael,
I'd go for a backwards compatible approach: maybe there is a possibility to
extend the current YarepUser class with a new one (YarepUserV2) like you do
it when you extend it for realm specific user properties.

Cheers
Balz

On Thu, Mar 22, 2012 at 1:45 PM, Michael Wechner
<michael.wechner at wyona.com>wrote:

> Hi
>
> Currently the interface
>
> org/wyona/security/core/api/**User
>
> only supports
>
> org/wyona/security/core/api/**User#getName() (inherited from
> org/wyona/security/core/api/**Item).
>
> which is also supported by
>
> src/core/java/org/wyona/**security/core/api/Group
>
> because it also inherits the Item class.
>
> From a User class point of view this is not really good, because one would
> expect
>
> getFirstname()
> getLastname()
>
> Also it would be nice to set "custom" properties (String and
> Binary/Streams)
>
> setProperty(String name)
> getProperty(String name)
>
> etc.
>
> Hence I would like to enhance the API, but this means that all
> implementations based on this API will break.
> As an alternative one could introduce a new version of this API, which
> would make it completely backwards compatible,
> but more complicated.
>
> WDYT?
>
> Thanks
>
> Michael
> --
> Yanel-development mailing list Yanel-development at wyona.com
> http://lists.wyona.org/cgi-**bin/mailman/listinfo/yanel-**development<http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-development/attachments/20120322/397b6994/attachment.html>


More information about the Yanel-development mailing list