changeset 120:3b0ce5e3302d

add Node status field to XML export.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Wed, 08 Jan 2020 17:41:25 +0100
parents 4eac7c57e593
children 0a8facc3d296
files src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java src/main/java/org/mpi/openmind/repository/utils/XMLUtil.java
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java	Wed Oct 23 13:25:51 2019 +0200
+++ b/src/main/java/org/mpi/openmind/repository/utils/OM4StreamWriter.java	Wed Jan 08 17:41:25 2020 +0100
@@ -39,7 +39,7 @@
  */
 public class OM4StreamWriter {
 
-    protected static final String FORMAT_VERSION = "4.11";
+    protected static final String FORMAT_VERSION = "4.12";
 
     private static Logger logger = Logger.getLogger(OM4StreamWriter.class);
 
@@ -324,6 +324,9 @@
         if (entity.getIsPublic()) {
             writer.writeAttribute(XMLUtil.PUBLIC, "true");
         }
+        if (StringUtils.isNotEmpty(entity.getStatus())) {
+        	writer.writeAttribute(XMLUtil.STATUS, entity.getStatus());
+        }
 
         /*
          * write OpenMind attributes of this entity as XML tags
--- a/src/main/java/org/mpi/openmind/repository/utils/XMLUtil.java	Wed Oct 23 13:25:51 2019 +0200
+++ b/src/main/java/org/mpi/openmind/repository/utils/XMLUtil.java	Wed Jan 08 17:41:25 2020 +0100
@@ -68,6 +68,7 @@
     public static String ASSERTIONS = "assertions";
     public static String ASSERTION = "assertion";
     public static String NORMALIZED = "norm";
+    public static String STATUS = "status";
     
     public static String ENTITY_STATS = "entity-statistics";
     public static String RELATION_STATS = "relation-statistics";