Skip to content
Snippets Groups Projects
Commit 8d2c3503 authored by felmer's avatar felmer
Browse files

SSDM-121: Fixing JSON serialization bug in ...

SSDM-121: Fixing JSON serialization bug in  ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSet.

SVN: 31501
parent 9d0287f7
No related branches found
No related tags found
No related merge requests found
...@@ -698,6 +698,18 @@ public final class DataSet implements Serializable, IIdHolder ...@@ -698,6 +698,18 @@ public final class DataSet implements Serializable, IIdHolder
this.registrationDetails = registrationDetails; this.registrationDetails = registrationDetails;
} }
private void setContainerOrNull(DataSet containerOrNull)
{
// Does nothing. It is needed by Jackson.
// With the corresponding getContainerOrNull() method Jackson creates a JSON object
// with attribute containerOrNull and containerDataSets.
// Currently we do not need to care about the creation of an instance of this Java class from a
// JSON object which has both attributes set because the JSON APIs have currently no
// method with an argument containing a DataSet object. The only exception is
// IGeneralInformationService.filterDataSetsVisibleToUser() but we can assume that it containes only
// data sets received from the server and not created on the client side.
}
private void setContainerDataSet(boolean containerDataSet) private void setContainerDataSet(boolean containerDataSet)
{ {
this.containerDataSet = containerDataSet; this.containerDataSet = containerDataSet;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment