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. given a resource path like
/mgnl-bootstrap/foo/config.server.i18n.xml and .xml extension it will return config.server.i18n (no trailing dot). |
static String |
getFullpathFromResource(String resourcePath)
I.e. given a resource path like
/mgnl-bootstrap/foo/config.server.i18n.xml it will return /server/i18n . |
static String |
getPathnameFromResource(String resourcePath)
I.e. given a resource path like
/mgnl-bootstrap/foo/config.server.i18n.xml it will return /server . |
static String |
getWorkspaceNameFromResource(String resourcePath)
I.e. given a resource path like
/mgnl-bootstrap/foo/config.server.i18n.xml it will return config . |
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–2018 Magnolia International Ltd.. All rights reserved.