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. 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 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–2016 Magnolia International Ltd.. All rights reserved.