Class MigrationResponse
java.lang.Object
com.gentics.contentnode.rest.model.response.GenericResponse
com.gentics.contentnode.rest.model.response.migration.MigrationResponse
- All Implemented Interfaces:
Serializable
The
MigrationResponse
is returned when a migration job is invoked or reinvoked. It contains the jobId and message information.- Author:
- johannes2
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructor 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
Modifier and TypeMethodDescriptionvoid
addMessage
(Message message) Add a new message to the list of messagesint
getJobId()
Returns the job id for this reponseReturn the list of messagesReturn 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 Details
-
MigrationResponse
public MigrationResponse()Constructor used by JAXB -
MigrationResponse
Create an instance of the response with response info- Parameters:
responseInfo
- response info
-
MigrationResponse
Create an instance of the response with a single message and response info- Parameters:
message
- messageresponseInfo
- response info
-
MigrationResponse
Create an instance of the response with a list of messages and response info- Parameters:
message
- messageresponseInfo
- response info
-
-
Method Details
-
getMessages
Return the list of messages- Overrides:
getMessages
in classGenericResponse
- Returns:
- list of messages
-
addMessage
Add a new message to the list of messages- Overrides:
addMessage
in classGenericResponse
-
setMessages
Set the list of messages- Overrides:
setMessages
in classGenericResponse
-
getResponseInfo
Return the reponse info- Overrides:
getResponseInfo
in classGenericResponse
-
setResponseInfo
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
-
-