Package org.infoglue.deliver.util

Examples of org.infoglue.deliver.util.NullObject


      groups = new String[]{"selectiveCacheUpdateNonApplicable"};
   
    if(components != null)
      CacheController.cacheObjectInAdvancedCache("pageComponentsCache", key, components, groups, false);
    else
      CacheController.cacheObjectInAdvancedCache("pageComponentsCache", key, new NullObject(), groups, false);
   
    //logger.info("Returning " + components.size() + " components for:" + slotName);
    return components;
  }
View Full Code Here


            contentVersion = (ContentVersion)results.next();
        CacheController.cacheObjectInAdvancedCache("contentVersionIdCache", versionKey, contentVersion.getId(), new String[]{CacheController.getPooledString(2, contentVersion.getId()), CacheController.getPooledString(1, contentVersion.getValueObject().getContentId())}, true);
          }
      else
      {
        CacheController.cacheObjectInAdvancedCache("contentVersionIdCache", versionKey, new NullObject(), new String[]{CacheController.getPooledString(1, content.getId())}, true);
      }

      results.close();
      oql.close();
    }
View Full Code Here

          CacheController.cacheObjectInAdvancedCache("contentVersionCache", versionKey, contentVersionVO, new String[]{CacheController.getPooledString(2, contentVersionVO.getId()), CacheController.getPooledString(1, contentVersionVO.getContentId())}, true);
            }
        else
        {
          CacheController.cacheObjectInAdvancedCache("contentVersionCache", versionKey, new NullObject(), new String[]{CacheController.getPooledString(1, contentId)}, true);
        }

        results.close();
        oql.close();
      }
View Full Code Here

            CacheController.cacheObjectInAdvancedCache("contentVersionCache", versionKey, contentVersionVO, new String[]{CacheController.getPooledString(2, contentVersionVO.getId()), CacheController.getPooledString(1, contentVersionVO.getContentId())}, true);
          }
      else
      {
        CacheController.cacheObjectInAdvancedCache("contentVersionCache", versionKey, new NullObject(), new String[]{CacheController.getPooledString(1, contentId)}, true);
      }

      results.close();
      oql.close();
    }
View Full Code Here

      InfoGluePrincipal infoGluePrincipal = getAuthorizationModule().getAuthorizedInfoGluePrincipal(userName);
    
    if(infoGluePrincipal != null)
      CacheController.cacheObjectInAdvancedCache("principalCache", userName, infoGluePrincipal, new String[]{}, false);
    else
      CacheController.cacheObjectInAdvancedCache("principalCache", userName, new NullObject(), new String[]{}, false);
     
      return infoGluePrincipal;
    }
View Full Code Here

          repositoryVO = repository.getValueObject();
          CacheController.cacheObject("repositoryCache", key, repositoryVO);
        }
        else
        {
          CacheController.cacheObject("repositoryCache", key, new NullObject());
        }
       
        results.close();
        oql.close();
      }
View Full Code Here

          CacheController.cacheObject("groupPropertiesCache", cacheKey, groupPropertiesVOList);
      }
      else
      {
        logger.info("Caching nullobject:" + cacheKey);
        CacheController.cacheObject("groupPropertiesCache", cacheKey, new NullObject());
      }
    }
    /*
    groupPropertiesVOList = (List)CacheController.getCachedObject("groupPropertiesCache", cacheKey);
    if(groupPropertiesVOList != null)
View Full Code Here

          if((property == null || property.equals("")) && fallbackToKey)
            property = key;
     
        if(property == null)
        {
          CacheController.cacheObject(CacheController.SETTINGSPROPERTIESCACHENAME, cacheKey, new NullObject());
        }
        else
        {
          CacheController.cacheObject(CacheController.SETTINGSPROPERTIESCACHENAME, cacheKey, property);
        }
View Full Code Here

          {
            resourceBundle = checkForResourceBundleAsset(locale);
            //t.printElapsedTime("1.3");
          }
          if(resourceBundle == null)
            cachedBundles.put(cacheKey, new NullObject());
          else
            cachedBundles.put(cacheKey, resourceBundle);
        }
        catch (Exception e)
        {
View Full Code Here

          {
            resourceBundle = checkForResourceBundleAsset(locale);
            //t.printElapsedTime("1.3");
          }
          if(resourceBundle == null)
            cachedBundles.put(cacheKey, new NullObject());
          else
            cachedBundles.put(cacheKey, resourceBundle);
        }
        catch (Exception e)
        {
View Full Code Here

TOP

Related Classes of org.infoglue.deliver.util.NullObject

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.