KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > contineo > core > doxter > Storer


1 package org.contineo.core.doxter;
2
3 import java.io.InputStream JavaDoc;
4
5 /**
6  * Created on 17.08.2004
7  * @author Michael Scholz
8  */

9 public interface Storer {
10
11     /**
12      * This method has to store a document and if wanted to make a backup of this document.
13      * The location where (DBMS, Filesystem, other) the document should be stored is defined
14      * by the concret implementation. It is possible to store a new document or a new version
15      * of an existing document.
16      * @param stream Document as InputStream
17      * @param menupath Path in contineo containing the menuids of all parent items.
18      * @param filename Name of the document.
19      * @param version Version of the document.
20      * @return Result of the storing process.
21      */

22     public boolean store(InputStream JavaDoc stream, String JavaDoc menupath, String JavaDoc filename, String JavaDoc version);
23     
24     /**
25      * Deletes a document from the documentpool and the backuppool.
26      * @param menupath Path in contineo containing the menuids of all parent items.
27      * @return Result of the deleting process.
28      */

29     public boolean delete(String JavaDoc menupath);
30     
31     /**
32      * This method regenerates the document repository from the backup.
33      * @return Result of the restoring process.
34      */

35     public boolean restoreAll();
36 }
37
Free Books   Free Magazines  
Popular Tags