Storer.java :  » Content-Management-System » contineo » org » contineo » core » doxter » Java Open Source

Java Open Source » Content Management System » contineo 
contineo » org » contineo » core » doxter » Storer.java
package org.contineo.core.doxter;

import java.io.InputStream;


/**
 * Created on 17.08.2004
 *
 * @author Michael Scholz
 */
public interface Storer
{
    /**
     * This method has to store a document and if wanted to make a backup of
     * this document. The location where (DBMS, Filesystem, other) the document
     * should be stored is defined by the concret implementation. It is possible
     * to store a new document or a new version of an existing document.
     *
     * @param stream
     *            Document as InputStream
     * @param menupath
     *            Path in contineo containing the menuIds of all parent items.
     * @param filename
     *            Name of the document.
     * @param version
     *            Version of the document.
     * @return Result of the storing process.
     */
    boolean store(
        InputStream stream,
        String      menupath,
        String      filename,
        String      version);

    /**
     * Deletes a document from the documentpool and the backuppool.
     *
     * @param menupath
     *            Path in contineo containing the menuIds of all parent items.
     * @return Result of the deleting process.
     */
    boolean delete(String menupath);

    /**
     * This method regenerates the document repository from the backup.
     *
     * @return Result of the restoring process.
     */
    boolean restoreAll();
} // end interface Storer
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.