Skip to content

Commit

Permalink
added approvedUses-field to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ewolf47 committed Nov 7, 2023
1 parent a2437b7 commit 58861e1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ public class DataPackage extends AbstractShadowableRdcDomainObject
@Valid
private List<I18nLink> additionalLinks;

/**
* Arbitrary text with approved purposes of use for this dataPackage.
*/
@Indexed
private String approvedUses;

public DataPackage(DataPackage dataPackage) {
super();
BeanUtils.copyProperties(dataPackage, this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,9 @@ public class OrderedDataPackage implements Serializable {
* The name of the series of dataPackages to which this dataPackage belongs. May be null.
*/
private I18nString studySeries;

/**
* The approved uses of a dataPackage. May be null.
*/
private String approvedUses;
}
15 changes: 13 additions & 2 deletions src/main/resources/elasticsearch/data_packages/mapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,17 @@
}
}
}
}
},
"approvedUses": {
"type": "keyword",
"copy_to": "all",
"fields": {
"ngrams": {
"type": "text",
"analyzer": "ngrams",
"norms": false
}
}
}
}
}
}

0 comments on commit 58861e1

Please sign in to comment.