API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.filebrowser. JOTFileBrowserSession View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTFileBrowserSession
Implements
Subclasses
Description
public class JOTFileBrowserSession
  This reprsents a user current "view" of a file manager.
See also:   
Constructors
public JOTFileBrowserSession (File rootFolder, File startFolder, int browseType)
  Generic constructor, setting "Default" permissions
Methods
Hide/Show inherited methods
public int getBrowseType ()
public File getCurrentFolder ()
public String getCurrentWarning ()
public String getFailedWarning ()
public Vector getFileListing ()
public String getFileNameWarning ()
public String getForbiddenWarning ()
public String getFullFolderWarning ()
public long getMaxFolderNameLength ()
public long getMaxUploadSize ()
public String getMultipleFilesWarning ()
public Integer getNbOfUploadFields ()
public String getNewDirPattern ()
public String getNewFilePattern ()
public String getOneFileWarning ()
public String getOneFolderWarning ()
public File getRootFolder ()
public String getSessionTimeoutWarning ()
public int getSortBy ()
public File getStartFolder ()
public String getTempUploadFolder ()
public String getTitle ()
public String getUpdateWarning ()
public File getUpFolder ()
public boolean isAllowBrowsing ()
public boolean isAllowCreateFolders ()
public boolean isAllowDelete ()
public boolean isAllowDeleteFilledFolders ()
public boolean isAllowDownloadFile ()
public boolean isAllowListFiles ()
public boolean isAllowListHiddenFiles ()
public boolean isAllowPickRootFolder ()
public boolean isAllowRenaming ()
public boolean isAllowShowPath ()
public boolean isAllowUpdateFile ()
public boolean isAllowUploadFile ()
public Boolean lookingForFile ()
public Boolean lookingForFolder ()
public Boolean lookingForSingleFileUpload ()
public void setAllowBrowsing (boolean allowBrowsing)
public void setAllowCreateFolders (boolean allowCreateFolders)
public void setAllowDelete (boolean allowDelete)
public void setAllowDeleteFilledFolders (boolean allowDeleteFilledFolders)
public void setAllowDownloadFile (boolean allowDownloadFile)
public void setAllowListFiles (boolean allowListFiles)
public void setAllowListHiddenFiles (boolean showHiddenFiles)
public void setAllowPickRootFolder (boolean allowPickRootFolder)
public void setAllowRenaming (boolean allowRenaming)
public void setAllowShowPath (boolean allowShowPath)
public void setAllowUpdateFile (boolean allowUpdateFile)
public void setAllowUploadFile (boolean allowUploadFile)
public void setBrowseType (int browseType)
public void setCurrentFolder (File currentFolder)
public void setCurrentWarning (String currentWarning)
public void setFailedWarning (String failedWarning)
public void setFileListing (Vector folderListing)
public void setFileNameWarning (String fileNameWarning)
public void setForbiddenWarning (String forbiddenWarning)
public void setFullFolderWarning (String fullFolderWarning)
public void setMaxFolderNameLength (long maxFolderNameLength)
public void setMaxUploadSize (long maxUploadSize)
public void setMultipleFilesWarning (String multipleFilesWarning)
public void setNbOfUploadFields (int nb)
public void setNewDirPattern (String pattern)
public void setNewFilePattern (String newFilePattern)
public void setOneFileWarning (String oneFileWarning)
public void setOneFolderWarning (String oneFolderWarning)
public void setRootFolder (File rootFolder)
public void setSessionTimeoutWarning (String sessionTimeoutWarning)
public void setSortBy (int sortBy)
public void setStartFolder (File startFolder)
public void setTempUploadFolder (String tempUploadFolder)
public void setTitle (String title)
public void setUpdateWarning (String updateWarning)
public void setUpFolder (File upFolder)
Fields
Hide/Show inherited fields
protected boolean allowBrowsing
wether stuck in exisiting folder or can browse around.
protected boolean allowCreateFolders
protected boolean allowDelete
protected boolean allowDeleteFilledFolders
allow deleting recursively a filled folder or not
protected boolean allowDownloadFile
allo view/download files ?
protected boolean allowListFiles
If false then user won't se the existing files at all.
protected boolean allowListHiddenFiles
protected boolean allowPickRootFolder
when selecting a folder, can the user pick the root folder itself (or only a subfolder of it) ?
protected boolean allowRenaming
allow renaming files/folders
protected boolean allowShowPath
wether to show the current directory full path or not (ex: /home/blah/files/)
protected boolean allowUpdateFile
allow updating/uplaoding a new version of an existing file ?
protected boolean allowUploadFile
protected int browseType
You will want to set this depending what you want the user to do: ie: upload a file, select a file, just browse etc....
protected File currentFolder
internal value
protected String currentWarning
internal value
protected String failedWarning
protected Vector fileListing
internal value
protected String fileNameWarning
  warning messages : null = no warning, not null.
protected String forbiddenWarning
protected String fullFolderWarning
protected long maxFolderNameLength
protected long maxUploadSize
  maximum TOTAL size in bytes of file(s) uploaded.
protected String multipleFilesWarning
  warning messages : null = no warning, not null.
protected Integer nbOfUploadFields
If file uploads are enabled, how many file do we allow to upload at a time ?
protected String newDirPattern
pattern for new dir names (for security reasons), default:letters,numbers,-,_ only
protected String newFilePattern
  pattern for new/uploaded file names (for security reasons), default:letters,numbers,-,_,.
protected String oneFileWarning
  warning messages : null = no warning, not null.
protected String oneFolderWarning
  warning messages : null = no warning, not null.
protected File rootFolder
user can not browse "higher" than this folder.
protected String sessionTimeoutWarning
  warning messages : null = no warning, not null.
protected int sortBy
by default sort by filename in alphabetical order
protected File startFolder
which folder to start in (rootFolder if null)
protected String tempUploadFolder
where the temporary upload data will be stored during a file upload.
protected String title
if you want to set a title (ie: "Please choose a file")
protected String updateWarning
  warning messages : null = no warning, not null.
protected File upFolder
internal value
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar