X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fapplication%2FProjectInserter.java;h=3d2457bd872b11a3b3e8b05ab59998c6a993de13;hb=51abc22d2f68587f1d52387a51241afd8665f599;hp=a88119618c5934d46b5f5fbd19e334dddf34e6c9;hpb=a9e31da69148bc5eff7fb520b94e53521919ac83;p=jSite.git
diff --git a/src/de/todesbaum/jsite/application/ProjectInserter.java b/src/de/todesbaum/jsite/application/ProjectInserter.java
index a881196..3d2457b 100644
--- a/src/de/todesbaum/jsite/application/ProjectInserter.java
+++ b/src/de/todesbaum/jsite/application/ProjectInserter.java
@@ -49,7 +49,7 @@ import de.todesbaum.util.io.StreamCopier;
/**
* Manages project inserts.
- *
+ *
* @author David âBombeâ Roden <bombe@freenetproject.org>
*/
public class ProjectInserter implements FileScannerListener, Runnable {
@@ -77,7 +77,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Adds a listener to the list of registered listeners.
- *
+ *
* @param insertListener
* The listener to add
*/
@@ -87,7 +87,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Removes a listener from the list of registered listeners.
- *
+ *
* @param insertListener
* The listener to remove
*/
@@ -97,7 +97,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Notifies all listeners that the project insert has started.
- *
+ *
* @see InsertListener#projectInsertStarted(Project)
*/
protected void fireProjectInsertStarted() {
@@ -108,7 +108,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Notifies all listeners that the insert has generated a URI.
- *
+ *
* @see InsertListener#projectURIGenerated(Project, String)
* @param uri
* The generated URI
@@ -121,7 +121,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Notifies all listeners that the insert has made some progress.
- *
+ *
* @see InsertListener#projectInsertProgress(Project, int, int, int, int,
* boolean)
* @param succeeded
@@ -144,7 +144,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Notifies all listeners the project insert has finished.
- *
+ *
* @see InsertListener#projectInsertFinished(Project, boolean, Throwable)
* @param success
* true
if the project was inserted successfully,
@@ -160,7 +160,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Sets the debug mode.
- *
+ *
* @param debug
* true
to activate debug mode, false
* to deactivate
@@ -171,7 +171,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Sets the project to insert.
- *
+ *
* @param project
* The project to insert
*/
@@ -181,7 +181,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Sets the freenet interface to use.
- *
+ *
* @param freenetInterface
* The freenet interface to use
*/
@@ -201,7 +201,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Creates an input stream that delivers the given file, replacing edition
* tokens in the fileâs content, if necessary.
- *
+ *
* @param filename
* The name of the file
* @param fileOption
@@ -245,7 +245,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Creates an input stream for a container.
- *
+ *
* @param containerFiles
* All container definitions
* @param containerName
@@ -294,7 +294,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Creates a file entry suitable for handing in to
* {@link ClientPutComplexDir#addFileEntry(FileEntry)}.
- *
+ *
* @param filename
* The name of the file to insert
* @param edition
@@ -333,7 +333,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
/**
* Creates container definitions.
- *
+ *
* @param files
* The list of all files
* @param containers
@@ -445,6 +445,7 @@ public class ProjectInserter implements FileScannerListener, Runnable {
String editionPart = finalURI.substring(finalURI.lastIndexOf('/') + 1);
int newEdition = Integer.parseInt(editionPart);
project.setEdition(newEdition);
+ project.setLastInsertionTime(System.currentTimeMillis());
}
}