* @return code
* @exception JspException
*/
public int doEndTag() throws JspException
{
RunData data = (RunData) pageContext.getAttribute(JspService.RUNDATA, PageContext.REQUEST_SCOPE);
String result = null;
try
{
// See if body contains any parameter options
String body = this.getBodyContent() == null ? null : this.getBodyContent().getString();
Hashtable options = new Hashtable();
if (body != null && !body.trim().equalsIgnoreCase(""))
{
StringTokenizer st = new StringTokenizer(body, ";");
String prefix = this.name + ".style.";
while (st.hasMoreTokens())
{
StringTokenizer pair = new StringTokenizer(st.nextToken(), "=");
if (pair.countTokens() == 2)
{
options.put(prefix + pair.nextToken().trim(), pair.nextToken().trim());
}
}
}
boolean canAccess = true;
// If portlet name is specified, it will be used to check security for the parameter
if (this.portlet != null)
{
// Retrieve registry entry and its parameter
PortletEntry entry = (PortletEntry) Registry.getEntry(Registry.PORTLET, this.portlet);
Parameter param = entry.getParameter(this.name);
// Verify security for the parameter
canAccess = JetspeedSecurity.checkPermission((JetspeedUser) data.getUser(),
new PortalResource(entry, param),
JetspeedSecurity.PERMISSION_CUSTOMIZE);
}
if (canAccess)