diff options
author | talig <talig@amdocs.com> | 2020-02-25 18:22:39 +0200 |
---|---|---|
committer | talig <talig@amdocs.com> | 2020-02-25 18:22:39 +0200 |
commit | 154541d238a390cd25c21fab0c2f585b92011135 (patch) | |
tree | 4e24c9ca9eeb1f0034fbdeb3b0edc20db1a3d764 /versioning-lib/src/main/java | |
parent | a136a56213b1de0430f05e471e5ea0df843d3439 (diff) |
Fix item status mapping to zusammen
Issue-ID: SDC-2778
Signed-off-by: talig <talig@amdocs.com>
Change-Id: I44fe83a3334b15073c15a3c5aa08c11cca25e0d7
Diffstat (limited to 'versioning-lib/src/main/java')
-rw-r--r-- | versioning-lib/src/main/java/org/onap/sdc/common/versioning/persistence/zusammen/ItemZusammenDao.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/versioning-lib/src/main/java/org/onap/sdc/common/versioning/persistence/zusammen/ItemZusammenDao.java b/versioning-lib/src/main/java/org/onap/sdc/common/versioning/persistence/zusammen/ItemZusammenDao.java index b0ca275..d2c755b 100644 --- a/versioning-lib/src/main/java/org/onap/sdc/common/versioning/persistence/zusammen/ItemZusammenDao.java +++ b/versioning-lib/src/main/java/org/onap/sdc/common/versioning/persistence/zusammen/ItemZusammenDao.java @@ -121,19 +121,19 @@ public class ItemZusammenDao implements ItemDao { info.addProperty(InfoPropertyName.ITEM_TYPE, item.getType()); info.addProperty(InfoPropertyName.ITEM_OWNER, item.getOwner()); if (item.getStatus() != null) { - info.addProperty(InfoPropertyName.ITEM_STATUS, item.getStatus()); + info.addProperty(InfoPropertyName.ITEM_STATUS, item.getStatus().name()); } info.addProperty(InfoPropertyName.ITEM_VERSIONS_STATUSES, item.getVersionStatusCounters()); item.getProperties().forEach(info::addProperty); return info; } - private static final class InfoPropertyName { + static final class InfoPropertyName { - private static final String ITEM_TYPE = "item_type"; - private static final String ITEM_VERSIONS_STATUSES = "item_versions_statuses"; - private static final String ITEM_OWNER = "Owner"; - private static final String ITEM_STATUS = "status"; + static final String ITEM_TYPE = "item_type"; + static final String ITEM_VERSIONS_STATUSES = "item_versions_statuses"; + static final String ITEM_OWNER = "Owner"; + static final String ITEM_STATUS = "status"; private InfoPropertyName() { throw new IllegalStateException("Constants class"); |