Skip to content

Commit

Permalink
Replace ExporterProviderService fileType and producesContentType refe…
Browse files Browse the repository at this point in the history
…rences in DomainExport with contentType
  • Loading branch information
joe-crawford committed Jun 7, 2022
1 parent bbe85cb commit 25f4dcd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class DomainExport implements MdmDomain {
MdmDomain exportedDomain
byte[] exportData
String exportFileName
String exportFileType
String exportContentType

String exporterNamespace
Expand All @@ -55,7 +54,6 @@ class DomainExport implements MdmDomain {
exporterNamespace blank: false
exporterName blank: false
exportFileName blank: false
exportFileType blank: false
exportContentType nullable: true, blank: false
}

Expand Down Expand Up @@ -94,8 +92,7 @@ class DomainExport implements MdmDomain {
this.exporterNamespace = exporterProviderService.namespace
this.exporterName = exporterProviderService.name
this.exporterVersion = exporterProviderService.sortableVersion()
this.exportFileType = exporterProviderService.fileType
this.exportContentType = exporterProviderService.producesContentType
this.exportContentType = exporterProviderService.contentType
}

Map getDownloadLinkParams() {
Expand Down
1 change: 0 additions & 1 deletion mdm-core/grails-app/views/domainExport/_domainExport.gson
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ json {

export {
fileName domainExport.exportFileName
fileType domainExport.exportFileType
contentType domainExport.exportContentType
fileSize domainExport.exportFileSize
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class DomainExportFunctionalSpec extends BaseFunctionalSpec {
}

@Override
String getFileType() {
String getContentType() {
grails.web.mime.MimeType.JSON.name
}

Expand Down Expand Up @@ -157,8 +157,7 @@ class DomainExportFunctionalSpec extends BaseFunctionalSpec {
},
"export": {
"fileName": "test.json",
"fileType": "application/json",
"contentType": null,
"contentType": "application/json",
"fileSize": 20
},
"exportedOn": "${json-unit.matches:offsetDateTime}",
Expand Down

0 comments on commit 25f4dcd

Please sign in to comment.