incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r979664 - /sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/storage/JobStorageImpl.java
Date Tue, 27 Jul 2010 12:16:29 GMT
Author: bdelacretaz
Date: Tue Jul 27 12:16:29 2010
New Revision: 979664

URL: http://svn.apache.org/viewvc?rev=979664&view=rev
Log:
SLING-550 - add jcr:created property

Modified:
    sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/storage/JobStorageImpl.java

Modified: sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/storage/JobStorageImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/storage/JobStorageImpl.java?rev=979664&r1=979663&r2=979664&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/storage/JobStorageImpl.java
(original)
+++ sling/trunk/contrib/extensions/bgservlets/src/main/java/org/apache/sling/bgservlets/impl/storage/JobStorageImpl.java
Tue Jul 27 12:16:29 2010
@@ -20,6 +20,7 @@ package org.apache.sling.bgservlets.impl
 
 import java.text.DateFormat;
 import java.text.SimpleDateFormat;
+import java.util.Calendar;
 import java.util.Date;
 
 import javax.jcr.Node;
@@ -73,6 +74,7 @@ public class JobStorageImpl implements J
         }
 	    final Node result = new DeepNodeCreator().deepCreateNode(path, s, JOB_NODETYPE);
 	    result.addMixin(JobData.JOB_DATA_MIXIN);
+	    result.setProperty("jcr:created", Calendar.getInstance());
 	    result.save();
 	    log.debug("Job node {} created", result.getPath());
 	    return result;



Mime
View raw message