org.apache.cocoon.components
Class SourceRepository

java.lang.Object
  extended by org.apache.cocoon.components.SourceRepository

public class SourceRepository
extends Object

Version:
CVS $Id: SourceRepository.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
stefano

Field Summary
static String FILE_NAME
           
 
Method Summary
static void copy(InputStream from, OutputStream to)
           
static void copy(ModifiableTraversableSource from, ModifiableTraversableSource to)
           
static void copy(String from, String to)
           
static int getID(String colName)
           
static SourceRepository getInstance()
           
static OutputStream getOutputStream(String collection)
           
static int getVersionID(String colName)
          Returns the highest version id of the files included in the given directory.
static Object[] getVersions(String colName)
           
static boolean remove(ModifiableTraversableSource resource)
           
static boolean remove(String resourceName)
           
static void revertFrom(String collection, int version)
           
static void save(Part part, ModifiableTraversableSource destination)
           
static void save(Request request, String dirName)
           
static void save(Request request, String param, String dest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_NAME

public static final String FILE_NAME
See Also:
Constant Field Values
Method Detail

getInstance

public static SourceRepository getInstance()

save

public static void save(Request request,
                        String dirName)
                 throws Exception
Throws:
Exception

save

public static void save(Request request,
                        String param,
                        String dest)
                 throws Exception
Throws:
Exception

save

public static void save(Part part,
                        ModifiableTraversableSource destination)
                 throws Exception
Throws:
Exception

getOutputStream

public static OutputStream getOutputStream(String collection)
                                    throws IOException
Throws:
IOException

revertFrom

public static void revertFrom(String collection,
                              int version)
                       throws IOException
Throws:
IOException

getVersionID

public static int getVersionID(String colName)
Returns the highest version id of the files included in the given directory.


getVersions

public static Object[] getVersions(String colName)

getID

public static int getID(String colName)

remove

public static boolean remove(String resourceName)

remove

public static boolean remove(ModifiableTraversableSource resource)

copy

public static void copy(String from,
                        String to)
                 throws IOException
Throws:
IOException

copy

public static void copy(ModifiableTraversableSource from,
                        ModifiableTraversableSource to)
                 throws IOException
Throws:
IOException

copy

public static void copy(InputStream from,
                        OutputStream to)
                 throws IOException
Throws:
IOException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.