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

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


          siteNodeTypeDefinition = SiteNodeTypeDefinitionController.getController().getSiteNodeTypeDefinitionWithId(siteNodeTypeDefinitionId, db);

        Repository repository = RepositoryController.getController().getRepositoryWithId(repositoryId, db);

       
        siteNode = new SiteNodeImpl();
        siteNode.setValueObject(siteNodeVO);
        siteNode.setParentSiteNode((SiteNodeImpl)parentSiteNode);
        siteNode.setRepository((RepositoryImpl)repository);
        siteNode.setSiteNodeTypeDefinition((SiteNodeTypeDefinitionImpl)siteNodeTypeDefinition);
        siteNode.setCreator(infoGluePrincipal.getName());
View Full Code Here


      if(siteNodeTypeDefinitionId != null)
        siteNodeTypeDefinition = SiteNodeTypeDefinitionController.getController().getSiteNodeTypeDefinitionWithId(siteNodeTypeDefinitionId, db);
     
      Repository repository = RepositoryController.getController().getRepositoryWithId(repositoryId, db);

      siteNode = new SiteNodeImpl();
      siteNode.setValueObject(siteNodeVO);
      siteNode.setParentSiteNode((SiteNodeImpl)parentSiteNode);
      siteNode.setRepository((RepositoryImpl)repository);
      siteNode.setSiteNodeTypeDefinition((SiteNodeTypeDefinitionImpl)siteNodeTypeDefinition);
      siteNode.setCreator(infoGluePrincipal.getName());
