public class FileAction extends DefaultAction
| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
ALLOWED_CONTENT_TYPES |
protected static String |
PRETTY_DIR_SEPARATOR |
protected static String |
SHAPE_EXT |
protected static String |
ZIP_EXT |
| Constructor and Description |
|---|
FileAction() |
| Modifier and Type | Method and Description |
|---|---|
net.sourceforge.stripes.action.Resolution |
admin() |
net.sourceforge.stripes.action.Resolution |
check() |
net.sourceforge.stripes.action.Resolution |
create() |
net.sourceforge.stripes.action.Resolution |
createComplete() |
net.sourceforge.stripes.action.Resolution |
delete() |
net.sourceforge.stripes.action.Resolution |
deleteCheck() |
protected void |
deleteDirIfDir(File dir) |
protected void |
deleteImpl(File file) |
protected void |
filterOutFilesToHide(nl.b3p.datastorelinker.util.DirContent dc) |
protected void |
filterOutShapeExtraFiles(nl.b3p.datastorelinker.util.DirContent dc) |
boolean |
getAdminPage() |
String |
getDir() |
nl.b3p.datastorelinker.util.DirContent |
getDirContent() |
protected nl.b3p.datastorelinker.util.DirContent |
getDirContent(File directory,
List<String> subDirList,
Boolean expandDirs) |
String |
getExpandTo() |
static String |
getFileNameFromPPFileName(String fileName,
net.sourceforge.stripes.action.ActionBeanContext context) |
static String |
getFileNameRelativeToUploadDirPP(String file,
net.sourceforge.stripes.action.ActionBeanContext context) |
File |
getOrganizationUploadDir() |
String |
getOrganizationUploadString() |
String |
getSelectedFilePath() |
String |
getSelectedFilePaths() |
static String |
getUploadDirectory(net.sourceforge.stripes.action.ActionBeanContext context) |
static File |
getUploadDirectoryIOFile(net.sourceforge.stripes.action.ActionBeanContext context) |
net.sourceforge.stripes.action.Resolution |
list() |
net.sourceforge.stripes.action.Resolution |
listDir() |
void |
setAdminPage(boolean adminPage) |
void |
setDir(String dir) |
void |
setDirContent(nl.b3p.datastorelinker.util.DirContent dirContent) |
void |
setExpandTo(String expandTo) |
void |
setSelectedFilePath(String selectedFilePath) |
void |
setSelectedFilePaths(String selectedFilePaths) |
net.sourceforge.stripes.action.Resolution |
upload() |
net.sourceforge.stripes.action.Resolution |
uploadProgress() |
getContext, getUploadPath, getUserId, getUserOrganiztionId, isUserAdmin, setContextprotected static final String SHAPE_EXT
protected static final String ZIP_EXT
protected static final String PRETTY_DIR_SEPARATOR
protected static final String[] ALLOWED_CONTENT_TYPES
public net.sourceforge.stripes.action.Resolution listDir()
protected nl.b3p.datastorelinker.util.DirContent getDirContent(File directory, List<String> subDirList, Boolean expandDirs)
protected void filterOutFilesToHide(nl.b3p.datastorelinker.util.DirContent dc)
protected void filterOutShapeExtraFiles(nl.b3p.datastorelinker.util.DirContent dc)
public net.sourceforge.stripes.action.Resolution admin()
public net.sourceforge.stripes.action.Resolution list()
public net.sourceforge.stripes.action.Resolution deleteCheck()
public static String getFileNameFromPPFileName(String fileName, net.sourceforge.stripes.action.ActionBeanContext context)
public static String getFileNameRelativeToUploadDirPP(String file, net.sourceforge.stripes.action.ActionBeanContext context)
public net.sourceforge.stripes.action.Resolution delete()
protected void deleteImpl(File file)
protected void deleteDirIfDir(File dir)
@DontValidate public net.sourceforge.stripes.action.Resolution create()
public net.sourceforge.stripes.action.Resolution createComplete()
@DefaultHandler public net.sourceforge.stripes.action.Resolution upload()
public net.sourceforge.stripes.action.Resolution uploadProgress()
public net.sourceforge.stripes.action.Resolution check()
public static String getUploadDirectory(net.sourceforge.stripes.action.ActionBeanContext context)
public static File getUploadDirectoryIOFile(net.sourceforge.stripes.action.ActionBeanContext context)
public nl.b3p.datastorelinker.util.DirContent getDirContent()
public void setDirContent(nl.b3p.datastorelinker.util.DirContent dirContent)
public String getExpandTo()
public void setExpandTo(String expandTo)
public String getSelectedFilePaths()
public void setSelectedFilePaths(String selectedFilePaths)
public String getDir()
public void setDir(String dir)
public String getSelectedFilePath()
public void setSelectedFilePath(String selectedFilePath)
public boolean getAdminPage()
public void setAdminPage(boolean adminPage)
public File getOrganizationUploadDir()
public String getOrganizationUploadString()
Copyright © 2018 B3Partners B.V.. All rights reserved.