com.gentics.contentnode.rest.model
Class TranslationStatus

java.lang.Object
  extended by com.gentics.contentnode.rest.model.TranslationStatus
All Implemented Interfaces:
java.io.Serializable

public class TranslationStatus
extends java.lang.Object
implements java.io.Serializable

Class encapsulating the synchronization information of page translations

Author:
norbert
See Also:
Serialized Form

Nested Class Summary
static class TranslationStatus.Latest
          Inner class to encapsulate the information about the latest version of the language variant
 
Field Summary
protected  boolean inSync
          True when the page still is in sync (the given version timestamp points to the latest version of the other page)
protected  java.lang.String language
          Language of the page, with which this page is in sync
protected  TranslationStatus.Latest latestVersion
          Latest version of the page with which this page is in sync
protected  java.lang.String name
          name of the page
protected  java.lang.Integer pageId
          Id of the page with which the page is in sync
protected  java.lang.String version
          Version Number of the page version with which this page is in sync
protected  java.lang.Integer versionTimestamp
          Version Timestamp of the page version, with which the page is in sync
 
Constructor Summary
TranslationStatus()
          Constructor used by JAXB
 
Method Summary
 java.lang.String getLanguage()
          Language of the synchronized version
 TranslationStatus.Latest getLatestVersion()
          Latest version information
 java.lang.String getName()
          Page name of the page with which the given page is in sync
 java.lang.Integer getPageId()
          Page id of the page with which the given page is in sync
 java.lang.String getVersion()
          Version number of the page version, with which this page is in sync
 java.lang.Integer getVersionTimestamp()
          Version timestamp of the synchronized version
 boolean isInSync()
          True when the page is in sync with the latest version of the other language variant, false if not
 void setInSync(boolean inSync)
          Set whether the page is in sync with the latest version of the other language variant
 void setLanguage(java.lang.String language)
          Set the language of the synchronized version
 void setLatestVersion(TranslationStatus.Latest latestVersion)
          Set the latest version information
 void setName(java.lang.String name)
          Set the page name of the page with which the given page is in sync
 void setPageId(java.lang.Integer pageId)
          Set the page id of the page with which the given page is in sync
 void setVersion(java.lang.String version)
          Set the version number of the page, with which this page is in sync
 void setVersionTimestamp(java.lang.Integer versionTimestamp)
          Set the version timestamp of the synchronized version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageId

protected java.lang.Integer pageId
Id of the page with which the page is in sync


name

protected java.lang.String name
name of the page


versionTimestamp

protected java.lang.Integer versionTimestamp
Version Timestamp of the page version, with which the page is in sync


language

protected java.lang.String language
Language of the page, with which this page is in sync


inSync

protected boolean inSync
True when the page still is in sync (the given version timestamp points to the latest version of the other page)


version

protected java.lang.String version
Version Number of the page version with which this page is in sync


latestVersion

protected TranslationStatus.Latest latestVersion
Latest version of the page with which this page is in sync

Constructor Detail

TranslationStatus

public TranslationStatus()
Constructor used by JAXB

Method Detail

getPageId

public java.lang.Integer getPageId()
Page id of the page with which the given page is in sync

Returns:
the pageId

setPageId

public void setPageId(java.lang.Integer pageId)
Set the page id of the page with which the given page is in sync

Parameters:
pageId - the pageId to set

getName

public java.lang.String getName()
Page name of the page with which the given page is in sync

Returns:
the name

setName

public void setName(java.lang.String name)
Set the page name of the page with which the given page is in sync

Parameters:
name - the name to be set

getVersionTimestamp

public java.lang.Integer getVersionTimestamp()
Version timestamp of the synchronized version

Returns:
the versionTimestamp

setVersionTimestamp

public void setVersionTimestamp(java.lang.Integer versionTimestamp)
Set the version timestamp of the synchronized version

Parameters:
versionTimestamp - the versionTimestamp to set

getLanguage

public java.lang.String getLanguage()
Language of the synchronized version

Returns:
the language

setLanguage

public void setLanguage(java.lang.String language)
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

public java.lang.String getVersion()
Version number of the page version, with which this page is in sync

Returns:
version number

setVersion

public void setVersion(java.lang.String version)
Set the version number of the page, with which this page is in sync

Parameters:
version - version number

getLatestVersion

public TranslationStatus.Latest getLatestVersion()
Latest version information

Returns:
the latestVersion latest version

setLatestVersion

public void setLatestVersion(TranslationStatus.Latest latestVersion)
Set the latest version information

Parameters:
latestVersion - the latestVersion to set


Copyright © 2014 Gentics Software GmbH. All Rights Reserved.