add second constructor
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 14 Jun 2008 11:43:54 +0000 (13:43 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 14 Jun 2008 11:43:54 +0000 (13:43 +0200)
src/net/pterodactylus/jsite/core/Insert.java

index d1cc366..019dcde 100644 (file)
@@ -35,6 +35,20 @@ public class Insert extends Request {
        private long endTime;
 
        /**
+        * Creates a new insert that starts now.
+        * 
+        * @param project
+        *            The project that is inserted
+        * @param node
+        *            The node the project is inserted to
+        * @param identifier
+        *            The identifier of the insert request
+        */
+       public Insert(Project project, Node node, String identifier) {
+               this(project, node, identifier, System.currentTimeMillis());
+       }
+
+       /**
         * Creates a new insert.
         * 
         * @param project