Package javax.portlet

Examples of javax.portlet.PortletException


        super.init(config);
        context = getPortletContext();
        sso = (SSOManager)context.getAttribute("cps:SSO");
        if (null == sso)
        {
           throw new PortletException("Failed to find SSO Manager on portlet initialization");
        }       
        userManager = (UserManager) context.getAttribute(CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
        if (null == userManager)
        {
            throw new PortletException("Failed to find the User Manager on portlet initialization");
        }
        ssoTypesList = new LinkedList<String>();
        for (String s : SSO_TYPES)
            ssoTypesList.add(s);
    }
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");
        }
       
        String param = config.getInitParameter("yuiScriptPath");
       
View Full Code Here

                    request.getPortletSession().removeAttribute(SpaceNavigator.ATTRIBUTE_SPACE, PortletSession.APPLICATION_SCOPE);
                  ThemeBean.clearThemesSession(request);                   
          }
          catch (SpacesException e)
          {
            throw new PortletException(e);
          }
        }
      }
      else
      {
View Full Code Here

    PortletContext context = getPortletContext();

    userManager = (UserManager) context.getAttribute(CommonPortletServices.CPS_USER_MANAGER_COMPONENT);

    if (userManager == null) {
      throw new PortletException("Failed to find the User Manager Component on portlet initialization");
    }

    String param = config.getInitParameter("yuiScriptPath");

    if (param != null) {
View Full Code Here

       
        ssoManager = (SSOManager) config.getPortletContext().getAttribute("cps:SSO");
       
        if (null == ssoManager)
        {
            throw new PortletException("Failed to find SSO Provider on portlet initialization");
        }
    }
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"); }
        pageManager = (PageManager)context.getAttribute(CommonPortletServices.CPS_PAGE_MANAGER_COMPONENT);
        if (null == pageManager)
        {
            throw new PortletException("Failed to find the Page Manager on portlet initialization");
        }
        try
        {
            baseUrlAccess = (BasePortalURL) Jetspeed.getComponentManager().getComponent("BasePortalURL");
        }
View Full Code Here

            return;
        }
       
        if (StringUtils.isBlank(type))
        {
            throw new PortletException("Blank node type: " + type);
        }
       
        if ((Page.DOCUMENT_TYPE.equals(type) || (Folder.FOLDER_TYPE.equals(type))) && StringUtils.isBlank(templatePage))
        {
            templatePage = actionRequest.getPreferences().getValue("defaultTemplatePage", null);
           
            if (StringUtils.isBlank(templatePage))
            {
                throw new PortletException("Invalid template page: " + templatePage);
            }
        }
       
        try
        {
View Full Code Here

        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) context.getAttribute(CommonPortletServices.CPS_PORTAL_ADMINISTRATION);
        if (admin == null)
        {
            throw new PortletException("Failed to find the Portal Administration on portlet initialization");
        }
       
        pageManager = (PageManager)context.getAttribute(CommonPortletServices.CPS_PAGE_MANAGER_COMPONENT);
        if (pageManager == null)
        {
            throw new PortletException("Failed to find the Page Manager on portlet initialization");
        }
       
        userManager = (UserManager) context.getAttribute(CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
        if (null == userManager)
        {
            throw new PortletException("Failed to find the user manager on portlet initialization");
        }               
       
        decorationFactory = (DecorationFactory)context.getAttribute(CommonPortletServices.CPS_DECORATION_FACTORY);
        if (null == decorationFactory)
        {
            throw new PortletException("Failed to find the Decoration Factory on portlet initialization");
        }               
    }
View Full Code Here

        super.init(config);
        PortletContext context = getPortletContext();
        pm = (PermissionManager) context
                .getAttribute(CommonPortletServices.CPS_PERMISSION_MANAGER);
        if (pm == null)
                throw new PortletException(
                        "Could not get instance of portal permission manager component");
        rm = (RoleManager) context
                .getAttribute(CommonPortletServices.CPS_ROLE_MANAGER_COMPONENT);
        if (rm == null)
            throw new PortletException(
                "Could not get instance of portal role manager component");       
    }
View Full Code Here

    try
    {     
      i = this.pageManager.getPageSecurity().getSecurityConstraintsDefs().iterator();
    } catch (Exception e)
    {
      throw new PortletException(e);
    }
        while (i.hasNext())
        {
          SecurityConstraintsDef def = (SecurityConstraintsDef)i.next();
          result.add(def.getName());
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.