From da8554fda646ef3b3e3e0e1d46c1e03e262aafdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 17 Mar 2012 13:07:55 +0100 Subject: [PATCH] Store the edition of the last insert of a file. --- src/de/todesbaum/jsite/application/FileOption.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/de/todesbaum/jsite/application/FileOption.java b/src/de/todesbaum/jsite/application/FileOption.java index 2e5830d..8f77521 100644 --- a/src/de/todesbaum/jsite/application/FileOption.java +++ b/src/de/todesbaum/jsite/application/FileOption.java @@ -46,6 +46,9 @@ public class FileOption { /** The hash of the last insert. */ private String lastInsertHash; + /** The edition of the last insert. */ + private int lastInsertEdition; + /** The current hash of the file. */ private String currentHash; @@ -178,6 +181,27 @@ public class FileOption { } /** + * Returns the last edition at which this file was inserted. + * + * @return The last insert edition of this file + */ + public int getLastInsertEdition() { + return lastInsertEdition; + } + + /** + * Sets the last insert edition of this file. + * + * @param lastInsertEdition + * The last insert edition of this file + * @return These file options + */ + public FileOption setLastInsertEdition(int lastInsertEdition) { + this.lastInsertEdition = lastInsertEdition; + return this; + } + + /** * Returns the current hash of the file. This value is ony a temporary value * that is copied to {@link #getLastInsertHash()} when a project has * finished inserting. -- 2.7.4