Class VersionResponse
- java.lang.Object
-
- com.gentics.contentnode.rest.model.response.GenericResponse
-
- com.gentics.contentnode.rest.model.response.VersionResponse
-
- All Implemented Interfaces:
Serializable
public class VersionResponse extends GenericResponse
Response for a request asking for the version of the REST API on the server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VersionResponse()
Empty constructor needed by JAXBVersionResponse(Message message, ResponseInfo responseInfo, String version)
Creates a VersionResponse with the provided single message, the ResponseInfo and the version as String
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCmpVersion()
Respective CMP version for this CMS versionMap<String,CmpVersionInfo>
getNodeInfo()
Get the map containing CMP component version information for each node.String
getVersion()
Current server versionvoid
setCmpVersion(String cmpVersion)
void
setNodeInfo(Map<String,CmpVersionInfo> nodeInfo)
Set the per node CMP component version information.void
setVersion(String version)
-
Methods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
-
-
-
Constructor Detail
-
VersionResponse
public VersionResponse()
Empty constructor needed by JAXB
-
VersionResponse
public VersionResponse(Message message, ResponseInfo responseInfo, String version)
Creates a VersionResponse with the provided single message, the ResponseInfo and the version as String- Parameters:
message
- The messages that should be displayed to the userresponseInfo
- ResponseInfo with the status of the response
-
-
Method Detail
-
getVersion
public String getVersion()
Current server version- Returns:
- The current server version
-
setVersion
public void setVersion(String version)
- Parameters:
version
- The current server version
-
getCmpVersion
public String getCmpVersion()
Respective CMP version for this CMS version- Returns:
- The respective CMP version for this CMS version
-
setCmpVersion
public void setCmpVersion(String cmpVersion)
- Parameters:
cmpVersion
- The respective CMP version for this CMS version
-
getNodeInfo
public Map<String,CmpVersionInfo> getNodeInfo()
Get the map containing CMP component version information for each node.- Returns:
- The map containing CMP component version information for each node
-
setNodeInfo
public void setNodeInfo(Map<String,CmpVersionInfo> nodeInfo)
Set the per node CMP component version information.- Parameters:
nodeInfo
- The CMP component version information
-
-