Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
3770dd35
Commit
3770dd35
authored
13 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
LMS-2648 remove the property when it's set to null
SVN: 23717
parent
261aabff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/DataSetRegistrationDetails.java
+11
-5
11 additions, 5 deletions
...isd/etlserver/registrator/DataSetRegistrationDetails.java
with
11 additions
and
5 deletions
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/DataSetRegistrationDetails.java
+
11
−
5
View file @
3770dd35
...
...
@@ -141,14 +141,20 @@ public class DataSetRegistrationDetails<T extends DataSetInformation> implements
public
void
setPropertyValue
(
String
propertyCode
,
String
propertyValue
)
{
ExtractableData
datasetExtractableData
=
dataSetInformation
.
getExtractableData
();
List
<
NewProperty
>
properties
=
datasetExtractableData
.
getDataSetProperties
();
NewProperty
property
=
EntityHelper
.
tryFindProperty
(
properties
,
propertyCode
);
if
(
property
!=
null
)
if
(
propertyValue
==
null
)
{
property
.
setValue
(
property
Valu
e
);
datasetExtractableData
.
removeDataSetProperty
(
property
Cod
e
);
}
else
{
properties
.
add
(
new
NewProperty
(
propertyCode
,
propertyValue
));
List
<
NewProperty
>
properties
=
datasetExtractableData
.
getDataSetProperties
();
NewProperty
property
=
EntityHelper
.
tryFindProperty
(
properties
,
propertyCode
);
if
(
property
!=
null
)
{
property
.
setValue
(
propertyValue
);
}
else
{
properties
.
add
(
new
NewProperty
(
propertyCode
,
propertyValue
));
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment