org.alfresco.service.cmr.view
Interface AVMZipExporterService

All Known Implementing Classes:
AVMZipExporterServiceImpl

public interface AVMZipExporterService

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


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.
 

Method Detail

export

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.

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

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.

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

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.

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.