Package com.dotcms.repackage.javax.portlet

Examples of com.dotcms.repackage.javax.portlet.PortletModeException


    if (_portletReq != null) {
      if (!getPortlet().hasPortletMode(
          _portletReq.getResponseContentType(), portletMode)) {

        throw new PortletModeException(
          portletMode.toString(), portletMode);
      }
    }

    _portletMode = portletMode;
View Full Code Here


    if (_redirectLocation != null) {
      throw new IllegalStateException();
    }

    if (!_req.isPortletModeAllowed(portletMode)) {
      throw new PortletModeException(portletMode.toString(), portletMode);
    }

    try {
      _portletMode = PortletMode.VIEW;
//      _portletMode = PortalUtil.updatePortletMode(
//        _portletName, _user, _layout, portletMode);

      _req.setPortletMode(_portletMode);
    }
    catch (Exception e) {
      throw new PortletModeException(e, portletMode);
    }

    _calledSetRenderParameter = true;
  }
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.javax.portlet.PortletModeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.