Package org.jboss.portal.portlet.impl.info

Examples of org.jboss.portal.portlet.impl.info.ContainerPortletInfo


   private static final UUIDGenerator generator = new UUIDGenerator();

   public PortletInvocationResponse invoke(PortletInvocation invocation) throws IllegalArgumentException, PortletInvokerException
   {
      PortletContainer container = (PortletContainer)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);
      ContainerPortletInfo containerInfo = (ContainerPortletInfo)container.getInfo();

      //
      Map<String, RuntimeOptionInfo> options = containerInfo.getRuntimeOptionsInfo();
      RuntimeOptionInfo scopingOption = options.get(RuntimeOptionInfo.JAVAX_PORTLET_ACTION_SCOPED_REQUEST_ATTRIBUTES);

      //
      int maxScope = 0;
      if (scopingOption != null && "true".equals(scopingOption.getValues().get(0)))
View Full Code Here


      PortletImpl portlet = (PortletImpl)portlets.get(portletContext.getId());
      if (portlet == null)
      {
         throw new NoSuchPortletException(portletContext.getId());
      }
      ContainerPortletInfo info = (ContainerPortletInfo)portlet.getInfo();
      ContainerPreferencesInfo prefs = (ContainerPreferencesInfo)info.getPreferences();
      PropertyMap result = new SimplePropertyMap();
      for (String key : keys)
      {
         ContainerPreferenceInfo pref = prefs.getContainerPreference(key);
         if (pref != null)
View Full Code Here

      PortletImpl portlet = (PortletImpl)portlets.get(portletContext.getId());
      if (portlet == null)
      {
         throw new NoSuchPortletException(portletContext.getId());
      }
      ContainerPortletInfo info = (ContainerPortletInfo)portlet.getInfo();
      ContainerPreferencesInfo prefs = (ContainerPreferencesInfo)info.getPreferences();
      PropertyMap result = new SimplePropertyMap();
      for (String key : prefs.getKeys())
      {
         ContainerPreferenceInfo pref = prefs.getContainerPreference(key);
         if (pref != null)
View Full Code Here

   private static final UUIDGenerator generator = new UUIDGenerator();

   public PortletInvocationResponse invoke(PortletInvocation invocation) throws IllegalArgumentException, PortletInvokerException
   {
      PortletContainer container = (PortletContainer)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);
      ContainerPortletInfo containerInfo = (ContainerPortletInfo)container.getInfo();

      //
      Map<String, ContainerOptionInfo> options = containerInfo.getOptions();
      ContainerOptionInfo scopingOption = options.get("javax.portlet.actionScopedRequestAttributes");

      //
      int maxScope = 0;
      if (scopingOption != null && "true".equals(scopingOption.getValues().get(0)))
View Full Code Here

   public PortletRequestImpl(PortletContainerImpl container, PortletInvocation invocation)
   {
      int mode = this instanceof RenderRequest ? PortletPreferencesImpl.RENDER : PortletPreferencesImpl.ACTION;
      PropertyContext prefs = (PropertyContext)invocation.getAttribute(PropertyContext.PREFERENCES_ATTRIBUTE);
      PreferencesValidator validator = container.getPreferencesValidator();
      ContainerPortletInfo info = container.getInfo();
      ContainerPreferencesInfo containerPrefs = info.getPreferences();
      ContainerNavigationInfo navigationInfo = info.getNavigation();
      UserContext userContext = invocation.getUserContext();
      HttpServletRequestWrapper realReq = new HttpServletRequestWrapper(invocation.getDispatchedRequest());

      //
      PortletRequestAttributes attributes = new PortletRequestAttributes(invocation.getSecurityContext(), container, userContext, realReq);
View Full Code Here

TOP

Related Classes of org.jboss.portal.portlet.impl.info.ContainerPortletInfo

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.