Package org.jboss.portal.common.util

Examples of org.jboss.portal.common.util.ContentInfo


    * @return the set of portlet modes
    */
   private Set<Mode> buildSupportedModes()
   {
      // Get content type
      ContentInfo si = invocation.getContext().getMarkupInfo();

      //
      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.common.util.ContentInfo

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.