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.core.adminui
Class FileBrowser

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.adminui.FileBrowser
All Implemented Interfaces:
DeprecatedConfigurable

public class FileBrowser
extends Controller
implements DeprecatedConfigurable

Version:
$Revision: 2056 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
FileBrowser()
           
 
Method Summary
 void browse(Bundle bundle, ServiceRequest request)
          browse files.
 void init(ConfigBean c)
          initializes the FileBrowser.
 FileBrowserResult preview(ServiceRequest request)
          preview a file.
 java.lang.Object uploadToVirtualFileSystem(Bundle bundle, ServiceRequest request)
          upload files.
 
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

FileBrowser

public FileBrowser()
Method Detail

browse

@RequireToken
@Action(value="browseVirtualFileSystem", generate=true)
@Permission(value="useFileBrowser")
@Groups(values="Admin-UI")
public final void browse(Bundle bundle, ServiceRequest request)
browse files.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest

preview

@RequireToken
@Action(value="previewVirtualFileSystem", generate=true)
@Permission(value="useFileBrowser")
@Groups(values="Admin-UI")
public final FileBrowserResult preview(ServiceRequest request)
preview a file.

Parameters:
request - the current ServiceRequest
Returns:
a JSON-response

uploadToVirtualFileSystem

@RequireToken
@Action(value="uploadToVirtualFileSystem", uploadAllowed=true, generate=true)
@Permission(value="useFileBrowser")
@Groups(values="Admin-UI")
public final java.lang.Object uploadToVirtualFileSystem(Bundle bundle, ServiceRequest request)
upload files.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
a JSON-response indicating upload-success

init

public final void init(ConfigBean c)
initializes the FileBrowser. Provides required AJAX-XSLs.

Specified by:
init in interface DeprecatedConfigurable
Parameters:
c - the ConfigBean of this Controller