public class DataDistributionByName extends AbstractDataDistributionType
n levels of depth for example
with n = 4:
| Constructor and Description |
|---|
DataDistributionByName() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getAncestors(String dataId)
Gives the list of all the name of the ancestors
|
void |
migrate(javax.jcr.Node rootNode)
Migrate from old structure to new one.
|
void |
migrate(javax.jcr.Node rootNode,
String nodeType,
List<String> mixinTypes,
Map<String,String[]> permissions)
Migrate from old structure to new one.
|
protected boolean |
useParametersOnLeafOnly()
Indicates whether or not the node type, the mixin types and the permissions have to
be used on leaf node only.
|
createNode, getDataNode, getOrCreateDataNode, getOrCreateDataNode, getOrCreateDataNode, getOrCreateDataNode, getRelativePath, removeDataNodeprotected List<String> getAncestors(String dataId)
getAncestors in class AbstractDataDistributionTypedataId - the id of the data to find/createprotected boolean useParametersOnLeafOnly()
useParametersOnLeafOnly in class AbstractDataDistributionTypetrue if only the leaf node has to be created with the parameters
false otherwise.public void migrate(javax.jcr.Node rootNode)
throws javax.jcr.RepositoryException
migrate in interface DataDistributionTypemigrate in class AbstractDataDistributionTyperootNode - the root node under which the data to migrate is storedjavax.jcr.RepositoryException - if an error occurred during migrationpublic void migrate(javax.jcr.Node rootNode,
String nodeType,
List<String> mixinTypes,
Map<String,String[]> permissions)
throws javax.jcr.RepositoryException
migrate in interface DataDistributionTypemigrate in class AbstractDataDistributionTyperootNode - the root node under which the data to migrate is storednodeType - the node type to use in case we need to create the nodemixinTypes - the mixin types to use in case we need to create the nodepermissions - the permissions to use in case we need to create the nodejavax.jcr.RepositoryException - if an error occurred during migrationCopyright © 2015 eXo Platform SAS. All Rights Reserved.