Package javax.portlet

Examples of javax.portlet.PortletConfig


    if (mDefaultViewIdMap == null)
    {
      mDefaultViewIdMap = new HashMap<String, String>();
      // loop through all portlet initialization parameters looking for those in the
      // correct form
      PortletConfig config = getPortletConfig();

      Enumeration<String> e = config.getInitParameterNames();
      int len = DEFAULT_VIEWID.length();
      while (e.hasMoreElements())
      {
        String s = e.nextElement();
        if (s.startsWith(DEFAULT_VIEWID) && s.length() > DEFAULT_VIEWID.length())
        {
          String viewId = config.getInitParameter(s);
         
          // Don't add if there isn't a view
          if (viewId == null || viewId.length() == 0) continue;
         
          // extract the mode
View Full Code Here


  public boolean setupFilter(FilterConfig config, FilterRequestContext filterRequestContext,
      String filterPath) throws IOException, ServletException
  {
    boolean inPortletContext = false;
    PortletConfig portletConfig = (PortletConfig)filterRequestContext.getRequest()
        .getAttribute("javax.portlet.config");
    if (portletConfig != null)
    {
      inPortletContext = true;
      WicketResponseState responseState = (WicketResponseState)filterRequestContext
View Full Code Here

   */
  public boolean setupFilter(FilterConfig config, FilterRequestContext filterRequestContext,
    String filterPath) throws IOException, ServletException
  {
    boolean inPortletContext = false;
    PortletConfig portletConfig = (PortletConfig)filterRequestContext.getRequest()
      .getAttribute("javax.portlet.config");
    if (portletConfig != null)
    {
      inPortletContext = true;
      PortletRequest portletRequest = (PortletRequest)filterRequestContext.getRequest()
View Full Code Here

                log.error(msg,e);
                throw new UnavailableException(msg);
            }
     
            PortletContext portletContext = PortalAccessor.createPortletContext(servletContext, pa);           
            PortletConfig portletConfig = PortalAccessor.createPortletConfig(portletContext, pd);
           
            try
            {
              try
              {
View Full Code Here

        }
    }

    public void init(PortletFilterConfig filterConfig) throws PortletException
    {
        PortletConfig portletConfig = filterConfig.getPortletConfig();
        PortletContext portletContext = portletConfig.getPortletContext();
        String configFile = portletConfig.getInitParameter(CONFIG_FILE);
        if (configFile == null)
        {
            configFile = portletContext.getRealPath(DEFAULT_CONFIG_FILE);
        }
        else if (configFile.startsWith(WEBAPP_ROOT_PREFIX))
View Full Code Here

        HttpServletResponse response =
            (HttpServletResponse) pageContext.getResponse();
       
        PortletRequest renderRequest = (PortletRequest)pageContext.getRequest().getAttribute("javax.portlet.request");
        RenderResponse renderResponse = (RenderResponse)pageContext.getRequest().getAttribute("javax.portlet.response");
        PortletConfig portletConfig = (PortletConfig)pageContext.getRequest().getAttribute("javax.portlet.config");
       
  
        // if the node is root node and the label value is
        // null, then do not render root node in the tree.
       
View Full Code Here

            return super.handleRequest(request, response, ctx);           
        }
        // configure velocity context
        PortletRequest renderRequest = (PortletRequest) request.getAttribute(Constants.PORTLET_REQUEST);
        RenderResponse renderResponse = (RenderResponse) request.getAttribute(Constants.PORTLET_RESPONSE);
        PortletConfig portletConfig = (PortletConfig) request.getAttribute(Constants.PORTLET_CONFIG);
        if (renderRequest != null)
        {
            renderRequest.setAttribute(VELOCITY_CONTEXT_ATTR, ctx);
        }
               
View Full Code Here

            return super.handleRequest(request, response, ctx);           
        }
        // configure velocity context
        PortletRequest renderRequest = (PortletRequest) request.getAttribute(Constants.PORTLET_REQUEST);
        RenderResponse renderResponse = (RenderResponse) request.getAttribute(Constants.PORTLET_RESPONSE);
        PortletConfig portletConfig = (PortletConfig) request.getAttribute(Constants.PORTLET_CONFIG);
        if (renderRequest != null)
        {
            renderRequest.setAttribute(VELOCITY_CONTEXT_ATTR, ctx);
        }
               
View Full Code Here

                log.error(msg,e);
                throw new UnavailableException(msg);
            }
     
            PortletContext portletContext = PortalAccessor.createPortletContext(servletContext, pa);           
            PortletConfig portletConfig = PortalAccessor.createPortletConfig(portletContext, pd);
           
            try
            {
              try
              {
View Full Code Here

      try
      {
        switch (Enum.valueOf(BRIDGE_IMPLICT_OBJECTS_ENUM.class, (String) property))
        {
          case portletConfig:
            PortletConfig config = bridgeContext.getPortletConfig();
            if (config != null)
            {
              context.setPropertyResolved(true);
              return config;
            } else
View Full Code Here

TOP

Related Classes of javax.portlet.PortletConfig

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.