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

Michael Wechner michael.wechner at wyona.com
Thu Mar 22 13:45:14 CET 2012


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


More information about the Yanel-development mailing list