Package org.apache.pluto.spi.optional

Examples of org.apache.pluto.spi.optional.PortletRegistryService


          return false;
      }
      final String portletAppId = portletDescriptorKeys.first;
      final String portletName = portletDescriptorKeys.second;
     
        final PortletRegistryService portletRegistryService = this.optionalContainerServices.getPortletRegistryService();
        final PortletDD portletDescriptor;
        try {
            portletDescriptor = portletRegistryService.getPortletDescriptor(portletAppId, portletName);
        }
        catch (PortletContainerException e) {
            this.logger.warn("Failed to load portlet descriptor for appId='" + portletAppId + "', portletName='" + portletName + "'", e);
            return false;
        }
View Full Code Here


   *
   * @return list of portlet context
   */
  @SuppressWarnings("unchecked")
  public List<PortletContextImpl> getPortletApplications() {
    final PortletRegistryService portletRegistryService = optionalContainerServices.getPortletRegistryService();
    List<PortletContextImpl> contexts = new ArrayList<PortletContextImpl>();
    for (Iterator iter = portletRegistryService.getRegisteredPortletApplications(); iter.hasNext();) {
      PortletContextImpl context = (PortletContextImpl) iter.next();
     
      final List<PortletDD> portlets = context.getPortletApplicationDefinition().getPortlets();
      Collections.sort(portlets, new ComparableExtractingComparator<PortletDD, String>(String.CASE_INSENSITIVE_ORDER) {
              @Override
View Full Code Here

    }
        final String portletAppId = portletDescriptorKeys.first;
        final String portletName = portletDescriptorKeys.second;

   
    final PortletRegistryService portletRegistryService = optionalContainerServices.getPortletRegistryService();
    try {
      PortletDD portletDD = portletRegistryService.getPortletDescriptor(portletAppId, portletName);
      return portletDD;
    } catch (PortletContainerException e) {
      e.printStackTrace();
      return null;
    }
View Full Code Here

   * @param application
   * @param portlet
   * @param form
   */
  public void prepopulatePortlet(String application, String portlet, ChannelDefinitionForm form) {
    final PortletRegistryService portletRegistryService = optionalContainerServices.getPortletRegistryService();
    final PortletDD portletDD;
    try {
        portletDD = portletRegistryService.getPortletDescriptor(application, portlet);
        }
    catch (PortletContainerException e) {
        this.logger.warn("Failed to load portlet descriptor for appId='" + application + "', portletName='" + portlet + "'", e);
            return;
        }
View Full Code Here

            return null;
        }
       
        final Tuple<String, String> portletDescriptorKeys = this.getPortletDescriptorKeys(portletDefinition);
       
        final PortletRegistryService portletRegistryService = this.optionalContainerServices.getPortletRegistryService();
        return portletRegistryService.getPortletApplicationDescriptor(portletDescriptorKeys.first);
    }
View Full Code Here

            return null;
        }
       
        final Tuple<String, String> portletDescriptorKeys = this.getPortletDescriptorKeys(portletDefinition);
       
        final PortletRegistryService portletRegistryService = this.optionalContainerServices.getPortletRegistryService();
        return portletRegistryService.getPortletDescriptor(portletDescriptorKeys.first, portletDescriptorKeys.second);
    }
View Full Code Here

            //PLUTO-477 null attribute maps are ok
            if (null == allMap) {
                return null;
            }

            final PortletRegistryService portletRegistryService = optionalContainerServices.getPortletRegistryService();
            final PortletAppDD dd = portletRegistryService.getPortletApplicationDescriptor(portletWindow.getContextPath());

            final List mappedUserAttributes = dd.getUserAttributes();
            for (final Iterator mappedAttrItr = mappedUserAttributes.iterator(); mappedAttrItr.hasNext(); ) {
                final UserAttributeDD userAttrDD = (UserAttributeDD) mappedAttrItr.next();
                final String mappedName = userAttrDD.getName();
View Full Code Here

TOP

Related Classes of org.apache.pluto.spi.optional.PortletRegistryService

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.