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