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

Examples of org.infoglue.cms.entities.content.impl.simple.SmallDigitalAssetImpl


     
      QueryResults results = oql.execute(Database.READONLY);
   
    while(results.hasMore())
        {
          SmallDigitalAssetImpl digitalAsset = (SmallDigitalAssetImpl)results.next();
          digitalAssetVOList.add(digitalAsset.getValueObject());
        }
   
    results.close();
    oql.close();
     
View Full Code Here


        previousLanguageId = new Integer(-1);   
        currentCount = 0;
       
        while(assetResults.hasMore() && currentCount < maxRows)
        {
          SmallDigitalAssetImpl smallAsset = (SmallDigitalAssetImpl)assetResults.next();
          DigitalAsset asset = DigitalAssetController.getMediumDigitalAssetWithId(smallAsset.getId(), db);
          logger.info("Found a asset matching " + searchString + ":" + asset.getId());
          Collection versions = asset.getContentVersions();
          Iterator versionsIterator = versions.iterator();
          while(versionsIterator.hasNext())
          {
View Full Code Here

      Integer previousLanguageId = new Integer(-1);   
      int currentCount = 0;

      while(assetResults.hasMore() && currentCount < maxRows)
      {
        SmallDigitalAssetImpl smallAsset = (SmallDigitalAssetImpl)assetResults.next();
        //if(smallAsset.getAssetContentType().matches(assetTypeFilter))
        if(assetTypeFilter == null || assetTypeFilter.equals("*") || assetTypeFilter.indexOf(smallAsset.getAssetContentType()) > -1)
        {
          DigitalAsset asset = DigitalAssetController.getMediumDigitalAssetWithId(smallAsset.getId(), db);
          logger.info("Found a asset matching " + searchString + ":" + asset.getId());
          Collection versions = asset.getContentVersions();
          Iterator versionsIterator = versions.iterator();
          while(versionsIterator.hasNext())
          {
View Full Code Here

      QueryResults assetResults = assetOQL.execute(Database.READONLY);

      int currentCount = 0;
      while(assetResults.hasMore() && currentCount < maxRows)
      {
        SmallDigitalAssetImpl smallAsset = (SmallDigitalAssetImpl)assetResults.next();
        if(logger.isInfoEnabled())
          logger.info("asset found:" + smallAsset.getDigitalAssetId() + ":" + smallAsset.getAssetKey() + ":" + smallAsset.getAssetContentType());
       
        matchingAssets.add(smallAsset.getValueObject());
          currentCount++;
      }

      assetResults.close();
      assetOQL.close();
View Full Code Here

     
      QueryResults results = oql.execute(Database.READONLY);
   
    while(results.hasMore())
        {
          SmallDigitalAssetImpl smallDigitalAsset = (SmallDigitalAssetImpl)results.next();
          dumpDigitalAsset(smallDigitalAsset.getValueObject(), smallDigitalAsset.getDigitalAssetId() + ".file", filePath, db);
          //DigitalAsset digitalAsset = getDigitalAssetWithId(smallDigitalAsset.getId(), db);
          digitalAssetList.add(smallDigitalAsset.getValueObject());
        }
    //System.out.println("digitalAssetList:" + digitalAssetList.size());
   
    results.close();
    oql.close();
View Full Code Here

      QueryResults results = oql.execute(Database.READONLY);

    while(results.hasMore())
        {
          SmallDigitalAssetImpl digitalAsset = (SmallDigitalAssetImpl)results.next();
          digitalAssetVOList.add(digitalAsset.getValueObject());
        }

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

     
      QueryResults results = oql.execute(Database.READONLY);
   
    if(results.hasMore())
        {
          SmallDigitalAssetImpl digitalAsset = (SmallDigitalAssetImpl)results.next();
          digitalAssetVO = digitalAsset.getValueObject();
        }
   
    results.close();
    oql.close();
View Full Code Here

     
      QueryResults results = oql.execute(Database.READONLY);
   
    if(results.hasMore())
        {
          SmallDigitalAssetImpl digitalAsset = (SmallDigitalAssetImpl)results.next();
          digitalAssetVO = digitalAsset.getValueObject();
        }
   
    results.close();
    oql.close();
View Full Code Here

     
      while (results.hasMore())
            {
        boolean keep = true;
             
              SmallDigitalAssetImpl digitalAsset = (SmallDigitalAssetImpl)results.next();
              if(digitalAsset.getAssetKey().equals("portletentityregistry.xml"))
                keep = false;
             
              List<SmallestContentVersionVO> contentVersions = DigitalAssetController.getController().getContentVersionVOListConnectedToAssetWithId(digitalAsset.getId());
              //Collection contentVersions = digitalAsset.getContentVersions();
              Iterator<SmallestContentVersionVO> contentVersionsIterator = contentVersions.iterator();
              SmallestContentVersionVO contentVersionVO = null;
              while(contentVersionsIterator.hasNext())
              {
                contentVersionVO = contentVersionsIterator.next();
                if(!isOldVersion(contentVersionVO, numberOfVersionsToKeep, db))
                  keep = false;
              }
             
              if(contentVersionVO != null && keep)
              {
                if(contentVersionVO.getContentId() != null)
                {
                  String contentPath = ContentController.getContentController().getContentPath(contentVersionVO.getContentId(), true, true, db);
                  optimizationBeanList.addDigitalAsset(digitalAsset);
                  optimizationBeanList.addEventVersions(contentVersions);
                  optimizationBeanList.setContentPath(digitalAsset.getId(), contentPath);
                }
                else
                {
                  logger.error("ContentVersion with id:" + contentVersionVO.getId() + " had no ownningcontent");
                }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.content.impl.simple.SmallDigitalAssetImpl

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.