Package org.apache.jetspeed.om.portlet

Examples of org.apache.jetspeed.om.portlet.PortletApplication


    }
   
    @Override
    protected Supports load()
    {
        PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
        PortletDefinition def = app.getPortlet(paNodeBean.getName());
        Supports supports = def.getSupports(mimeType);
        return supports;
    }
View Full Code Here


    }
   
    @Override
    protected UserAttribute load()
    {
        PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
        UserAttribute userAttribute = app.getUserAttribute(name);
        return userAttribute;
    }
View Full Code Here

   
    @Override
    protected DescriptionBean load()
    {
        Description description = null;
        PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
        PortletDefinition def = null;
       
        if (paNodeBean.getName() != null)
        {
            def = app.getPortlet(paNodeBean.getName());
        }
       
        if (def != null)
        {
            if (type == InitParam.class)
            {
                InitParam param = def.getInitParam(name);
                description = param.getDescription(locale);
            }
            else if (type == SecurityRoleRef.class)
            {
                SecurityRoleRef securityRoleRef = def.getSecurityRoleRef(name);
                description = securityRoleRef.getDescription(locale);
            }
        }
        else
        {
            UserAttribute attr = app.getUserAttribute(name);
            description = attr.getDescription(locale);
        }
       
        return new DescriptionBean(description);
    }
View Full Code Here

   
    @Override
    protected LocalizedFieldBean load()
    {
        LocalizedFieldBean fieldBean = null;
        PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
        PortletDefinition def = null;
       
        if (paNodeBean.getName() != null)
        {
            def = app.getPortlet(paNodeBean.getName());
        }

        GenericMetadata metadata = (def == null ? app.getMetadata() : def.getMetadata());
       
        for (LocalizedField field : metadata.getFields())
        {
            LocalizedFieldBean tempBean = new LocalizedFieldBean(field);
           
View Full Code Here

    }
   
    @Override
    protected LanguageBean load()
    {
        PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
        PortletDefinition def = app.getPortlet(paNodeBean.getName());
        Language language = def.getLanguage(locale);
        return new LanguageBean(language);
    }
View Full Code Here

    }
   
    @Override
    protected InitParam load()
    {
        PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
        PortletDefinition def = app.getPortlet(paNodeBean.getName());
        InitParam initParam = def.getInitParam(paramName);
        return initParam;
    }
View Full Code Here

        this.paNodeBean = paNodeBean;
        newPortletModes = new ArrayList<String>();
        availablePortletModes = new ArrayList<String>();
       
        PortletRegistry registry = ((AbstractAdminWebApplication) getApplication()).getServiceLocator().getPortletRegistry();
        PortletApplication app = registry.getPortletApplication(paNodeBean.getApplicationName());
       
        for (PortletMode mode : app.getSupportedPortletModes())
        {
            availablePortletModes.add(mode.toString());
        }
       
        initLayout();
View Full Code Here

                FeedbackPanel feed = (FeedbackPanel) getPage().get("feedback");
               
                try
                {
                    PortletRegistry registry = ((AbstractAdminWebApplication) getApplication()).getServiceLocator().getPortletRegistry();
                    PortletApplication app = registry.getPortletApplication(paNodeBean.getApplicationName());
                    PortletDefinition def = app.getPortlet(paNodeBean.getName());
                   
                    if (newMimeType != null && !newPortletModes.isEmpty())
                    {
                        Supports supports = def.addSupports(newMimeType);
                       
View Full Code Here

    @Override
    public void delete(IModel<Supports>[] fieldBeans)
    {
        PortletRegistry registry = ((AbstractAdminWebApplication) getApplication()).getServiceLocator().getPortletRegistry();
        PortletApplication app = registry.getPortletApplication(paNodeBean.getApplicationName());
        PortletDefinition def = app.getPortlet(paNodeBean.getName());
       
        for (Iterator<Supports> it = def.getSupports().iterator(); it.hasNext(); )
        {
            Supports tempSupports = it.next();
           
View Full Code Here

        if (filterByRole(portlet, request))
        {
            return null;
        }       
        // Do not display Jetspeed Layout Applications
        PortletApplication pa = (PortletApplication)portlet.getApplication();
        if (pa.isLayoutApplication())
            return null;
       
        // SECURITY filtering
        String uniqueName = pa.getName() + "::" + portlet.getPortletName();
        if (securityAccessController.checkPortletAccess(portlet, JetspeedActions.MASK_VIEW))
        {
            InitParam param = portlet.getInitParam(PORTLET_ICON);
            String image;
            if (param != null)
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.om.portlet.PortletApplication

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.