com.gentics.contentnode.rest.model.response.migration
Class MigrationResponse

java.lang.Object
  extended by com.gentics.contentnode.rest.model.response.GenericResponse
      extended by com.gentics.contentnode.rest.model.response.migration.MigrationResponse

public class MigrationResponse
extends GenericResponse

The MigrationResponse is returned when a migration job is invoked or reinvoked. It contains the jobId and message information.

Author:
johannes2

Constructor Summary
MigrationResponse()
          Constructor used by JAXB
MigrationResponse(java.util.List<Message> messages, ResponseInfo responseInfo)
          Create an instance of the response with a list of messages and response info
MigrationResponse(Message message, ResponseInfo responseInfo)
          Create an instance of the response with a single message and response info
MigrationResponse(ResponseInfo responseInfo)
          Create an instance of the response with response info
 
Method Summary
 void addMessage(Message message)
          Add a new message to the list of messages
 int getJobId()
          Returns the job id for this reponse
 java.util.List<Message> getMessages()
          Return the list of messages
 ResponseInfo getResponseInfo()
          Return the reponse info
 void setJobId(int jobId)
          Set the job id for this reponse
 void setMessages(java.util.List<Message> messages)
          Set the list of messages
 void setResponseInfo(ResponseInfo responseInfo)
          Set the reponse info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigrationResponse

public MigrationResponse()
Constructor used by JAXB


MigrationResponse

public MigrationResponse(ResponseInfo responseInfo)
Create an instance of the response with response info

Parameters:
responseInfo - response info

MigrationResponse

public MigrationResponse(Message message,
                         ResponseInfo responseInfo)
Create an instance of the response with a single message and response info

Parameters:
message - message
responseInfo - response info

MigrationResponse

public MigrationResponse(java.util.List<Message> messages,
                         ResponseInfo responseInfo)
Create an instance of the response with a list of messages and response info

Parameters:
message - message
responseInfo - response info
Method Detail

getMessages

public java.util.List<Message> getMessages()
Return the list of messages

Overrides:
getMessages in class GenericResponse

addMessage

public void addMessage(Message message)
Add a new message to the list of messages

Overrides:
addMessage in class GenericResponse

setMessages

public void setMessages(java.util.List<Message> messages)
Set the list of messages

Overrides:
setMessages in class GenericResponse

getResponseInfo

public ResponseInfo getResponseInfo()
Return the reponse info

Overrides:
getResponseInfo in class GenericResponse

setResponseInfo

public void setResponseInfo(ResponseInfo responseInfo)
Set the reponse info

Overrides:
setResponseInfo in class GenericResponse

getJobId

public int getJobId()
Returns the job id for this reponse

Returns:

setJobId

public void setJobId(int jobId)
Set the job id for this reponse

Parameters:
jobId -


Copyright © 2015 Gentics Software GmbH. All Rights Reserved.