ポートレットの現行モードを返します。
portalLib.getPortletMode() returns (value PortletModeKind)
mode PortletModeKind; mode = portalLib.getPortletMode();