Package org.infoglue.deliver.controllers.kernel.impl.simple

Examples of org.infoglue.deliver.controllers.kernel.impl.simple.ContentDeliveryController


        if(this.digitalAssetVO != null)
          this.assetFilePath = DigitalAssetController.getDigitalAssetProtectedFilePath(this.digitalAssetVO.getId());
      }
      else
      {
          ContentDeliveryController cdc = ContentDeliveryController.getContentDeliveryController();
         
          Database db = CastorDatabaseService.getDatabase();
         
          try
          {
            db.begin();
            DeliveryContext deliveryContext = DeliveryContext.getDeliveryContext();
              //assetUrl = cdc.getAssetUrl(db, contentId, languageId, assetKey, siteNodeId, true, deliveryContext, this.getInfoGluePrincipal());
            logger.info("principal:" + this.principal);
            if(this.principal == null)
            {
                this.principal = this.getInfoGluePrincipal();
                if(this.principal == null)
                  this.principal = getAnonymousPrincipal();
            }
              //logger.info("principal:" + principal);
            Integer digitalAssetId = cdc.getDigitalAssetId(db, contentId, languageId, assetKey, siteNodeId, true, deliveryContext, (InfoGluePrincipal)principal);
              //logger.info("digitalAssetId:" + digitalAssetId);
              if(digitalAssetId != null)
              {
                this.digitalAssetVO = DigitalAssetController.getSmallDigitalAssetVOWithId(digitalAssetId, db);
                logger.info("digitalAssetVO:" + digitalAssetVO);
View Full Code Here

TOP

Related Classes of org.infoglue.deliver.controllers.kernel.impl.simple.ContentDeliveryController

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.