Package org.gatein.pc.api.cache

Examples of org.gatein.pc.api.cache.CacheLevel


        } else if (containerURL instanceof ResourceURL) {
            ResourceURL resourceURL = (ResourceURL) containerURL;

            url.setQueryParameterValue(Constants.RESOURCE_ID_PARAMETER, resourceURL.getResourceId());

            CacheLevel cachability = resourceURL.getCacheability();
            if (cachability != null) {
                url.setQueryParameterValue(Constants.CACHELEVEL_PARAMETER, cachability.name());
            }

            StateString resourceState = resourceURL.getResourceState();
            if (resourceState != null && !resourceState.getStringValue().equals(StateString.JBPNS_PREFIX)) {
                url.setQueryParameterValue(RESOURCE_STATE_PARAM_NAME, resourceState.getStringValue());
View Full Code Here


      resourceInvocation.setResourceState(createNavigationalState(resourceParams.getResourceState()));

      String resourceCacheability = resourceParams.getResourceCacheability();
      if (resourceCacheability != null)
      {
         CacheLevel cacheLevel = WSRPUtils.getCacheLevelFromResourceCacheability(resourceParams.getResourceCacheability());
         resourceInvocation.setCacheLevel(cacheLevel);
      }
      else
      {
         // according to JSR 286, cache level must default to ResourceURL.PAGE
View Full Code Here

      {
         StateString resourceState = StateString.create(queryParameters.get(ControllerRequestParameterNames.RESOURCE_STATE));
         String resourceId = queryParameters.get(ControllerRequestParameterNames.RESOURCE_ID);

         //
         CacheLevel resourceCacheLevel = CacheLevel.create(queryParameters.get(ControllerRequestParameterNames.RESOURCE_CACHEABILITY));

         //
         PortletResourceRequest.Scope scope;
         if (CacheLevel.FULL.equals(resourceCacheLevel))
         {
View Full Code Here

         {
            parameters.put(ControllerRequestParameterNames.RESOURCE_ID, resourceId);
         }

         //
         CacheLevel cacheability = resourceURL.getCacheability();
         parameters.put(ControllerRequestParameterNames.RESOURCE_CACHEABILITY, cacheability.name());

         //
         if (cacheability != CacheLevel.FULL)
         {
            if (resourceURL.getNavigationalState() != null)
View Full Code Here

      Mode mode = null;
      org.gatein.pc.api.WindowState windowState = null;
      PortletPageNavigationalState pageNavigationalState = null;
      Map<String, String[]> publicNS = null;
      StateString portletNS = null;
      CacheLevel cacheability;

      PortletResourceRequest.Scope scope = portletResourceRequest.getScope();

      //
      if (scope instanceof PortletResourceRequest.PortletScope)
View Full Code Here

      }
   }

   public String getCacheability()
   {
      CacheLevel cacheLevel = url.getCacheability();

      //
      return typetoJSR168.get(cacheLevel);
   }
View Full Code Here

      return typetoJSR168.get(cacheLevel);
   }

   public void setCacheability(String s)
   {
      CacheLevel cacheLevel = jsr168ToType.get(s);

      //
      if (cacheLevel != null)
      {
         if (url.parentCacheLevel == null)
View Full Code Here

      {
         StateString resourceState = StateString.create(queryParameters.get(ControllerRequestParameterNames.RESOURCE_STATE));
         String resourceId = queryParameters.get(ControllerRequestParameterNames.RESOURCE_ID);

         //
         CacheLevel resourceCacheLevel = CacheLevel.create(queryParameters.get(ControllerRequestParameterNames.RESOURCE_CACHEABILITY));

         //
         PortletResourceRequest.Scope scope;
         if (CacheLevel.FULL.equals(resourceCacheLevel))
         {
View Full Code Here

      {
         ResourceURL resourceURL = (ResourceURL)containerURL;

         appendParameter(baseURL, Constants.RESOURCE_ID_PARAMETER, resourceURL.getResourceId());

         CacheLevel cachability = resourceURL.getCacheability();
         if (cachability != null)
         {
            appendParameter(baseURL, Constants.CACHELEVEL_PARAMETER, cachability.name());
         }

         StateString resourceState = resourceURL.getResourceState();
         if (resourceState != null && !resourceState.getStringValue().equals(StateString.JBPNS_PREFIX))
         {
View Full Code Here

      }
   }

   public String getCacheability()
   {
      CacheLevel cacheLevel = url.getCacheability();

      //
      return typetoJSR168.get(cacheLevel);
   }
View Full Code Here

TOP

Related Classes of org.gatein.pc.api.cache.CacheLevel

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.