Class ExportRoot
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.config.ExportRoot
-
public class ExportRoot extends java.lang.Object
Represents the root of a vault export or a vlt checkout. it has the following structure:root |-- META-INF | `-- vault | |-- config.xml | |-- filter.xml | |-- nodetypes.cnd | `-- properties.xml `-- jcr_root :
-
-
Constructor Summary
Constructors Constructor Description ExportRoot(java.io.File rootDir)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertValid()
void
create()
Creates the necessary directories if they do not exist yet.static ExportRoot
findRoot(java.io.File cwd)
java.io.File
getJcrRoot()
java.io.File
getMetaDir()
MetaInf
getMetaInf()
Returns the meta information.java.io.File
getRoot()
boolean
isValid()
Checks if this export root already has the necessary structure setup.
-
-
-
Method Detail
-
isValid
public boolean isValid()
Checks if this export root already has the necessary structure setup.- Returns:
true
if valid.
-
assertValid
public void assertValid() throws java.io.IOException
- Throws:
java.io.IOException
-
create
public void create() throws java.io.IOException
Creates the necessary directories if they do not exist yet.- Throws:
java.io.IOException
- if an I/O error occurs
-
getMetaInf
public MetaInf getMetaInf()
Returns the meta information.- Returns:
- the meta information.
-
getRoot
public java.io.File getRoot()
-
getJcrRoot
public java.io.File getJcrRoot()
-
getMetaDir
public java.io.File getMetaDir()
-
findRoot
public static ExportRoot findRoot(java.io.File cwd)
-
-