NIFI-6814:

- Restored JAXB Adapter

This closes #3880
This commit is contained in:
Joe Ferner 2019-11-08 14:54:10 -05:00 committed by Matt Gilman
parent 5f4ce8f431
commit c947e57d5e
No known key found for this signature in database
GPG Key ID: DF61EC19432AEE37
1 changed files with 4 additions and 0 deletions

View File

@ -17,7 +17,9 @@
package org.apache.nifi.web.api.dto;
import io.swagger.annotations.ApiModelProperty;
import org.apache.nifi.web.api.dto.util.TimestampAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.Date;
import java.util.List;
@ -51,6 +53,7 @@ public abstract class AsynchronousRequestDTO<T extends UpdateStepDTO> {
this.uri = uri;
}
@XmlJavaTypeAdapter(TimestampAdapter.class)
@ApiModelProperty(value = "The timestamp of when the request was submitted", readOnly = true)
public Date getSubmissionTime() {
return submissionTime;
@ -60,6 +63,7 @@ public abstract class AsynchronousRequestDTO<T extends UpdateStepDTO> {
this.submissionTime = submissionTime;
}
@XmlJavaTypeAdapter(TimestampAdapter.class)
@ApiModelProperty(value = "The timestamp of when the request was last updated", readOnly = true)
public Date getLastUpdated() {
return lastUpdated;