public class MigrationResponse extends GenericResponse
MigrationResponse
is returned when a migration job is invoked or reinvoked. It contains the jobId and message information.Constructor and Description |
---|
MigrationResponse()
Constructor used by JAXB
|
MigrationResponse(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
|
Modifier and Type | Method and Description |
---|---|
void |
addMessage(Message message)
Add a new message to the list of messages
|
int |
getJobId()
Returns the job id for this reponse
|
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(List<Message> messages)
Set the list of messages
|
void |
setResponseInfo(ResponseInfo responseInfo)
Set the reponse info
|
public MigrationResponse()
public MigrationResponse(ResponseInfo responseInfo)
responseInfo
- response infopublic MigrationResponse(Message message, ResponseInfo responseInfo)
message
- messageresponseInfo
- response infopublic MigrationResponse(List<Message> messages, ResponseInfo responseInfo)
message
- messageresponseInfo
- response infopublic List<Message> getMessages()
getMessages
in class GenericResponse
public void addMessage(Message message)
addMessage
in class GenericResponse
public void setMessages(List<Message> messages)
setMessages
in class GenericResponse
public ResponseInfo getResponseInfo()
getResponseInfo
in class GenericResponse
public void setResponseInfo(ResponseInfo responseInfo)
setResponseInfo
in class GenericResponse
public int getJobId()
public void setJobId(int jobId)
jobId
- Copyright © 2024 Gentics Software. All rights reserved.