Class MigrationResponse
- java.lang.Object
-
- com.gentics.contentnode.rest.model.response.GenericResponse
-
- com.gentics.contentnode.rest.model.response.migration.MigrationResponse
-
- All Implemented Interfaces:
Serializable
public class MigrationResponse extends GenericResponse
TheMigrationResponse
is returned when a migration job is invoked or reinvoked. It contains the jobId and message information.- Author:
- johannes2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MigrationResponse()
Constructor used by JAXBMigrationResponse(Message message, ResponseInfo responseInfo)
Create an instance of the response with a single message and response infoMigrationResponse(ResponseInfo responseInfo)
Create an instance of the response with response infoMigrationResponse(List<Message> messages, ResponseInfo responseInfo)
Create an instance of the response with a list of messages and response info
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMessage(Message message)
Add a new message to the list of messagesint
getJobId()
Returns the job id for this reponseList<Message>
getMessages()
Return the list of messagesResponseInfo
getResponseInfo()
Return the reponse infovoid
setJobId(int jobId)
Set the job id for this reponsevoid
setMessages(List<Message> messages)
Set the list of messagesvoid
setResponseInfo(ResponseInfo responseInfo)
Set the reponse info
-
-
-
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
- messageresponseInfo
- response info
-
MigrationResponse
public MigrationResponse(List<Message> messages, ResponseInfo responseInfo)
Create an instance of the response with a list of messages and response info- Parameters:
message
- messageresponseInfo
- response info
-
-
Method Detail
-
getMessages
public List<Message> getMessages()
Return the list of messages- Overrides:
getMessages
in classGenericResponse
- Returns:
- list of messages
-
addMessage
public void addMessage(Message message)
Add a new message to the list of messages- Overrides:
addMessage
in classGenericResponse
-
setMessages
public void setMessages(List<Message> messages)
Set the list of messages- Overrides:
setMessages
in classGenericResponse
-
getResponseInfo
public ResponseInfo getResponseInfo()
Return the reponse info- Overrides:
getResponseInfo
in classGenericResponse
-
setResponseInfo
public void setResponseInfo(ResponseInfo responseInfo)
Set the reponse info- Overrides:
setResponseInfo
in classGenericResponse
-
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
-
-
-