Class ExportRoot

java.lang.Object
org.apache.jackrabbit.vault.fs.config.ExportRoot

public class ExportRoot extends 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 Details

    • ExportRoot

      public ExportRoot(File rootDir)
  • Method Details

    • isValid

      public boolean isValid()
      Checks if this export root already has the necessary structure setup.
      Returns:
      true if valid.
    • assertValid

      public void assertValid() throws IOException
      Throws:
      IOException
    • create

      public void create() throws IOException
      Creates the necessary directories if they do not exist yet.
      Throws:
      IOException - if an I/O error occurs
    • getMetaInf

      public MetaInf getMetaInf()
      Returns the meta information.
      Returns:
      the meta information.
    • getRoot

      public File getRoot()
    • getJcrRoot

      public File getJcrRoot()
    • getMetaDir

      public File getMetaDir()
    • findRoot

      public static ExportRoot findRoot(File cwd)