pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.util.vfs
Class VFSImporter

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.util.vfs.VFSImporter

public final class VFSImporter
extends Controller

is an import tool for the VirtualFileSystem.

It supports the recursive import of a given directory of the servers file system into a given directory of the VirtualFileSystem sanitising the file and directory names.

The results of the import can be outputted as XML, Excel 97/2007 or CSV.

Version:
$Revision: 1581 $
Author:
Thomas Weber

Nested Class Summary
static class VFSImporter.ExcelOutputEvent
          creates the Excel output.
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
VFSImporter()
           
 
Method Summary
 java.lang.Object importIntoVFS(ServiceRequest request)
          performs the import (see details for required Parameters.
 java.lang.Object updateFileSize(ServiceRequest request)
          updates the file size of all VirtualFiles.
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VFSImporter

public VFSImporter()
Method Detail

importIntoVFS

@Action(value="importIntoVFS")
@Permission(value="importIntoVFS")
public java.lang.Object importIntoVFS(ServiceRequest request)
performs the import (see details for required Parameters.

The import Command requires the following Parameters:

Parameters:
request - the current request
Returns:
null

updateFileSize

@Action(value="updateFileSize")
@Permission(value="importIntoVFS")
public java.lang.Object updateFileSize(ServiceRequest request)
updates the file size of all VirtualFiles.

Parameters:
request - the current request
Returns:
an null