View Full Code Here

        getObjectWithId(AvailableServiceBindingImpl.class, new Integer(objectId), db);
        getObjectWithId(SmallAvailableServiceBindingImpl.class, new Integer(objectId), db);
      }
      else if(Class.forName(className).getName().equals(SiteNodeImpl.class.getName()))
      {
        SiteNodeImpl siteNode = (SiteNodeImpl)getObjectWithId(SiteNodeImpl.class, new Integer(objectId), db);
        getObjectWithId(SmallSiteNodeImpl.class, new Integer(objectId), db);
       
        /*
        NodeDeliveryController ndc = NodeDeliveryController.getNodeDeliveryController(new Integer(objectId), new Integer(-1), new Integer(-1));
        Repository repository = siteNode.getRepository();
          if(repository != null)
        {
          Collection languages = repository.getRepositoryLanguages();
          Iterator languageIterator = languages.iterator();
          while(languageIterator.hasNext())
          {
            RepositoryLanguage repositoryLanguage = (RepositoryLanguage)languageIterator.next();
            Language currentLanguage = repositoryLanguage.getLanguage();
            LanguageDeliveryController.getLanguageDeliveryController().getLanguageIfSiteNodeSupportsIt(db, currentLanguage.getId(), siteNode.getId());
          }
        }
        */
      }
      else if(Class.forName(className).getName().equals(SiteNodeVersionImpl.class.getName()))
      {
        getObjectWithId(SiteNodeVersionImpl.class, new Integer(objectId), db);
        getObjectWithId(SmallSiteNodeVersionImpl.class, new Integer(objectId), db);
      }
      else if(Class.forName(className).getName().equals(DigitalAssetImpl.class.getName()))
      {
        getObjectWithId(SmallDigitalAssetImpl.class, new Integer(objectId), db);
        getObjectWithId(MediumDigitalAssetImpl.class, new Integer(objectId), db);
      }
      else if(Class.forName(className).getName().equals(MediumDigitalAssetImpl.class.getName()))
      {
        getObjectWithId(SmallDigitalAssetImpl.class, new Integer(objectId), db);
        getObjectWithId(DigitalAssetImpl.class, new Integer(objectId), db);
      }
      else if(Class.forName(className).getName().equals(PublicationImpl.class.getName()))
      {
        List publicationDetailVOList = PublicationController.getController().getPublicationDetailVOList(new Integer(objectId));
        Iterator publicationDetailVOListIterator = publicationDetailVOList.iterator();
        while(publicationDetailVOListIterator.hasNext())
        {
          PublicationDetailVO publicationDetailVO = (PublicationDetailVO)publicationDetailVOListIterator.next();
          logger.info("publicationDetailVO.getEntityClass():" + publicationDetailVO.getEntityClass());
          logger.info("publicationDetailVO.getEntityId():" + publicationDetailVO.getEntityId());
          if(Class.forName(publicationDetailVO.getEntityClass()).getName().equals(ContentVersion.class.getName()))
          {
            logger.info("We cache all content having references to contentVersion: " + publicationDetailVO.getEntityId());
            Integer contentId = ContentVersionController.getContentVersionController().getContentIdForContentVersion(publicationDetailVO.getEntityId());
            getObjectWithId(ContentVersionImpl.class, new Integer(publicationDetailVO.getEntityId()), db);
            getObjectWithId(SmallContentVersionImpl.class, new Integer(publicationDetailVO.getEntityId()), db);
            getObjectWithId(SmallestContentVersionImpl.class, new Integer(publicationDetailVO.getEntityId()), db);

            getObjectWithId(ContentImpl.class, new Integer(contentId), db);
            getObjectWithId(SmallContentImpl.class, new Integer(contentId), db);
            getObjectWithId(SmallishContentImpl.class, new Integer(contentId), db);
            getObjectWithId(MediumContentImpl.class, new Integer(contentId), db);
          }
          else if(Class.forName(publicationDetailVO.getEntityClass()).getName().equals(SiteNodeImpl.class.getName()))
          {
            SiteNodeImpl siteNode = (SiteNodeImpl)getObjectWithId(SiteNodeImpl.class, new Integer(objectId), db);
            getObjectWithId(SmallSiteNodeImpl.class, new Integer(objectId), db);
           
            /*
            NodeDeliveryController ndc = NodeDeliveryController.getNodeDeliveryController(new Integer(objectId), new Integer(-1), new Integer(-1));
            Repository repository = siteNode.getRepository();
              if(repository != null)
            {
              Collection languages = repository.getRepositoryLanguages();
              Iterator languageIterator = languages.iterator();
              while(languageIterator.hasNext())
              {
                RepositoryLanguage repositoryLanguage = (RepositoryLanguage)languageIterator.next();
                Language currentLanguage = repositoryLanguage.getLanguage();
                LanguageDeliveryController.getLanguageDeliveryController().getLanguageIfSiteNodeSupportsIt(db, currentLanguage.getId(), siteNode.getId());
              }
            }
            */
          }
          else if(Class.forName(publicationDetailVO.getEntityClass()).getName().equals(SiteNodeVersion.class.getName()))
          {
            Integer siteNodeId = SiteNodeVersionController.getController().getSiteNodeVersionVOWithId(publicationDetailVO.getEntityId()).getSiteNodeId();
             
            getObjectWithId(SiteNodeVersionImpl.class, new Integer(publicationDetailVO.getEntityId()), db);
            getObjectWithId(SmallSiteNodeVersionImpl.class, new Integer(publicationDetailVO.getEntityId()), db);

            SiteNodeImpl siteNode = (SiteNodeImpl)getObjectWithId(SiteNodeImpl.class, new Integer(siteNodeId), db);
            getObjectWithId(SmallSiteNodeImpl.class, new Integer(siteNodeId), db);
           
            /*
            NodeDeliveryController ndc = NodeDeliveryController.getNodeDeliveryController(new Integer(objectId), new Integer(-1), new Integer(-1));
            Repository repository = siteNode.getRepository();
View Full Code Here

        clearCache(SmallSiteNodeImpl.class);
        clearCache(SmallestSiteNodeImpl.class);
       
        try
        {
          SiteNodeImpl siteNode = (SiteNodeImpl)object;
          CacheController.clearCache("siteNodeCache", "" + siteNode.getId());
          CacheController.clearCacheForGroup("childSiteNodesCache", "siteNode_" + siteNode.getId());
          CacheController.clearCacheForGroup("childPagesCache", "siteNode_" + siteNode.getId());
          if(siteNode.getParentSiteNode() != null)
          {
            CacheController.clearCacheForGroup("childSiteNodesCache", "siteNode_" + siteNode.getParentSiteNode().getId());         
            CacheController.clearCacheForGroup("childPagesCache", "siteNode_" + siteNode.getParentSiteNode().getId());         
          }
        }
        catch (Exception e)
        {
          logger.warn("Error in JDOCallback:" + e.getMessage(), e);
View Full Code Here

    if(storedClassName.equals("org.infoglue.cms.entities.structure.impl.simple.SiteNodeImpl"))
    {
      try
      {
        SiteNodeImpl impl = ((SiteNodeImpl)object);
          Map<String,String> extraInfoMap = new HashMap<String,String>();
        extraInfoMap.put("siteNodeId", ""+impl.getId());
          extraInfoMap.put("parentSiteNodeId", ""+impl.getValueObject().getParentSiteNodeId());
          extraInfoMap.put("repositoryId", ""+impl.getValueObject().getRepositoryId());
          CacheController.setExtraInfo(SiteNodeImpl.class.getName(), impl.getId().toString(), extraInfoMap);
      }
      catch (Exception e)
      {
        logger.error("Error setting extra info:" + e.getMessage(), e);
      }
View Full Code Here

        RegistryController.getController().clearRegistryForReferencingEntityCompletingName(SiteNode.class.getName(), getObjectIdentity(object).toString());
        clearCache(SmallSiteNodeImpl.class);
       
        try
        {
          SiteNodeImpl siteNode = (SiteNodeImpl)object;
          CacheController.clearCache("siteNodeCache", "" + siteNode.getId());
          CacheController.clearCacheForGroup("childSiteNodesCache", "siteNode_" + siteNode.getId());
          CacheController.clearCacheForGroup("childPagesCache", "siteNode_" + siteNode.getId());
          if(siteNode.getParentSiteNode() != null)
          {
            CacheController.clearCacheForGroup("childSiteNodesCache", "siteNode_" + siteNode.getParentSiteNode().getId());         
            CacheController.clearCacheForGroup("childPagesCache", "siteNode_" + siteNode.getParentSiteNode().getId());         
          }
        }
        catch (Exception e)
        {
          logger.warn("Error in JDOCallback:" + e.getMessage(), e);
View Full Code Here

TOP

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

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.