Class TranslationStatus
java.lang.Object
com.gentics.contentnode.rest.model.TranslationStatus
- All Implemented Interfaces:
Serializable
Class encapsulating the synchronization information of page translations
- Author:
- norbert
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Inner class to encapsulate the information about the latest version of the language variant -
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
True when the page still is in sync (the given version timestamp points to the latest version of the other page)protected String
Language of the page, with which this page is in syncprotected TranslationStatus.Latest
Latest version of the page with which this page is in syncprotected String
name of the pageprotected Integer
Id of the page with which the page is in syncprotected String
Version Number of the page version with which this page is in syncprotected Integer
Version Timestamp of the page version, with which the page is in sync -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionLanguage of the synchronized versionLatest version informationgetName()
Page name of the page with which the given page is in syncPage id of the page with which the given page is in syncVersion number of the page version, with which this page is in syncVersion timestamp of the synchronized versionboolean
isInSync()
True when the page is in sync with the latest version of the other language variant, false if notvoid
setInSync
(boolean inSync) Set whether the page is in sync with the latest version of the other language variantvoid
setLanguage
(String language) Set the language of the synchronized versionvoid
setLatestVersion
(TranslationStatus.Latest latestVersion) Set the latest version informationvoid
Set the page name of the page with which the given page is in syncvoid
Set the page id of the page with which the given page is in syncvoid
setVersion
(String version) Set the version number of the page, with which this page is in syncvoid
setVersionTimestamp
(Integer versionTimestamp) Set the version timestamp of the synchronized version
-
Field Details
-
pageId
Id of the page with which the page is in sync -
name
name of the page -
versionTimestamp
Version Timestamp of the page version, with which the page is in sync -
language
Language of the page, with which this page is in sync -
inSync
protected boolean inSyncTrue when the page still is in sync (the given version timestamp points to the latest version of the other page) -
version
Version Number of the page version with which this page is in sync -
latestVersion
Latest version of the page with which this page is in sync
-
-
Constructor Details
-
TranslationStatus
public TranslationStatus()Constructor used by JAXB
-
-
Method Details
-
getPageId
Page id of the page with which the given page is in sync- Returns:
- the pageId
-
setPageId
Set the page id of the page with which the given page is in sync- Parameters:
pageId
- the pageId to set
-
getName
Page name of the page with which the given page is in sync- Returns:
- the name
-
setName
Set the page name of the page with which the given page is in sync- Parameters:
name
- the name to be set
-
getVersionTimestamp
Version timestamp of the synchronized version- Returns:
- the versionTimestamp
-
setVersionTimestamp
Set the version timestamp of the synchronized version- Parameters:
versionTimestamp
- the versionTimestamp to set
-
getLanguage
Language of the synchronized version- Returns:
- the language
-
setLanguage
Set the language of the synchronized version- Parameters:
language
- the language to set
-
isInSync
public boolean isInSync()True when the page is in sync with the latest version of the other language variant, false if not- Returns:
- the inSync status
-
setInSync
public void setInSync(boolean inSync) Set whether the page is in sync with the latest version of the other language variant- Parameters:
inSync
- the inSync status to set
-
getVersion
Version number of the page version, with which this page is in sync- Returns:
- version number
-
setVersion
Set the version number of the page, with which this page is in sync- Parameters:
version
- version number
-
getLatestVersion
Latest version information- Returns:
- the latestVersion latest version
-
setLatestVersion
Set the latest version information- Parameters:
latestVersion
- the latestVersion to set
-