if (content.supportsPortletMode(PortletMode.EDIT) && pageActionAccess.isEditAllowed() &&
pageActionAccess.checkPortletMode(fragmentId, portletName, PortletMode.EDIT))
{
actions.add(createPortletModeAction(window, JetspeedActions.EDIT, PortletMode.EDIT, resourceBase));
}
if (content.supportsPortletMode(PortletMode.HELP) &&
pageActionAccess.checkPortletMode(fragmentId, portletName, PortletMode.HELP))
{
actions.add(createPortletModeAction(window, JetspeedActions.HELP, PortletMode.HELP, resourceBase));
}
}