Examples of DigitalAssetVO


Examples of org.infoglue.cms.entities.content.DigitalAssetVO

            String tempFileName = "tmp_" + System.currentTimeMillis() + "_" + fileName;
                  String filePath = CmsPropertyHandler.getDigitalAssetPath();
                  fileSystemName = filePath + File.separator + tempFileName;
                 
                  DigitalAssetVO newAsset = new DigitalAssetVO();
            newAsset.setAssetContentType(contentType);
            newAsset.setAssetKey("thumbnail");
            newAsset.setAssetFileName(fileName);
            newAsset.setAssetFilePath(filePath);
            newAsset.setAssetFileSize(new Integer(new Long(file.length()).intValue()));
            is = new FileInputStream(file);
           
              DigitalAssetController.create(newAsset, is, newContentVersion.getContentVersionId(), this.getInfoGluePrincipal());                  
                }
              }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.