|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.importexport.BootstrapUtil
public class BootstrapUtil
Utilities to bootstrap set of files and/or to export content into a specified directory.
Constructor Summary | |
---|---|
BootstrapUtil()
|
Method Summary | |
---|---|
static void |
bootstrap(String[] resourceNames,
int importUUIDBehavior)
|
static void |
export(Content 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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BootstrapUtil()
Method Detail |
---|
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
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
.
public static String getFilenameFromResource(String resourcePath, String extension)
/mgnl-bootstrap/foo/config.server.i18n.xml
and .xml
extension it will return config.server.i18n
(no trailing dot).
If extension is null
, it defaults to .xml
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |