public final class BundleInfoJcrHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NODE_BUNDLES |
static String |
NODE_MODULE_MANAGENENT |
static String |
NODE_TYPE_FOLDER |
static String |
NODE_TYPE_ROOT |
static String |
PATH_BUNDLES |
static String |
PATH_MODULE_MANAGEMENT |
static String |
PROP_BUNDLES_PERSISTENT_STATE |
static String |
PROP_BUNDLES_SCRIPTS |
| Modifier and Type | Method and Description |
|---|---|
static org.json.JSONObject |
getModuleScriptsStatus(String name)
Get the status for migration scripts for a specific bundle
|
static Collection<BundlePersistentInfo> |
getPersistentStates()
Returns bundles persistent states.
|
static JCRNodeWrapper |
getRootNode(JCRSessionWrapper session)
Returns the module manager JCR root node
|
static void |
storeModuleScriptStatus(String name,
org.json.JSONObject status)
Store the status for migration scripts
|
static void |
storePersistentStates(Collection<BundlePersistentInfo> bundles)
This method will save a collection of bundles as JSON on the node /module-management
using the property j:bundlesPersistentState.
|
public static final String NODE_TYPE_FOLDER
public static final String NODE_TYPE_ROOT
public static final String NODE_MODULE_MANAGENENT
public static final String NODE_BUNDLES
public static final String PATH_MODULE_MANAGEMENT
public static final String PATH_BUNDLES
public static final String PROP_BUNDLES_PERSISTENT_STATE
public static final String PROP_BUNDLES_SCRIPTS
public static void storePersistentStates(Collection<BundlePersistentInfo> bundles) throws javax.jcr.RepositoryException
bundles - The collection of bundles to save as JSON in the JCRjavax.jcr.RepositoryExceptionpublic static Collection<BundlePersistentInfo> getPersistentStates() throws org.json.JSONException, javax.jcr.RepositoryException
org.json.JSONException - if an error occurs while parsing the property value from the JCRjavax.jcr.RepositoryException - if an error occurs while accessing the JCRpublic static org.json.JSONObject getModuleScriptsStatus(String name) throws javax.jcr.RepositoryException
name - bundle symbolic namejavax.jcr.RepositoryException - jcr exceptionpublic static void storeModuleScriptStatus(String name, org.json.JSONObject status) throws javax.jcr.RepositoryException
name - bundle symbolic namestatus - statusjavax.jcr.RepositoryException - jcr exceptionpublic static JCRNodeWrapper getRootNode(JCRSessionWrapper session) throws javax.jcr.RepositoryException
session - the current JCR sessionjavax.jcr.RepositoryException - in case of JCR errorsCopyright © 2004–2021 Jahia Solutions Group SA. All rights reserved.