public interface WebFilesService
Modifier and Type | Field and Description |
---|---|
static String |
JCR_ROOT_PATH |
Modifier and Type | Method and Description |
---|---|
WebFileBundle |
getJcrWebFileBundle(javax.jcr.Session session,
String bundleName)
Creates a web files implementation based on JCR.
|
void |
importJcrWebFileBundle(javax.jcr.Session session,
File directory,
boolean bootstrapPhase)
Imports a web file bundle from a directory.
|
void |
importJcrWebFileBundle(javax.jcr.Session session,
ZipFile zip,
boolean bootstrapPhase)
Imports a web file bundle from the given zip file.
|
void |
importJcrWebFiles(javax.jcr.Session session,
String bundleName,
String bundleSubPath,
File fileOrDirectory)
Imports a sub-tree of a web file bundle from a directory.
|
static final String JCR_ROOT_PATH
WebFileBundle getJcrWebFileBundle(javax.jcr.Session session, String bundleName) throws WebFileException
session
- the JCR session used to access web files.bundleName
- the name of the web files bundle.bundleName
.WebFileException
- if the WebFileBundle
for bundleName
cannot be foundvoid importJcrWebFileBundle(javax.jcr.Session session, File directory, boolean bootstrapPhase) throws IOException, WebFileException
session
- the JCR session used to access web files.directory
- the directory containing the web files to import.bootstrapPhase
- true
if this method is invoked during repository bootstrap phase or as part of a
PostStartupTaskIOException
- if an I/O error occurs while reading web files from file systemWebFileException
- if another error occurs while importing web filesvoid importJcrWebFileBundle(javax.jcr.Session session, ZipFile zip, boolean bootstrapPhase) throws IOException, WebFileException
session
- the JCR session used to access web files.zip
- the ZIP file containing the web files to import.bootstrapPhase
- true
if this method is invoked during repository bootstrap phase or as part of a
PostStartupTaskIOException
- if an I/O error occurs while reading web files from the ZIP fileWebFileException
- if another error occurs while importing web filesvoid importJcrWebFiles(javax.jcr.Session session, String bundleName, String bundleSubPath, File fileOrDirectory) throws IOException, WebFileException
session
- the JCR session used to access web files.bundleName
- the name of the web file bundlebundleSubPath
- the relative sub-path in the web file bundle to import the resources into.fileOrDirectory
- the file or directory to import web files from.IOException
- if an I/O error occurs while reading web files from the fileOrDirectoryWebFileException
- if an error occurs while importing web filesCopyright © 2012–2015 Hippo B.V. (http://www.onehippo.com). All rights reserved.