public interface MultiLanguageService
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMENTS
Node name as COMMENTS
|
static String |
EXO_LANGUAGE
Property name as EXO_LANGUAGE
|
static String |
LANGUAGES
Node name as LANGUAGES
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFileLanguage(javax.jcr.Node node,
String language,
Map mappings,
boolean isDefault)
Add newLanguageNode node, then set property in mapping to newLanguageNode
|
void |
addFileLanguage(javax.jcr.Node node,
String fileName,
javax.jcr.Value value,
String mimeType,
String language,
String repositoryName,
boolean isDefault)
Add newLanguageNode node, then add new file to newLanguageNode
|
void |
addFolderLanguage(javax.jcr.Node node,
Map inputs,
String language,
boolean isDefault,
String nodeType,
String repositoryName)
Add new language node as a folder
|
void |
addLanguage(javax.jcr.Node node,
Map inputs,
String language,
boolean isDefault)
Add new language for current node
Set value of property in inputs Map to new language node
|
void |
addLanguage(javax.jcr.Node node,
Map inputs,
String language,
boolean isDefault,
String nodeType)
Add new language for current node
Processing for some new added node
Set value of property in inputs Map to new language node
Processing for nodeType in child node of current node and some new added node
|
void |
addLinkedLanguage(javax.jcr.Node node,
javax.jcr.Node translationNode)
Add newLanguageNode node with a symlink, based on exo:language targetNode property
|
void |
addLinkedLanguage(javax.jcr.Node node,
javax.jcr.Node translationNode,
boolean overrideExistence)
Add newLanguageNode node with a symlink, based on exo:language targetNode property
|
void |
addSynchronizedLinkedLanguage(javax.jcr.Node selectedNode,
javax.jcr.Node newTranslationNode)
Add new translation for one node and synchronize all related translation nodes.
|
String |
getDefault(javax.jcr.Node node)
Get value of property exo:language in current node
|
javax.jcr.Node |
getLanguage(javax.jcr.Node node,
String language)
Get node following relative path = "languages/" + language
|
List<String> |
getSupportedLanguages(javax.jcr.Node node)
Get list of value in exo:language property in child node of current node
|
void |
setDefault(javax.jcr.Node node,
String language,
String repositoryName)
Set data for current node
|
static final String LANGUAGES
static final String EXO_LANGUAGE
static final String COMMENTS
List<String> getSupportedLanguages(javax.jcr.Node node) throws Exception
node - current nodeExceptionvoid setDefault(javax.jcr.Node node,
String language,
String repositoryName)
throws Exception
node - current nodelanguage - language namerepositoryName - repository nameExceptionvoid addLanguage(javax.jcr.Node node,
Map inputs,
String language,
boolean isDefault)
throws Exception
node - current nodeinputs - Map includes key and value of propertylanguage - language nameisDefault - flag to define default language is used or notExceptionvoid addLanguage(javax.jcr.Node node,
Map inputs,
String language,
boolean isDefault,
String nodeType)
throws Exception
node - current nodeinputs - Map includes key and value of propertylanguage - language nameisDefault - flag to define default language is used or notnodeType - node nameExceptionvoid addFileLanguage(javax.jcr.Node node,
String fileName,
javax.jcr.Value value,
String mimeType,
String language,
String repositoryName,
boolean isDefault)
throws Exception
node - current nodefileName - name of filevalue - value of filemimeType - mimiTypelanguage - language namerepositoryName - repository nameisDefault - flag to use new language or default languageExceptionvoid addFileLanguage(javax.jcr.Node node,
String language,
Map mappings,
boolean isDefault)
throws Exception
node - current nodelanguage - language namemappings - Map includes property and valueisDefault - flag to use new language or default languageExceptionvoid addLinkedLanguage(javax.jcr.Node node,
javax.jcr.Node translationNode)
throws Exception
node - current nodetranslationNode - target translation nodeExceptionvoid addLinkedLanguage(javax.jcr.Node node,
javax.jcr.Node translationNode,
boolean overrideExistence)
throws Exception
node - current nodetranslationNode - target translation nodeoverrideExistence - true if override existing symlink pointing to other translation, else throw ItemExistsExceptionExceptionvoid addSynchronizedLinkedLanguage(javax.jcr.Node selectedNode,
javax.jcr.Node newTranslationNode)
throws Exception
selectedNode - Selected NodenewTranslationNode - New Translation NodeExceptionvoid addFolderLanguage(javax.jcr.Node node,
Map inputs,
String language,
boolean isDefault,
String nodeType,
String repositoryName)
throws Exception
node - inputs - language - isDefault - nodeType - repositoryName - ExceptionString getDefault(javax.jcr.Node node) throws Exception
node - current nodeExceptionjavax.jcr.Node getLanguage(javax.jcr.Node node,
String language)
throws Exception
node - language - ExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.