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
Nested ClassesModifier and TypeClassDescriptionstatic classInner class to encapsulate the information about the latest version of the language variant -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanTrue when the page still is in sync (the given version timestamp points to the latest version of the other page)protected StringLanguage of the page, with which this page is in syncprotected TranslationStatus.LatestLatest version of the page with which this page is in syncprotected Stringname of the pageprotected IntegerId of the page with which the page is in syncprotected StringVersion Number of the page version with which this page is in syncprotected IntegerVersion Timestamp of the page version, with which the page is in sync -
Constructor Summary
Constructors -
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 versionbooleanisInSync()True when the page is in sync with the latest version of the other language variant, false if notvoidsetInSync(boolean inSync) Set whether the page is in sync with the latest version of the other language variantvoidsetLanguage(String language) Set the language of the synchronized versionvoidsetLatestVersion(TranslationStatus.Latest latestVersion) Set the latest version informationvoidSet the page name of the page with which the given page is in syncvoidSet the page id of the page with which the given page is in syncvoidsetVersion(String version) Set the version number of the page, with which this page is in syncvoidsetVersionTimestamp(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
-