Package javax.portlet

Examples of javax.portlet.PortletException


                    kernel.setAttribute(gbeanName, "PortNumber", new Integer(
                            actionRequest.getParameter("portNumber")));
                    kernel.setAttribute(gbeanName, "DatabaseName",
                            actionRequest.getParameter("databaseName"));
                } catch (Exception e) {
                    throw new PortletException(e);
                }
            }
            actionResponse.setRenderParameter("mode", "detail");
        }
        actionResponse.setRenderParameter("name", actionRequest
View Full Code Here


            info.setDatabaseName((String) kernel.getAttribute(gbeanName,
                    "DatabaseName"));
            info.setGlobalJNDIName((String) kernel.getAttribute(gbeanName,
                    "globalJNDIName"));
        } catch (Exception e) {
            throw new PortletException(e);
        }
        request.setAttribute("ds", info);
        if ("config".equals(request.getParameter("mode"))) {
            configView.include(request, response);
        } else {
View Full Code Here

        DeploymentConfiguration deploymentConfiguration = createDeploymentConfiguration(initParameters);
        try {
            vaadinService = createPortletService(deploymentConfiguration);
        } catch (ServiceException e) {
            throw new PortletException("Could not initialized VaadinPortlet", e);
        }
        // Sets current service even though there are no request and response
        vaadinService.setCurrentInstances(null, null);

        portletInitialized();
View Full Code Here

        CurrentInstance.clearAll();
        try {
            getService().handleRequest(createVaadinRequest(request),
                    createVaadinResponse(response));
        } catch (ServiceException e) {
            throw new PortletException(e);
        }
    }
View Full Code Here

    {
        super.init(config);
        cacheMonitor = (JetspeedCacheMonitor) getPortletContext().getAttribute(CommonPortletServices.CPS_CACHE_MONITOR);
        if (null == cacheMonitor)
        {
            throw new PortletException("Failed to find the Cache Monitor on portlet initialization");
        }       
    }
View Full Code Here

                    return requestTicket( redirectLocation,null,null) ;
                }
                else
                {
                    // The response is a redirect, but did not provide the new location for the resource.
                    throw new PortletException("Redirection code: "+responseCode+", but with no redirectionLocation set.");
                }
            }
            else if (responseCode == 200)
            {         
    //          String body = httpMethod.getResponseBodyAsString();
View Full Code Here

    {
        super.init(config);
        PortletContext context = getPortletContext();
        spacesService = (Spaces) context.getAttribute(CommonPortletServices.CPS_SPACES_SERVICE);
        if (spacesService == null)
                throw new PortletException(
                        "Could not get instance of portal spaces service component");
        admin = (PortalAdministration) getPortletContext().getAttribute(
                CommonPortletServices.CPS_PORTAL_ADMINISTRATION);
        if (null == admin) { throw new PortletException(
                "Failed to find the Portal Administration on portlet initialization"); }
    }
View Full Code Here

    {
        super.init(config);
        manager = (UserManager) getPortletContext().getAttribute(CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
        if (null == manager)
        {
            throw new PortletException("Failed to find the User Manager on portlet initialization");
        }
        audit = (AuditActivity)getPortletContext().getAttribute(CommonPortletServices.CPS_AUDIT_ACTIVITY);
        if (null == audit)
        {
            throw new PortletException("Failed to find the Audit Activity on portlet initialization");           
        }       
    }
View Full Code Here

       
        pageLayoutComponent = (PageLayoutComponent) context.getAttribute(CommonPortletServices.CPS_PAGE_LAYOUT_COMPONENT);
       
        if (pageLayoutComponent == null)
        {
            throw new PortletException("Failed to find the Page Layout Component on portlet initialization");
        }       
       
        decorationFactory = (DecorationFactory)context.getAttribute(CommonPortletServices.CPS_DECORATION_FACTORY);
       
        if (decorationFactory == null)
        {
            throw new PortletException("Failed to find the Decoration Factory on portlet initialization");
        }       
       
        String param = config.getInitParameter("yuiScriptPath");
       
        if (param != null) {
View Full Code Here

       
        String cats = request.getPreferences().getValue("Categories", null);
       
        if (cats == null)
        {
            throw new PortletException("No categories defined, please add categories via edit mode.");
        }
       
        categories = Arrays.asList(StringUtils.split(cats, ", \t\r\n"));
       
        request.getPortletSession().setAttribute("categories", categories);
View Full Code Here

TOP

Related Classes of javax.portlet.PortletException

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.