]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/SlcJcrUtils.java
Add diff report abstractions
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.jcr / src / main / java / org / argeo / slc / jcr / SlcJcrUtils.java
index fcd850aaa9ae76e991e82ade625faf9e5183e26d..c3cdda7573e421dd7b2408c6775628d8b5fa40c4 100644 (file)
@@ -64,7 +64,13 @@ public class SlcJcrUtils {
                Calendar now = new GregorianCalendar();
                return SlcJcrConstants.PROCESSES_BASE_PATH + '/'
                                + JcrUtils.dateAsPath(now, true) + uuid;
+       }
 
+       /** Create a new execution result path based on the current time */
+       public static String createResultPath(String uuid) {
+               Calendar now = new GregorianCalendar();
+               return SlcJcrConstants.RESULTS_BASE_PATH + '/'
+                               + JcrUtils.dateAsPath(now, true) + uuid;
        }
 
        /**
@@ -78,7 +84,7 @@ public class SlcJcrUtils {
                setPrimitiveAsProperty(node, propertyName, type, value);
        }
 
-       /** Map a primitive value to JCR ptoperty value. */
+       /** Map a primitive value to JCR property value. */
        public static void setPrimitiveAsProperty(Node node, String propertyName,
                        String type, Object value) {
                if (value == null)