|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.importer.AVMZipImporter
public class AVMZipImporter
Importer which allows the loading of part of an AVM filesystem from a Zip file, typically called at boostrap time.
| Constructor Summary | |
|---|---|
AVMZipImporter()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AVMZipImporter()
| Method Detail |
|---|
public void setAvmService(AVMService avmService)
avmService - The AVM Service
public 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.IOException
java.util.zip.ZipException
public 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 into
java.io.IOException
java.util.zip.ZipException
protected 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 import
java.io.IOException
public 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 import
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||