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 |
| Modifier and Type | Method and Description |
|---|---|
static Collection<BundlePersistentInfo> |
getPersistentStates()
Returns bundles persistent states.
|
static JCRNodeWrapper |
getRootNode(JCRSessionWrapper session)
Returns the module manager JCR root node
|
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 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 JCRNodeWrapper getRootNode(JCRSessionWrapper session) throws javax.jcr.RepositoryException
session - the current JCR sessionjavax.jcr.RepositoryException - in case of JCR errorsCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.