public class BootstrapUtil extends Object
Constructor and Description |
---|
BootstrapUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
bootstrap(String[] resourceNames,
int importUUIDBehavior) |
static void |
export(Content content,
File directory)
Deprecated.
since 5.3.3, use
export(Node, File) instead. |
static void |
export(javax.jcr.Node content,
File directory) |
static String |
getFilenameFromResource(String resourcePath,
String extension)
I.e.
|
static String |
getFullpathFromResource(String resourcePath)
I.e.
|
static String |
getPathnameFromResource(String resourcePath)
I.e.
|
static String |
getWorkspaceNameFromResource(String resourcePath)
I.e.
|
public static void bootstrap(String[] resourceNames, int importUUIDBehavior) throws IOException, javax.jcr.RepositoryException
IOException
javax.jcr.RepositoryException
public static void export(Content content, File directory) throws IOException, javax.jcr.RepositoryException
export(Node, File)
instead.IOException
javax.jcr.RepositoryException
public static void export(javax.jcr.Node content, File directory) throws IOException, javax.jcr.RepositoryException
IOException
javax.jcr.RepositoryException
public static String getWorkspaceNameFromResource(String resourcePath)
/mgnl-bootstrap/foo/config.server.i18n.xml
it will return config
.public static String getFullpathFromResource(String resourcePath)
/mgnl-bootstrap/foo/config.server.i18n.xml
it will return /server/i18n
.public static String getPathnameFromResource(String resourcePath)
/mgnl-bootstrap/foo/config.server.i18n.xml
it will return /server
.Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.