[opencms-dev] Suggestion: make CmsUser available in I_CmsWidget / A_Widget
Mathias Lin | SYSVISION
mail at mathiaslin.com
Fri May 1 08:31:50 CEST 2009
Hi Alkacon,
I needed a custom widget (derived from simple text input widget
CmsInputWidget), that is either read-only or read-write depending on the
current user/current user's groups.
Therefore I added setter and getter for CmsUser in I_CmsWidget and
A_CmsWidget and pass the user from the editor to the widget (in my case I do
it in the constructor public CmsXmlContentEditor(CmsJspActionElement jsp) of
CmsXmlContentEditor.
I find it helpful and can imagine it's very useful in many cases (especially
for custom widgets) to have the current user available in the widget class
to implement custom behaviours of the widgets.
Therefore my question if it wouldn't be good to add/modify this in the
OpenCms core?
Mathias
-----
Mathias Lin
SYSVISION Ltd., China
http://www.sysvision.com
--
View this message in context: http://www.nabble.com/Suggestion%3A-make-CmsUser-available-in-I_CmsWidget---A_Widget-tp23328962p23328962.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list