public class DataDistributionByHash extends AbstractDataDistributionType
n levels of depth for example with n = 4 and
MD5 as hashing function:
For "john.smith" with MD5, the hash code in base 32 is 12spjkm4fhsrl151pva3f7mf1r,
so the path would be "1/2/s/john.smith"| Constructor and Description |
|---|
DataDistributionByHash() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getAncestors(String dataId)
Gives the list of all the name of the ancestors
|
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, migrate, migrate, 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.Copyright © 2019 eXo Platform SAS. All Rights Reserved.