|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.context.JcmsContext
com.jalios.jcms.context.JcmsJspContext
com.jalios.jcms.handler.JcmsFormHandler
com.jalios.jcms.handler.FileHandler
public class FileHandler
Field Summary | |
---|---|
static String |
REVISION
|
String |
root
Upload directory path |
Fields inherited from class com.jalios.jcms.handler.JcmsFormHandler |
---|
contextMap, editFieldSet, noRedirect, noSendRedirect, popupEdition, redirect, redirectOnClosePopup, workspaceForced |
Fields inherited from class com.jalios.jcms.context.JcmsJspContext |
---|
AJAX_REQUEST_ATTRIBUTES, BODY_HEADER, CSS_HEADER, cssboMap, cssfoMap, CUSTOM_HEADER, editIcon, HTTPEQUIV_HEADER, httpequivMap, HTTPNAME_HEADER, httpnameMap, initEditIcon, JAVASCRIPT_CODE_SET_ATTRIBUTE, JAVASCRIPT_SET_ATTRIBUTE, JS_HEADER, jsboMap, jsboSet, jsfoMap, jsfoSet, out, pageContext, SHOW_EDIT_ICON, STYLE_HEADER |
Fields inherited from class com.jalios.jcms.context.JcmsContext |
---|
browser, caddy, channel, inFO, initDone, initWorkspace, isAdmin, isAjaxRequest, isDebug, isLogged, loggedMember, request, response, userLang, userLocale, workspace |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
Constructor Summary | |
---|---|
FileHandler()
Set the value of channel |
Method Summary | |
---|---|
String |
addFolder()
Add a new folder in the current directory. |
String |
changeSort()
Change the current directory content sorting. |
String |
cutAndPasteItem()
Cut and paste a file or a folder in the current directory. |
String |
deleteItem()
Delete an item which is a file or a directory. |
String |
executeQuery()
Execute a query set by the method setQuery(queryName) . |
File |
getCurrentDir()
Get the current subdirectory. |
String |
getCurrentPath()
Get the current subdirectory path ended with a file separator. |
Vector |
getFiles()
Returns a list of the current directory files, not including the subfolders and sorted by the current sorting attribute and the current sorting order. |
Vector |
getFolders()
Returns a list of the current directory subfolders sorted by the current sorting attribute and the current sorting order. |
String |
getNewItem()
Get the value of newItem |
String |
getQuery()
Get the value of query |
Vector |
getRelativeTree()
Get the upload folder tree. |
String |
getRoot()
Get the value of root |
File |
getSelectedFile()
Get the selected file (or folder). |
String |
getSelectedItem()
Get the value of selectedItem |
boolean |
getSort()
Get the value of sort |
String |
getSortAttr()
Get the value of sortAttr |
String |
getSubdir()
Get the value of subdir . |
String |
pasteItem()
Paste a file or a folder in the current directory. |
String |
renameItem()
Rename the selected file or directory. |
String |
selectItem()
Select a file or a directory in the current directory. |
void |
setNewItem(String ni)
Set the value of newItem . |
void |
setQuery(String query)
Set the value of query |
void |
setSelectedItem(String sel)
Set the value of selectedItem |
void |
setSort(boolean sort)
Set the value of sort |
void |
setSortAttr(String sortAttr)
Set the value of sortAttr |
void |
setSubdir(String sd)
Set the value of subdir . |
String |
update()
Check the subdirectory path validity. |
Methods inherited from class com.jalios.jcms.handler.JcmsFormHandler |
---|
getControllerContext, getEditFieldSet, getMainLangValue, getMainLangValueArray, getMLMap, getMLMapArray, getRedirect, getRedirectOnClosePopup, getWorkspace, isFieldEdition, isFieldMissing, isPartialFieldEdition, isPopupEdition, isWorkspaceForced, processStatus, sendRedirect, sendRedirect, setEditField, setNoRedirect, setNoSendRedirect, setPopupEdition, setRedirect, setRedirectOnClosePopup, setWorkspace, setWs, updateUploadedField, updateUploadedFields |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public String root
Constructor Detail |
---|
public FileHandler()
channel
Method Detail |
---|
public String getSubdir()
subdir
.
subdir
.public void setSubdir(String sd)
subdir
.
sd
- Value to assign to subdir
.public String getSelectedItem()
selectedItem
selectedItem.
public void setSelectedItem(String sel)
selectedItem
sel
- Value to assign to selectedItem
public void setNewItem(String ni)
newItem
.
ni
- Value to assign to newItem
public String getNewItem()
newItem
newItem
.public void setQuery(String query)
query
query
- Value to assign to query
public String getQuery()
query
query
.public void setSort(boolean sort)
sort
sort
- Value to assign to sort
public boolean getSort()
sort
sort
.public void setSortAttr(String sortAttr)
sortAttr
sortAttr
- Value to assign to sortAttr
public String getSortAttr()
sortAttr
sortAttr
.public String getRoot()
root
root
public Vector getFolders()
public Vector getFiles()
public Vector getRelativeTree()
public String getCurrentPath()
public File getSelectedFile()
public File getCurrentDir()
public String executeQuery()
setQuery(queryName)
.
public String update()
public String selectItem()
public String addFolder()
public String deleteItem()
public String pasteItem()
public String cutAndPasteItem()
public String renameItem()
public String changeSort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |