Class DataDistributionByPath
- java.lang.Object
-
- org.exoplatform.services.jcr.ext.distribution.impl.AbstractDataDistributionType
-
- org.exoplatform.services.jcr.ext.distribution.impl.DataDistributionByPath
-
- All Implemented Interfaces:
DataDistributionType
public class DataDistributionByPath extends AbstractDataDistributionType
This distribution doesn't do anything specific, it only stores the content as requested, which means that the data id expected is simply a relative path. It will mainly help to create a tree of nodes in a reliable way.- Version:
- $Id$
- Author:
- Nicolas Filotto
-
-
Constructor Summary
Constructors Constructor Description DataDistributionByPath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<String>getAncestors(String relativePath)Gives the list of all the name of the ancestorsprotected booleanuseParametersOnLeafOnly()Indicates whether or not the node type, the mixin types and the permissions have to be used on leaf node only.-
Methods inherited from class org.exoplatform.services.jcr.ext.distribution.impl.AbstractDataDistributionType
createNode, getDataNode, getOrCreateDataNode, getOrCreateDataNode, getOrCreateDataNode, getOrCreateDataNode, getRelativePath, migrate, migrate, removeDataNode
-
-
-
-
Method Detail
-
getAncestors
protected List<String> getAncestors(String relativePath)
Gives the list of all the name of the ancestors- Specified by:
getAncestorsin classAbstractDataDistributionType- Parameters:
relativePath- the id of the data to find/create- Returns:
- the list of the ancestor names
-
useParametersOnLeafOnly
protected boolean useParametersOnLeafOnly()
Indicates whether or not the node type, the mixin types and the permissions have to be used on leaf node only.- Specified by:
useParametersOnLeafOnlyin classAbstractDataDistributionType- Returns:
trueif only the leaf node has to be created with the parametersfalseotherwise.
-
-