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
ConstructorsConstructorDescriptionConstructor 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 TypeMethodDescriptionvoidaddMessage(Message message) Add a new message to the list of messagesintgetJobId()Returns the job id for this reponseReturn the list of messagesReturn the reponse infovoidsetJobId(int jobId) Set the job id for this reponsevoidsetMessages(List<Message> messages) Set the list of messagesvoidsetResponseInfo(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:
getMessagesin classGenericResponse- Returns:
- list of messages
-
addMessage
Add a new message to the list of messages- Overrides:
addMessagein classGenericResponse
-
setMessages
Set the list of messages- Overrides:
setMessagesin classGenericResponse
-
getResponseInfo
Return the reponse info- Overrides:
getResponseInfoin classGenericResponse
-
setResponseInfo
Set the reponse info- Overrides:
setResponseInfoin 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-
-