Project

General

Profile

Actions

task #9259

closed

reduce fields in TermBase json serializations

Added by Andreas Kohlbecker over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Priority13
Category:
cdmlib-remote
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal

Description

The fields in json serializations produced by the TermBaseBeanProcessor can be reduced.

here an example of the current situation:


"kindOfUnit": {

    "uri": "",
    "class": "DefinedTerm",
    "updated": "2019-02-05T17:23:15.000+01:00",
    "created": "2019-02-05T17:23:15.000+01:00",
    "protectedTitleCache": false,
    "uuid": "87adcd8d-ce69-4d16-ac35-4e77fb698e00",
    "termType": "KindOfUnit",
    "titleCache": "Unpublished image",
    "representation_L10n": "Unpublished image",
    "representation_L10n_abbreviatedLabel": "",
    "representation_L10n_languageIso": "eng",
    "representation_L10n_languageUuid": "e9f8cdb7-6819-44e8-95d3-e2d0690c3523"

the following fields are to be excluded in TermBaseBeanProcessor:

  • updated
  • created
  • protectedTitleCache
  • titleCache (not needed since only the *_L10n should be used by clients)
  • uri (should be retrieved via a separate request to the term service if needed)

Related issues

Related to EDIT - task #9252: Harmonize SpecimenOrOberservationBase related DTOsClosedAndreas Kohlbecker

Actions
Actions

Also available in: Atom PDF