Package org.ametys.plugins.glossary
Interface Definition
- All Known Implementing Classes:
DefaultDefinition
public interface Definition
A glossary definition.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the displayOnText.Get all forms.Get the content.String[]
Get the themes.Get the variants.getWord()
Get the word.void
removeTheme
(String themeId) Remove theme if existvoid
setContent
(String content) Set the content.void
setDisplayOnText
(boolean displayOnText) Set the displayOnText.void
Set the themes.void
setVariants
(Collection<String> variants) Set the variants.void
Set the word.
-
Method Details
-
getWord
Get the word.- Returns:
- the word
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setWord
Set the word.- Parameters:
word
- the word to set- Throws:
AmetysRepositoryException
- if an error occurs.
-
getVariants
Get the variants.- Returns:
- the variants
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setVariants
Set the variants.- Parameters:
variants
- the variants to set- Throws:
AmetysRepositoryException
- if an error occurs.
-
getContent
Get the content.- Returns:
- _the content
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setContent
Set the content.- Parameters:
content
- the content to set- Throws:
AmetysRepositoryException
- if an error occurs.
-
displayOnText
Get the displayOnText.- Returns:
- _the displayOnText
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setDisplayOnText
Set the displayOnText.- Parameters:
displayOnText
- the displayOnText to set- Throws:
AmetysRepositoryException
- if an error occurs.
-
getThemes
Get the themes.- Returns:
- the themes in an Array
- Throws:
AmetysRepositoryException
- if an error occurs.
-
setThemes
Set the themes.- Parameters:
themes
- the themes to set.- Throws:
AmetysRepositoryException
- if an error occurs.
-
removeTheme
Remove theme if exist- Parameters:
themeId
- The id of theme to remove- Throws:
AmetysRepositoryException
- if an error occurs
-
getAllForms
Get all forms.- Returns:
- a list of all the word forms (word + variants).
- Throws:
AmetysRepositoryException
- if an error occurs.
-