org.alfresco.repo.exporter
Class AVMZipExporterServiceImpl

java.lang.Object
  extended by org.alfresco.repo.exporter.AVMZipExporterServiceImpl
All Implemented Interfaces:
AVMZipExporterService

public class AVMZipExporterServiceImpl
extends java.lang.Object
implements AVMZipExporterService

Exporter which allows the saving of part of an AVM filesystem to a Zip file.


Constructor Summary
AVMZipExporterServiceImpl()
           
 
Method Summary
 void export(java.io.File output, int version, java.lang.String path, boolean recurse)
          Exports the given path and version as a zip file, stored in the specified file.
 void export(org.apache.tools.zip.ZipOutputStream out, AVMNodeDescriptor node, boolean recurse)
          Exports the given AVM node into an already open Zip file.
 void export(org.apache.tools.zip.ZipOutputStream out, int version, java.lang.String path, boolean recurse)
          Exports the given path and version into an already open Zip file.
 void setAvmService(AVMService avmService)
          Sets the AVM Service to be used for exporting from
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AVMZipExporterServiceImpl

public AVMZipExporterServiceImpl()
Method Detail

setAvmService

public void setAvmService(AVMService avmService)
Sets the AVM Service to be used for exporting from

Parameters:
avmService - The AVM Service

export

public void export(java.io.File output,
                   int version,
                   java.lang.String path,
                   boolean recurse)
            throws java.io.IOException,
                   java.util.zip.ZipException
Exports the given path and version as a zip file, stored in the specified file.

Specified by:
export in interface AVMZipExporterService
Parameters:
output - The File to store the Zip in
path - The AVM path to export
version - The AVM version IO
recurse - Should the export recurse into directories?
Throws:
java.io.IOException
java.util.zip.ZipException

export

public void export(org.apache.tools.zip.ZipOutputStream out,
                   int version,
                   java.lang.String path,
                   boolean recurse)
            throws java.io.IOException,
                   java.util.zip.ZipException
Exports the given path and version into an already open Zip file. This method can be used to output multiple different AVM resources into one file.

Specified by:
export in interface AVMZipExporterService
Parameters:
output - The File to store the Zip in
path - The AVM path to export
version - The AVM version IO
recurse - Should the export recurse into directories?
Throws:
java.io.IOException
java.util.zip.ZipException

export

public void export(org.apache.tools.zip.ZipOutputStream out,
                   AVMNodeDescriptor node,
                   boolean recurse)
            throws java.io.IOException,
                   java.util.zip.ZipException
Exports the given AVM node into an already open Zip file. This method can be used to output multiple different AVM resources into one file.

Specified by:
export in interface AVMZipExporterService
Parameters:
output - The File to store the Zip in
node - The AVM node to export
recurse - Should the export recurse into directories?
Throws:
java.io.IOException
java.util.zip.ZipException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.