Package org.jboss.portal.portlet.info

Examples of org.jboss.portal.portlet.info.CapabilitiesInfo


      Mode currentMode = preq.invocation.getMode();

      org.jboss.portal.common.net.media.MediaType mediaType = org.jboss.portal.common.net.media.MediaType.create(contentType);

      PortletInfo info = preq.container.getInfo();
      CapabilitiesInfo capabilities = info.getCapabilities();
      Set<ModeInfo> compatibleModes = capabilities.getModes(mediaType);
      for (ModeInfo modeInfo : compatibleModes)
      {
         if (currentMode.equals(modeInfo.getMode()))
         {
            // Set the content type
View Full Code Here


      //
      org.jboss.portal.portlet.spi.PortalContext  portalContext =invocation.getPortalContext();

      // Get the modes for this content type
      CapabilitiesInfo capabilities = container.getInfo().getCapabilities();

      // Add all the modes
      Set<Mode> modes = new HashSet<Mode>();
      for (ModeInfo modeInfo : capabilities.getModes(si.getMediaType()))
      {
         Mode mode = modeInfo.getMode();

         //
         if (modeInfo instanceof PortletManagedModeInfo || portalContext.getModes().contains(mode))
View Full Code Here

TOP

Related Classes of org.jboss.portal.portlet.info.CapabilitiesInfo

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.