net.jot.web.filebrowser
Class JOTFileBrowserHelper

java.lang.Object
  extended by net.jot.web.filebrowser.JOTFileBrowserHelper

public class JOTFileBrowserHelper
extends java.lang.Object

"Logic" /processing methods of the FileManager, using a user's current FileBrowserSession

Author:
thibautc

Field Summary
static java.lang.String ACTION_BROWSE_TO
           
static java.lang.String ACTION_CREATE_FOLDER
           
static java.lang.String ACTION_DELETE
           
static java.lang.String ACTION_DOWNLOAD
           
static java.lang.String ACTION_RENAME
           
static java.lang.String ACTION_SELECT
           
static java.lang.String ACTION_SORT_BY
           
static java.lang.String ACTION_UPLOAD
           
static int SORT_BY_NAME_ASC
           
static int SORT_BY_NAME_DESC
           
static int SORT_BY_SIZE_ASC
           
static int SORT_BY_SIZE_DESC
           
static int SORT_BY_TSTAMP_ASC
           
static int SORT_BY_TSTAMP_DESC
           
static int TYPE_BROWSE
           
static int TYPE_CHOOSE_1_FILE
           
static int TYPE_CHOOSE_1_FOLDER
           
static int TYPE_CHOOSE_1PLUS_FILE
           
static int TYPE_UPLOAD_1_FILE
           
 
Constructor Summary
JOTFileBrowserHelper()
           
 
Method Summary
static java.io.File[] getChosenFiles(javax.servlet.http.HttpServletRequest request)
          After completion of the file selection process, this can be called to retrieve the list of files picked by the user.
static JOTFileBrowserSession getFbSession(JOTFlowRequest request)
          Returns the fbSession object (The current user "view" in the file manager)
static void setFbSession(JOTFlowRequest request, JOTFileBrowserSession fbSession)
          sets the updated FbSession (user current view)
static java.lang.String updateFileManagerView(JOTFlowRequest request, javax.servlet.http.HttpServletResponse response)
          Update the filebrowser view (ie: files listings etc...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_BROWSE_TO

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

ACTION_RENAME

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

ACTION_CREATE_FOLDER

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

ACTION_UPLOAD

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

ACTION_SORT_BY

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

ACTION_DOWNLOAD

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

ACTION_SELECT

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

ACTION_DELETE

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

TYPE_BROWSE

public static final int TYPE_BROWSE
See Also:
Constant Field Values

TYPE_CHOOSE_1_FILE

public static final int TYPE_CHOOSE_1_FILE
See Also:
Constant Field Values

TYPE_CHOOSE_1PLUS_FILE

public static final int TYPE_CHOOSE_1PLUS_FILE
See Also:
Constant Field Values

TYPE_CHOOSE_1_FOLDER

public static final int TYPE_CHOOSE_1_FOLDER
See Also:
Constant Field Values

TYPE_UPLOAD_1_FILE

public static final int TYPE_UPLOAD_1_FILE
See Also:
Constant Field Values

SORT_BY_NAME_ASC

public static final int SORT_BY_NAME_ASC
See Also:
Constant Field Values

SORT_BY_NAME_DESC

public static final int SORT_BY_NAME_DESC
See Also:
Constant Field Values

SORT_BY_SIZE_ASC

public static final int SORT_BY_SIZE_ASC
See Also:
Constant Field Values

SORT_BY_SIZE_DESC

public static final int SORT_BY_SIZE_DESC
See Also:
Constant Field Values

SORT_BY_TSTAMP_ASC

public static final int SORT_BY_TSTAMP_ASC
See Also:
Constant Field Values

SORT_BY_TSTAMP_DESC

public static final int SORT_BY_TSTAMP_DESC
See Also:
Constant Field Values
Constructor Detail

JOTFileBrowserHelper

public JOTFileBrowserHelper()
Method Detail

updateFileManagerView

public static java.lang.String updateFileManagerView(JOTFlowRequest request,
                                                     javax.servlet.http.HttpServletResponse response)
Update the filebrowser view (ie: files listings etc...)

Parameters:
request -
response -
Returns:

getChosenFiles

public static java.io.File[] getChosenFiles(javax.servlet.http.HttpServletRequest request)
After completion of the file selection process, this can be called to retrieve the list of files picked by the user.

Returns:

getFbSession

public static JOTFileBrowserSession getFbSession(JOTFlowRequest request)
Returns the fbSession object (The current user "view" in the file manager)

Parameters:
request -
Returns:

setFbSession

public static void setFbSession(JOTFlowRequest request,
                                JOTFileBrowserSession fbSession)
sets the updated FbSession (user current view)

Parameters:
request -
fbSession -