public class AVMZipImporter extends Object implements AVMImporter
| Constructor and Description |
|---|
AVMZipImporter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureDirectory(AVMStoreDescriptor store,
String name)
Recursively creates directories in AVM as required
|
void |
importNode(InputStream input,
AVMNodeDescriptor node)
Imports the given AVM node from the source data.
|
void |
importNode(InputStream input,
String path)
Imports the given path and version from the source data.
|
void |
importNodes(ZipFile zip,
AVMStoreDescriptor avmStore,
String storePath)
Imports all the entries in the Zip File into
the AVM store.
|
void |
importNodes(ZipFile zip,
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(ZipFile zip, String storePath) throws IOException, ZipException
storePath - The full store path, eg stores:/alfresco/foo/IOExceptionZipExceptionpublic void importNodes(ZipFile zip, AVMStoreDescriptor avmStore, String storePath) throws IOException, ZipException
avmStore - The AVM Store to import intostorePath - Where in the AVM store to unpack intoIOExceptionZipExceptionprotected void ensureDirectory(AVMStoreDescriptor store, String name)
public void importNode(InputStream input, String path) throws IOException
importNode in interface AVMImporterinput - The stream to read frompath - The AVM path to importIOExceptionpublic void importNode(InputStream input, AVMNodeDescriptor node) throws IOException
importNode in interface AVMImporterinput - The stream to read fromnode - The AVM node to importIOExceptionCopyright © 2005–2014 Alfresco Software. All rights reserved.