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:
  • Constructor Details

    • 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 user
      responseInfo - ResponseInfo with the status of the response
  • Method Details

    • getVersion

      public String getVersion()
      Current server version
      Returns:
      The current server version
    • setVersion

      public void setVersion(String version)
      Parameters:
      version - The current server version
    • getVariant

      public String getVariant()
      Server Variant (OSS for the Open Source Variant, EE for the Enterprise Edition Variant)
      Returns:
      Server variant
    • setVariant

      public void setVariant(String variant)
      Set the server variant
      Parameters:
      variant - variant
    • 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