public final class GlossaryHelper extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
__DEFINITIONS_NODE_NAME |
private static String |
__PLUGIN_NODE_NAME |
static String |
GLOSSARY_PAGE_TAG
The glossary page tag.
|
Modifier | Constructor and Description |
---|---|
private |
GlossaryHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getDefinitionQuery(String siteName,
String language,
Expression expression)
Get the word definitions storage node.
|
static ModifiableTraversableAmetysObject |
getDefinitionsNode(Site site,
String language)
Get the word definitions storage node.
|
static String |
getDefinitionsNodePath(String siteName,
String language)
Get the word definitions storage node.
|
static String |
getFirstLetterDefQuery(String siteName,
String language,
String letter)
Get the word definitions storage node.
|
static String |
getNonAlphaFirstLetterDefQuery(String siteName,
String language)
Get the word definitions storage node when first letter is not an alpha.
|
private static ModifiableTraversableAmetysObject |
getOrCreateNode(ModifiableTraversableAmetysObject parentNode,
String nodeName,
String nodeType) |
static ModifiableTraversableAmetysObject |
getPluginNode(Site site)
Get the root plugin storage object.
|
static String |
getPluginNodePath(String siteName)
Get the word definitions storage node.
|
static String |
getWordExistsQuery(String siteName,
String language,
String word)
Get the word definitions storage node.
|
public static final String GLOSSARY_PAGE_TAG
private static final String __PLUGIN_NODE_NAME
private static final String __DEFINITIONS_NODE_NAME
private GlossaryHelper()
public static ModifiableTraversableAmetysObject getPluginNode(Site site) throws AmetysRepositoryException
site
- the site.AmetysRepositoryException
- if a repository error occurs.public static ModifiableTraversableAmetysObject getDefinitionsNode(Site site, String language) throws AmetysRepositoryException
site
- the sitelanguage
- the language.AmetysRepositoryException
- if a repository error occurs.public static String getPluginNodePath(String siteName)
siteName
- the site name.public static String getDefinitionsNodePath(String siteName, String language)
siteName
- the site name.language
- the language.public static String getDefinitionQuery(String siteName, String language, Expression expression)
siteName
- the site name.language
- the language.expression
- the expression of the repository queryspublic static String getWordExistsQuery(String siteName, String language, String word)
siteName
- the site name.language
- the language.word
- the searched wordpublic static String getFirstLetterDefQuery(String siteName, String language, String letter)
siteName
- the site name.language
- the language.letter
- the first letter.public static String getNonAlphaFirstLetterDefQuery(String siteName, String language)
siteName
- the site name.language
- the language.private static ModifiableTraversableAmetysObject getOrCreateNode(ModifiableTraversableAmetysObject parentNode, String nodeName, String nodeType) throws AmetysRepositoryException
AmetysRepositoryException