public class AVMZipImporter extends java.lang.Object implements AVMImporter
| Constructor and Description |
|---|
AVMZipImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureDirectory(AVMStoreDescriptor store,
java.lang.String name)
Recursively creates directories in AVM as required
|
void |
importNode(java.io.InputStream input,
AVMNodeDescriptor node)
Imports the given AVM node from the source data.
|
void |
importNode(java.io.InputStream input,
java.lang.String path)
Imports the given path and version from the source data.
|
void |
importNodes(org.apache.tools.zip.ZipFile zip,
AVMStoreDescriptor avmStore,
java.lang.String storePath)
Imports all the entries in the Zip File into
the AVM store.
|
void |
importNodes(org.apache.tools.zip.ZipFile zip,
java.lang.String storePath)
Imports all the entries in the Zip File into
the AVM store.
|
void |
setAvmService(AVMService avmService)
Sets the AVM Service to be used for importing to
|
public void setAvmService(AVMService avmService)
avmService - The AVM Servicepublic void importNodes(org.apache.tools.zip.ZipFile zip,
java.lang.String storePath)
throws java.io.IOException,
java.util.zip.ZipException
storePath - The full store path, eg stores:/alfresco/foo/java.io.IOExceptionjava.util.zip.ZipExceptionpublic void importNodes(org.apache.tools.zip.ZipFile zip,
AVMStoreDescriptor avmStore,
java.lang.String storePath)
throws java.io.IOException,
java.util.zip.ZipException
avmStore - The AVM Store to import intostorePath - Where in the AVM store to unpack intojava.io.IOExceptionjava.util.zip.ZipExceptionprotected void ensureDirectory(AVMStoreDescriptor store, java.lang.String name)
public void importNode(java.io.InputStream input,
java.lang.String path)
throws java.io.IOException
importNode in interface AVMImporterinput - The stream to read frompath - The AVM path to importjava.io.IOExceptionpublic void importNode(java.io.InputStream input,
AVMNodeDescriptor node)
throws java.io.IOException
importNode in interface AVMImporterinput - The stream to read fromnode - The AVM node to importjava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.