Package javax.portlet

Examples of javax.portlet.PortletModeException


         StateAwareResponse res = (StateAwareResponse)response_;
         res.setPortletMode(mode);
      }
      else
      {
         throw new PortletModeException(
            "The portlet don't support to set a portlet mode by current runtime environment", mode);
      }
   }
View Full Code Here


        // if porlet mode is allowed
        if (supported) {
            this.portletMode = portletMode;
        } else {
            throw new PortletModeException("Can't set this PortletMode",
                                           portletMode);
        }

        redirectAllowed = false;
View Full Code Here


    private boolean isPortletModeAllowed(PortletMode mode)
        throws PortletModeException {
        if (mode == null) {
            throw new PortletModeException(
                EXCEPTIONS.getString("javax.portlet.PortletModeException.null"),
                null);
        }

        return isPortletModeAllowedByPortlet(mode)
View Full Code Here

            }
        }
        String message = EXCEPTIONS.getString(
            "javax.portlet.PortletModeException.portlet", mode.toString());

        throw new PortletModeException(message, mode);
    }
View Full Code Here

            }
        }
        String message = EXCEPTIONS.getString(
            "javax.portlet.PortletModeException.portal", mode.toString());

        throw new PortletModeException(message, mode);
    }
View Full Code Here

      }
      else
      {
         if (!preq.isPortletModeAllowed(portletMode))
         {
            throw new PortletModeException("Not supported", portletMode);
         }

         //
         update.mode = org.gatein.pc.api.Mode.create(portletMode.toString());
      }
View Full Code Here

      else
      {
         // Check possible
         if (!preq.isPortletModeAllowed(portletMode))
         {
            throw new PortletModeException("Not supported", portletMode);
         }

         // Set mode
         url.portletMode = portletMode;
      }
View Full Code Here

   * @throws PortletModeException Dans le cas ou le mode n'est pas autorisé (par
   * le portlet ou le portail) une PortletModeException est levée
   */
  public void setPortletMode(PortletMode portletMode) throws PortletModeException {
    if (!isPortletModeAllowed(portletMode))
      throw new PortletModeException(portletMode + " not allowed",portletMode);
    if (!Constant.portal_context.isPortletModeAllowed(portletMode))
      throw new PortletModeException(portletMode + " not allowed by portal",portletMode);
    this.portletMode = portletMode;
  }
View Full Code Here

         StateAwareResponse res = (StateAwareResponse)response_;
         res.setPortletMode(mode);
      }
      else
      {
         throw new PortletModeException(
            "The portlet don't support to set a portlet mode by current runtime environment", mode);
      }
   }
View Full Code Here

        // if porlet mode is allowed
        if (supported) {
            this.portletMode = portletMode;
        } else {
            throw new PortletModeException("Can't set this PortletMode",
                                           portletMode);
        }

        redirectAllowed = false;
View Full Code Here

TOP

Related Classes of 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.