Package org.infoglue.cms.entities.structure

Examples of org.infoglue.cms.entities.structure.SiteNodeVO


      if(siteNodeId == null)
    {
      return null;
    }
     
      SiteNodeVO cachedSiteNodeVO = SiteNodeController.getController().getSiteNodeVOWithIdIfInCache(siteNodeId, db);
      if(cachedSiteNodeVO != null && (cachedSiteNodeVO.getChildCount() != null && cachedSiteNodeVO.getChildCount() == 0))
      {
        //System.out.println("No children - lets skip..");
        return new ArrayList<SiteNodeVO>();
      }
      //else
View Full Code Here


        logger.info("key in getChildSiteNodes:" + key);
      siteNodeVOList = (List)CacheController.getCachedObjectFromAdvancedCache("childSiteNodesCache", key);
 
      if(siteNodeVOList == null)
      {
        SiteNodeVO parentSiteNodeVO = getSiteNodeVO(db, siteNodeId);
        if(parentSiteNodeVO != null && parentSiteNodeVO.getChildCount() != null && parentSiteNodeVO.getChildCount() == 0)
        {
          logger.info("Skipping node as it has no children...");
          return new ArrayList();
        }
      }
View Full Code Here

        logger.info("key in getChildSiteNodes:" + key);
    List siteNodeVOList = (List)CacheController.getCachedObjectFromAdvancedCache("childSiteNodesCache", key);

    if(siteNodeVOList == null)
    {
      SiteNodeVO parentSiteNodeVO = getSiteNodeVO(db, siteNodeId);
      if(parentSiteNodeVO != null && parentSiteNodeVO.getChildCount() != null && parentSiteNodeVO.getChildCount() == 0)
      {
        //logger.info("Skipping node as it has no children...");
        return new ArrayList();
      }
    }
View Full Code Here

      return null;

    if(deliveryContext != null)
      deliveryContext.addUsedSiteNode(CacheController.getPooledString(3, siteNodeId));

    SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeId, db);
   
    if(siteNodeVO.getIsDeleted())
      return null;
   
    return siteNodeVO;
  }
View Full Code Here

   
    if(siteNodeId != null && this.deliveryContext != null)
      this.deliveryContext.addUsedSiteNode(CacheController.getPooledString(3, siteNodeId));
   
    Object object = CacheController.getCachedObject("parentSiteNodeCache", key);
    SiteNodeVO parentSiteNodeVO = null;

    if(object instanceof NullObject)
    {
      if(logger.isInfoEnabled())
        logger.info("There was an cached parentSiteNodeVO but it was null:" + object);
    }
    else if(object != null)
    {
      parentSiteNodeVO = (SiteNodeVO)object;
    }
    else
    {
      //SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeId, db);
      SiteNodeVO siteNode = getSiteNodeVO(db, siteNodeId);
      //SiteNode parentSiteNode = siteNode.getParentSiteNode();
            if(siteNode.getParentSiteNodeId() != null)   
            {
                parentSiteNodeVO = getSiteNodeVO(db, siteNode.getParentSiteNodeId());
              CacheController.cacheObject("parentSiteNodeCache", key, parentSiteNodeVO);
        }
            else
            {
                CacheController.cacheObject("parentSiteNodeCache", key, new NullObject());
View Full Code Here

      this.deliveryContext.addUsedSiteNode(CacheController.getPooledString(3, siteNodeId));

    String key = "" + siteNodeId;
    logger.info("key getParentSiteNode:" + key);
    Object object = CacheController.getCachedObject("pageCacheParentSiteNodeCache", key);
    SiteNodeVO parentSiteNodeVO = null;
    logger.info("object:" + object);
    if(object instanceof NullObject)
    {
      logger.info("There was an cached parentSiteNodeVO but it was null:" + object);
    }
    else if(object != null)
    {
      parentSiteNodeVO = (SiteNodeVO)object;
    }
    else
    {
      SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeId, db);
      //SiteNode siteNode = (SiteNode)getObjectWithId(SmallSiteNodeImpl.class, siteNodeId, db);
            //SiteNode parentSiteNode = siteNode.getParentSiteNode();
            if(siteNodeVO.getParentSiteNodeId() != null)   
            {
              parentSiteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeVO.getParentSiteNodeId(), db);
              CacheController.cacheObject("pageCacheParentSiteNodeCache", key, parentSiteNodeVO);
            }
            else
            {
                CacheController.cacheObject("pageCacheParentSiteNodeCache", key, new NullObject());
View Full Code Here

          isPageCacheDisabled = false;
        else if(latestSiteNodeVersionVO.getDisablePageCache().intValue() == YES.intValue())
          isPageCacheDisabled = true;
        else if(latestSiteNodeVersionVO.getDisablePageCache().intValue() == INHERITED.intValue())
        {
          SiteNodeVO parentSiteNode = this.getParentSiteNode(db, siteNodeId);
          if(parentSiteNode != null)
            isPageCacheDisabled = getIsPageCacheDisabled(db, parentSiteNode.getSiteNodeId());
        }
      }

    }
    catch(Exception e)
View Full Code Here

      while(latestSiteNodeVersionVO == null || latestSiteNodeVersionVO.getPageCacheKey() == null || latestSiteNodeVersionVO.getPageCacheKey().length() == 0 || latestSiteNodeVersionVO.getPageCacheKey().equalsIgnoreCase("default"))
      {
        if(currentSiteNodeId == null)
          break;
       
        SiteNodeVO parentSiteNodeVO = getParentSiteNode(db, currentSiteNodeId);
        if(parentSiteNodeVO != null)
        {
          latestSiteNodeVersionVO = getLatestActiveSiteNodeVersionVOForPageCache(db, parentSiteNodeVO.getId());
          if(latestSiteNodeVersionVO != null)
            currentSiteNodeId = latestSiteNodeVersionVO.getSiteNodeId();
          else
            currentSiteNodeId = null
        }
View Full Code Here

          isEditOnSightDisabled = false;
        else if(latestSiteNodeVersionVO.getDisableEditOnSight().intValue() == YES.intValue())
          isEditOnSightDisabled = true;
        else if(latestSiteNodeVersionVO.getDisableEditOnSight().intValue() == INHERITED.intValue())
        {
          SiteNodeVO parentSiteNode = this.getParentSiteNode(db, siteNodeId);
          if(parentSiteNode != null)
            isEditOnSightDisabled = getIsEditOnSightDisabled(db, parentSiteNode.getSiteNodeId());
        }
      }

    }
    catch(Exception e)
View Full Code Here

          isPageProtected = true;
        else if(latestSiteNodeVersionVO.getIsProtected().intValue() == SiteNodeVersionVO.YES_WITH_INHERIT_FALLBACK.intValue())
          isPageProtected = true;
        else if(latestSiteNodeVersionVO.getIsProtected().intValue() == SiteNodeVersionVO.INHERITED.intValue())
        {
          SiteNodeVO parentSiteNode = this.getParentSiteNode(db, siteNodeId);
          if(parentSiteNode != null)
            isPageProtected = getIsPageProtected(db, parentSiteNode.getSiteNodeId());
        }
      }

    }
    catch(Exception e)
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.structure.SiteNodeVO

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.