API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.filebrowser. JOTFileBrowserController View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTController
          JOTFileBrowserController
Implements
Subclasses
Description
publicabstract abstract class JOTFileBrowserController
  Generic File Browsing support controller, used to handle browsing the file system, uploading/picking files.
See also:   
Constructors
public JOTFileBrowserController ()
Methods
Hide/Show inherited methods
publicabstract 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.
protected JOTDataHolder getDataHolder () [Inherited From JOTController]
public JOTForm getForm (Class formClass) [Inherited From JOTController]
  use this method to get/create a form object Will provide either : - a new form object if this form is newly used - the existing form if used earlier in this request (ie: validation failed) This allows you to get the form and put it in the View, or to populate/validate it in your controller.
public JOTMasterController getMaster () [Inherited From JOTController]
public void init (JOTMasterController master) [Inherited From JOTController]
  Will be called by the mastercontroller.
public String process () throws Exception [Specified in JOTController]
  Process the browser request, ie: browse around/pcik a file etc...
publicabstract boolean validatePermissions () [Inherited From JOTController]
  Implements this to check wether the user is allowed to use your controller.
Fields
Hide/Show inherited fields
public FilterChain filterChain [Inherited From JOTController]
Gives you easy acess to filterChain should you need it
public FilterConfig filterConfig [Inherited From JOTController]
Gives you easy acess to filterConfig should you need it
publicfinalstatic String JUST_RESET = "_JOT_JUST_RESET"
public JOTFlowRequest request [Inherited From JOTController]
Gives you easy access to the request
public HttpServletResponse response [Inherited From JOTController]
Gives you easy access to the Response
publicfinalstatic String RESULT_COMPLETED = "completed" [Inherited From JOTController]
Special return code used for for a controller that will be called many times until ity his considered "completed" For example the Filemanager where you can browse around until you pick a file(completed)
publicfinalstatic String RESULT_FAILURE = "failure" [Inherited From JOTController]
Return this if the controller failed (Exception/error etc...)
publicfinalstatic String RESULT_FORBIDDEN = "forbidden" [Inherited From JOTController]
Special return code used when a user calls a controller he has no permission to.
publicfinalstatic String RESULT_SUCCESS = "success" [Inherited From JOTController]
Return this if the controller processed succesfully (generic success message)
publicfinalstatic String RESULT_VALIDATION_FAILURE = "validation_failure" [Inherited From JOTController]
Special return code used for Forms(JOTForm), if the form data validation failed.
publicfinalstatic String RESULTS_ATTRIBUTE = "_JOT_FM_SELECTED_FILES"
public HttpSession session [Inherited From JOTController]
Gives you easy acess to the "Session" object
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar