public class BootstrapUtil extends Object
Constructor and Description |
---|
BootstrapUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
bootstrap(String[] resourceNames,
int importUUIDBehavior) |
static void |
bootstrap(String resourceName,
String subPath,
int importUUIDBehavior) |
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 bootstrap(String resourceName, String subPath, int importUUIDBehavior) throws IOException, javax.jcr.RepositoryException
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–2020 Magnolia International Ltd.. All rights reserved.