From: David ‘Bombe’ Roden Date: Sat, 14 Jun 2008 11:43:54 +0000 (+0200) Subject: add second constructor X-Git-Url: https://git.pterodactylus.net/?p=jSite2.git;a=commitdiff_plain;h=dea23c4a31028ae3382352d4694cad5c8ed0e0bc add second constructor --- diff --git a/src/net/pterodactylus/jsite/core/Insert.java b/src/net/pterodactylus/jsite/core/Insert.java index d1cc366..019dcde 100644 --- a/src/net/pterodactylus/jsite/core/Insert.java +++ b/src/net/pterodactylus/jsite/core/Insert.java @@ -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