Package org.infoglue.cms.entities.structure.impl.simple

Examples of org.infoglue.cms.entities.structure.impl.simple.SiteNodeVersionImpl


        try
        {
            //Fetch related entities here if they should be referenced       
           
            siteNodeVersion = new SiteNodeVersionImpl();
            siteNodeVersion.setValueObject(siteNodeVersionVO);
            //Refrence other entities through setters here
            db.create(siteNodeVersion);
        }
        catch(Exception e)
View Full Code Here


      {
        maxSortOrder = 0;
      }
      //SiteNode siteNode = SiteNodeController.getSiteNodeWithId(siteNodeId, db);
           
      siteNodeVersion = new SiteNodeVersionImpl();
      siteNodeVersion.setIsCheckedOut(new Boolean(false));
      siteNodeVersion.setModifiedDateTime(DateHelper.getSecondPreciseDate());
      siteNodeVersion.setOwningSiteNode((SiteNodeImpl)siteNode);
      siteNodeVersion.setStateId(new Integer(0));
      siteNodeVersion.setVersionComment("Initial version");
View Full Code Here

        try
        {
          SiteNode siteNode = SiteNodeController.getController().getSiteNodeWithId(siteNodeId, db);
           
          siteNodeVersion = new SiteNodeVersionImpl();
          siteNodeVersion.setOwningSiteNode((SiteNodeImpl)siteNode);
          siteNodeVersion.setVersionModifier(infoGluePrincipal.getName());
          siteNodeVersion.setValueObject(siteNodeVersionVO);
         
          //Remove later and use a lookup....
View Full Code Here

 
  public static SiteNodeVersion createFull(Integer siteNodeId, InfoGluePrincipal infoGluePrincipal, SiteNodeVersionVO siteNodeVersionVO, Database db) throws SystemException, Bug, Exception
  {
      SiteNode siteNode = SiteNodeController.getController().getSiteNodeWithId(siteNodeId, db);
       
      SiteNodeVersionImpl siteNodeVersion = new SiteNodeVersionImpl();     
      siteNodeVersion.setOwningSiteNode((SiteNodeImpl)siteNode);
      siteNodeVersion.setVersionModifier(infoGluePrincipal.getName());
      siteNodeVersion.setValueObject(siteNodeVersionVO);
      //Remove later and use a lookup....
      siteNodeVersion.setVersionNumber(new Integer(1));
     
      db.create(siteNodeVersion);

    return siteNodeVersion;   
  }
View Full Code Here

            logger.warn("Error in JDOCallback:" + e.getMessage(), e);
          }
        }
        else
        {
          SiteNodeVersionImpl siteNodeVersion = (SiteNodeVersionImpl)object;
         
          clearCache(MediumSiteNodeVersionImpl.class, siteNodeVersion.getId());
          try
          {
            SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeVersion.getValueObject().getSiteNodeId(), true);
            if(siteNodeVO != null)
            { 
              CacheController.clearCacheForGroup("siteNodeCacheWithLatestVersion", "siteNode_" + siteNodeVO.getId());
              CacheController.clearCacheForGroup("childSiteNodesCache", "siteNode_" + siteNodeVO.getId());
              CacheController.clearCacheForGroup("childPagesCache", "siteNode_" + siteNodeVO.getId());
View Full Code Here

        else
        {
          clearCache(MediumSiteNodeVersionImpl.class);
          try
          {
            SiteNodeVersionImpl siteNodeVersion = (SiteNodeVersionImpl)object;
            Integer siteNodeId = siteNodeVersion.getSiteNodeId();
            if(siteNodeId == null && siteNodeVersion.getOwningSiteNode() != null)
              siteNodeId = siteNodeVersion.getOwningSiteNode().getId();

            CacheController.clearCacheForGroup("siteNodeCacheWithLatestVersion", "siteNode_" + siteNodeId);
            CacheController.clearCacheForGroup("childSiteNodesCache", "siteNode_" + siteNodeId);
            CacheController.clearCacheForGroup("childPagesCache", "siteNode_" + siteNodeId);
            CacheController.clearCacheForGroup("latestSiteNodeVersionCache", "siteNode_" + siteNodeId);
            SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeVersion.getValueObject().getSiteNodeId(), true);
            if(siteNodeVO.getParentSiteNodeId() != null)
            {
              CacheController.clearCacheForGroup("childSiteNodesCache", "siteNode_" + siteNodeVO.getParentSiteNodeId());
              CacheController.clearCacheForGroup("childPagesCache", "siteNode_" + siteNodeVO.getParentSiteNodeId());
            }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.structure.impl.simple.SiteNodeVersionImpl

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.