org.infoglue.cms.controllers.delivery.kernel.impl.simple
Class DigitalAssetDeliveryController

java.lang.Object
  |
  +--org.infoglue.cms.controllers.delivery.kernel.impl.simple.DigitalAssetDeliveryController

public class DigitalAssetDeliveryController
extends java.lang.Object


Method Summary
 void deleteContentVersionAssets(java.lang.Integer contentVersionId)
          This method removes all images in the digitalAsset directory which belongs to a certain content version.
 java.util.Vector dumpAndGetZipEntries(org.infoglue.cms.entities.content.DigitalAsset digitalAsset, java.lang.String fileName, java.lang.String filePath, java.io.File unzipDirectory)
           
 void dumpAndUnzipDigitalAsset(org.infoglue.cms.entities.content.DigitalAsset digitalAsset, java.lang.String fileName, java.lang.String filePath, java.io.File unzipDirectory)
          This method dumps the digitalAsset to file and unzips it.
 void dumpAttributeToFile(java.lang.String attributeValue, java.lang.String fileName, java.lang.String filePath)
          This method checks if the given file exists on disk.
 void dumpDigitalAsset(org.infoglue.cms.entities.content.DigitalAsset digitalAsset, java.lang.String fileName, java.lang.String filePath)
          This method checks if the given file exists on disk.
static DigitalAssetDeliveryController getDigitalAssetDeliveryController()
          Factory method
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDigitalAssetDeliveryController

public static DigitalAssetDeliveryController getDigitalAssetDeliveryController()
Factory method


dumpAttributeToFile

public void dumpAttributeToFile(java.lang.String attributeValue,
                                java.lang.String fileName,
                                java.lang.String filePath)
                         throws java.lang.Exception
This method checks if the given file exists on disk. If it does it's ignored because that means that the file is allready cached on the server. If not we dump the text on it.

java.lang.Exception

dumpDigitalAsset

public void dumpDigitalAsset(org.infoglue.cms.entities.content.DigitalAsset digitalAsset,
                             java.lang.String fileName,
                             java.lang.String filePath)
                      throws java.lang.Exception
This method checks if the given file exists on disk. If it does it's ignored because that means that the file is allready cached on the server. If not we take out the stream from the digitalAsset-object and dumps it.

java.lang.Exception

dumpAndUnzipDigitalAsset

public void dumpAndUnzipDigitalAsset(org.infoglue.cms.entities.content.DigitalAsset digitalAsset,
                                     java.lang.String fileName,
                                     java.lang.String filePath,
                                     java.io.File unzipDirectory)
                              throws java.lang.Exception
This method dumps the digitalAsset to file and unzips it. If it does it's ignored because that means that the file is allready cached on the server. If not we take out the stream from the digitalAsset-object and dumps it.

java.lang.Exception

dumpAndGetZipEntries

public java.util.Vector dumpAndGetZipEntries(org.infoglue.cms.entities.content.DigitalAsset digitalAsset,
                                             java.lang.String fileName,
                                             java.lang.String filePath,
                                             java.io.File unzipDirectory)
                                      throws java.lang.Exception
java.lang.Exception

deleteContentVersionAssets

public void deleteContentVersionAssets(java.lang.Integer contentVersionId)
This method removes all images in the digitalAsset directory which belongs to a certain content version.