Class VersionResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.VersionResponse
- All Implemented Interfaces:
Serializable
Response for a request asking for the version of the REST API on the server.
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty 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
Modifier and TypeMethodDescriptionRespective CMP version for this CMS versionGet the map containing CMP component version information for each node.Server Variant (OSS for the Open Source Variant, EE for the Enterprise Edition Variant)Current server versionvoid
setCmpVersion
(String cmpVersion) void
setNodeInfo
(Map<String, CmpVersionInfo> nodeInfo) Set the per node CMP component version information.void
setVariant
(String variant) Set the server variantvoid
setVersion
(String version) Methods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
-
Constructor Details
-
VersionResponse
public VersionResponse()Empty constructor needed by JAXB -
VersionResponse
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 Details
-
getVersion
Current server version- Returns:
- The current server version
-
setVersion
- Parameters:
version
- The current server version
-
getVariant
Server Variant (OSS for the Open Source Variant, EE for the Enterprise Edition Variant)- Returns:
- Server variant
-
setVariant
Set the server variant- Parameters:
variant
- variant
-
getCmpVersion
Respective CMP version for this CMS version- Returns:
- The respective CMP version for this CMS version
-
setCmpVersion
- Parameters:
cmpVersion
- The respective CMP version for this CMS version
-
getNodeInfo
Get the map containing CMP component version information for each node.- Returns:
- The map containing CMP component version information for each node
-
setNodeInfo
Set the per node CMP component version information.- Parameters:
nodeInfo
- The CMP component version information
-