Package se.conciliate.extensions.store
Interface MTVariable
- All Superinterfaces:
MTHistoryEnabled
Variable that can be used in a repository. The variable can have different
values in different languages. This can be used for example to set different,
easily changeable document roots for documents in different languages.
- Since:
- 3.2
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlong
getID()
Returns the unique ID of the variable.getKey()
Returns the variable key.Returns the time when the variable was last modified.getTitle()
Returns the title in the current language.getTitle
(MTLanguageHeader language) Returns the title in a given language.getType()
Returns the variable type.getValue()
Returns the variable value.void
remove()
Removes this variable.void
save()
Saves a new variable or saves changes to an existing variable.void
Sets the variable key.void
setLastModified
(Date lastModified) Overrides the last modified date of the list.void
Sets the title in the current language.void
setTitle
(MTLanguageHeader lang, String value) Sets the title in a given language.void
Sets the variable type.void
Sets the variable value.Methods inherited from interface se.conciliate.extensions.store.MTHistoryEnabled
getHistory, getUUID
-
Field Details
-
TYPE_DOCUMENT_ROOT
- See Also:
-
-
Method Details
-
getID
long getID()Returns the unique ID of the variable.- Specified by:
getID
in interfaceMTHistoryEnabled
- Returns:
- The unique ID.
- Since:
- 3.2
-
getLastModified
Date getLastModified()Returns the time when the variable was last modified.- Returns:
- The last modified time.
-
getType
String getType()Returns the variable type.- Returns:
- The variable type.
- Since:
- 3.2
-
setType
Sets the variable type.- Parameters:
type
- The new variable type.- Since:
- 3.2
-
getKey
String getKey()Returns the variable key.- Returns:
- The variable key.
- Since:
- 3.2
-
setKey
Sets the variable key.- Parameters:
key
- The new variable key.- Since:
- 3.2
-
getValue
String getValue()Returns the variable value.- Returns:
- The variable value.
- Since:
- 3.2
-
setLastModified
Overrides the last modified date of the list.- Parameters:
lastModified
- The new last modified date.
-
setValue
Sets the variable value.- Parameters:
value
- The new variable value.- Since:
- 3.2
-
getTitle
String getTitle()Returns the title in the current language.- Returns:
- the title.
- Since:
- 3.2
-
getTitle
Returns the title in a given language.- Parameters:
language
- The language.- Returns:
- The title.
- Since:
- 3.2
-
setTitle
Sets the title in the current language.- Parameters:
value
- The new title.- Since:
- 3.2
-
setTitle
Sets the title in a given language.- Parameters:
lang
- The language.value
- The new title.- Since:
- 3.2
-
save
Saves a new variable or saves changes to an existing variable.- Throws:
MTAccessException
- Since:
- 3.2
-
remove
Removes this variable.- Throws:
MTAccessException
- Since:
- 3.2
-