There seem to be times when it is desirable to specifically allow or
disallow TitleBar buttons regardless of User and Role. In my implementation,
I've added the following lines to the beginning of
AbstractPortlet.allowClose(RunData runData).
String allowed=getPortletConfig().getInitParameter("_allowClose");
if("true".equals(allowed))
return true;
if("false".equals(allowed))
return false;
This allows for the following in any <portlet-entry> in portlets.xreg
<parameter name="_allowClose" value="false"/>
The same is done with the other TitleBar options (allowCustomize,
allowMinimize, etc.).
David C. Yorke
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>