public class DefaultNameGenerationHelperImpl extends Object implements NameGenerationHelper
| Constructor and Description |
|---|
DefaultNameGenerationHelperImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
generatNodeName(JCRNodeWrapper parent,
String nodeType)
Basic name generation method, usually called by back-end methods or actions to generate a node name based
on the type
|
String |
generatNodeName(JCRNodeWrapper parent,
String defaultLanguage,
ExtendedNodeType nodeType,
String targetName)
Name generation method used mostly by Jahia's UI to generate node names based on the node type or the target
name.
|
Set<String> |
getRandomizedNames() |
void |
setRandomizedNames(Set<String> randomizedNames) |
public String generatNodeName(JCRNodeWrapper parent, String nodeType)
NameGenerationHelpergeneratNodeName in interface NameGenerationHelperparent - the parent object for which to create a new node name for a new child objectnodeType - the node type of the new child objectpublic String generatNodeName(JCRNodeWrapper parent, String defaultLanguage, ExtendedNodeType nodeType, String targetName)
NameGenerationHelpergeneratNodeName in interface NameGenerationHelperparent - the parent object for which to create a new node name for a new child objectdefaultLanguage - the language code for the default languagenodeType - the node type of the new child objecttargetName - the name of the module for the child node as specified in the definition (maybe be "*" if
any name is allowed or null if no targetName was specified at all).Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.