|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.grc.acuity.apvfplus.actions.FileSystemInteractions
| Field Summary | |
static java.lang.String |
EMPTY_DOUBLE_QUOTES
|
| Constructor Summary | |
FileSystemInteractions()
|
|
| Method Summary | |
static java.lang.String |
addEffectiveRoot(java.lang.String dir,
java.lang.String effRoot)
Adds the effective root to a given directory. |
static java.lang.String |
convertPathToClient(java.lang.String path)
Convert path to client syntax (with '$' for ':', forward slashes). |
static java.lang.String |
convertPathToServer(java.lang.String path)
Convert path to server syntax (with colons, forward slashes). |
static java.util.List |
getDirectoryStructure(java.lang.String curDir)
Call this method to get the directory structure directly above and directly below a given (args[0]) directory. |
static java.util.List |
getDirectoryStructure(java.lang.String curDir,
java.lang.Boolean includeAA)
Call this method to get the directory structure directly above and directly below a given (args[0]) directory. |
static java.util.List |
getDirectoryStructure(java.lang.String curDir,
java.lang.Boolean includeAA,
java.lang.String maxLen)
Call this method to get the directory structure directly above and directly below a given (args[0]) directory. |
static java.util.List |
getDirectoryStructure(java.lang.String curDir,
java.lang.String maxLen)
Call this method to get the directory structure directly above and directly below a given (args[0]) directory. |
static java.util.List |
getDirectoryStructure(java.lang.String curDir,
java.lang.String maxLen,
java.lang.String _effectiveRoot)
Gets the directory structure. |
static java.util.List |
getDirectoryStructure(java.lang.String curDir,
java.lang.String maxLen,
java.lang.String _effectiveRoot,
java.lang.Boolean includeAA)
Gets the directory structure. |
static java.lang.String |
getFileNameFromFullPath(java.lang.String fullPath)
Gets the file name from the full path. |
static java.util.List |
getFilesInCurrentDirectory(java.lang.String curDir)
Call this directory to get a list of the files in the current directory (args[0]). |
static java.util.List |
getFilesInCurrentDirectory(java.lang.String curDir,
java.lang.String effRoot)
Gets the files in current directory. |
static java.util.List |
getFilteredFilesInCurrentDirectory(java.lang.String curDir,
java.lang.String filter)
Call this directory to get a [filtered] list of the files in the current directory (args[0]). |
static java.util.List |
getFilteredFilesInCurrentDirectory(java.lang.String curDir,
java.lang.String filter,
java.lang.String effRoot)
Gets the filtered files in current directory. |
static java.lang.String |
removeEffectiveRoot(java.lang.String dir,
java.lang.String effRoot)
Removes the effective root from the absolute path of a directory. |
java.lang.String |
uploadDataFile(java.lang.String saveDir,
org.apache.struts.upload.FormFile fileInfo)
Upload a file from the client file system to the server file system. |
java.lang.String |
uploadDataFile(java.lang.String relDir,
org.apache.struts.upload.FormFile fileInfo,
java.lang.String effectiveRoot)
Upload a file. |
static java.lang.String |
validateCurrentDirectory(java.lang.String curDir,
java.lang.String effRoot)
Validate current directory relative to an effective root directory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String EMPTY_DOUBLE_QUOTES
| Constructor Detail |
public FileSystemInteractions()
| Method Detail |
public static java.util.List getFilesInCurrentDirectory(java.lang.String curDir,
java.lang.String effRoot)
throws AcuityException
effRoot - the effective rootcurDir - the current directory
AcuityException - the acuity exception
public static java.util.List getFilesInCurrentDirectory(java.lang.String curDir)
throws AcuityException
SQLException
AcuityException
public static java.util.List getFilteredFilesInCurrentDirectory(java.lang.String curDir,
java.lang.String filter,
java.lang.String effRoot)
throws AcuityException
filter - the filtercurDir - the current directoryeffRoot - the effective root
AcuityException - the acuity exception
public static java.util.List getFilteredFilesInCurrentDirectory(java.lang.String curDir,
java.lang.String filter)
throws AcuityException
SQLException
AcuityException
public static java.util.List getDirectoryStructure(java.lang.String curDir)
throws AcuityException
curDir - - the directory in question
AcuityException
public static java.util.List getDirectoryStructure(java.lang.String curDir,
java.lang.String maxLen)
throws AcuityException
curDir - - the directory in questionmaxLen - - the maximum length of an entry in the list. If exceeded, a separate display string will be abbreviated.
AcuityException
public static java.util.List getDirectoryStructure(java.lang.String curDir,
java.lang.String maxLen,
java.lang.String _effectiveRoot)
throws AcuityException
curDir - the current directorymaxLen - the maximum length of the display item (2nd element) for the directory item_effectiveRoot - the effective root
AcuityException - the acuity exception
public static java.util.List getDirectoryStructure(java.lang.String curDir,
java.lang.String maxLen,
java.lang.String _effectiveRoot,
java.lang.Boolean includeAA)
throws AcuityException
curDir - the current directorymaxLen - the maximum length of the display item (2nd element) for the directory item_effectiveRoot - the effective rootincludeAA - if true include all ancestor directories
AcuityException - the acuity exception
public static java.lang.String validateCurrentDirectory(java.lang.String curDir,
java.lang.String effRoot)
curDir - the current directoryeffRoot - the effective root
public static java.util.List getDirectoryStructure(java.lang.String curDir,
java.lang.Boolean includeAA,
java.lang.String maxLen)
throws AcuityException
curDir - - the directory in questionincludeAA - - if true include all the directories above else include only the one directly abovemaxLen - - the maximum length of an entry in the list. If exceeded, a separate display string will be abbreviated.
AcuityException
public static java.util.List getDirectoryStructure(java.lang.String curDir,
java.lang.Boolean includeAA)
throws AcuityException
curDir - - the directory in questionincludeAA - - if true include all the directories above else include only the one directly above
AcuityException
public static java.lang.String addEffectiveRoot(java.lang.String dir,
java.lang.String effRoot)
effRoot - the effective rootdir - the directory
public static java.lang.String removeEffectiveRoot(java.lang.String dir,
java.lang.String effRoot)
effRoot - the effective rootdir - the absolute path of a directory
public static java.lang.String convertPathToServer(java.lang.String path)
path - the path
public static java.lang.String convertPathToClient(java.lang.String path)
path - the path
public static java.lang.String getFileNameFromFullPath(java.lang.String fullPath)
fullPath - the full path
public java.lang.String uploadDataFile(java.lang.String relDir,
org.apache.struts.upload.FormFile fileInfo,
java.lang.String effectiveRoot)
throws AcuityException
fileInfo - the file info from the Apache processing of the HTML Form input type FILEeffectiveRoot - the effective rootrelDir - the relative directory (relative to effective root) into which the uploaded file is to be placed
AcuityException - the acuity exception
public java.lang.String uploadDataFile(java.lang.String saveDir,
org.apache.struts.upload.FormFile fileInfo)
throws AcuityException
fileInfo - the information about the file on the client file system being uploadedsaveDir - the directory on the server file system where the file is to be saved
AcuityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||