net.jot.web.filebrowser
Class JOTFileBrowserController

java.lang.Object
  extended by net.jot.web.ctrl.JOTController
      extended by net.jot.web.filebrowser.JOTFileBrowserController

public abstract class JOTFileBrowserController
extends JOTController

Generic File Browsing support controller, used to handle browsing the file system, uploading/picking files. Extend this to create your own file browsing implementation JOTFileBrowserHelper contains the actual actions such as deeting a file, picking one etc...

Author:
thibautc

Field Summary
static java.lang.String JUST_RESET
           
static java.lang.String RESULTS_ATTRIBUTE
           
 
Fields inherited from class net.jot.web.ctrl.JOTController
filterChain, filterConfig, request, response, RESULT_COMPLETED, RESULT_FAILURE, RESULT_FORBIDDEN, RESULT_SUCCESS, RESULT_VALIDATION_FAILURE, session
 
Constructor Summary
JOTFileBrowserController()
           
 
Method Summary
abstract  JOTFileBrowserSession createFbSession()
          Your implementation should create return a JOTFileBrowserSession, which basically tells the FileBrowser how to behave, what to allow and what is expected of the user.
 java.lang.String process()
          Process the browser request, ie: browse around/pcik a file etc...
 
Methods inherited from class net.jot.web.ctrl.JOTController
getDataHolder, getForm, init, validatePermissions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JUST_RESET

public static final java.lang.String JUST_RESET
See Also:
Constant Field Values

RESULTS_ATTRIBUTE

public static final java.lang.String RESULTS_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

JOTFileBrowserController

public JOTFileBrowserController()
Method Detail

process

public java.lang.String process()
                         throws java.lang.Exception
Process the browser request, ie: browse around/pcik a file etc...

Specified by:
process in class JOTController
Returns:
Throws:
java.lang.Exception

createFbSession

public abstract JOTFileBrowserSession createFbSession()
Your implementation should create return a JOTFileBrowserSession, which basically tells the FileBrowser how to behave, what to allow and what is expected of the user.

Returns: