|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dke.smwp.db.DB_IFS_Document
Field Summary | |
private static java.lang.String |
IFS_SCHEMA_PASSWORD
|
private static java.lang.String |
IFS_SERVICE_NAME
|
private static java.lang.String |
IFS_USER_NAME
|
private static java.lang.String |
IFS_USER_PASSWORD
|
Constructor Summary | |
DB_IFS_Document()
default constructor |
Method Summary | |
void |
deleteDocument(java.lang.String systemId)
delete ifs document designated by systemId |
void |
deleteDocument(java.lang.String fileName,
java.lang.String[] folderNames)
delete ifs document designated by fileName and folderNames |
java.lang.String |
getFileNameOfPath(java.lang.String systemId)
parses the systemId String and returns its file name |
java.lang.String[] |
getFolderNamesOfPath(java.lang.String systemId)
parses the systemId String and returns its folder names; |
static void |
main(java.lang.String[] args)
|
java.io.InputStream |
readDocument(java.lang.String systemId)
reads document designated by systemId |
java.io.InputStream |
readDocument(java.lang.String fileName,
java.lang.String[] folderNames)
reads ifs document designated by fileName and folderNames |
void |
saveDocuemnt(java.lang.String systemId,
java.io.Reader fileContentReader)
saves ifs document designated by systemId |
void |
saveDocument(java.lang.String systemId,
java.io.InputStream fileContentStream)
saves ifs document designated by systemId |
void |
saveDocument(java.lang.String systemId,
java.lang.String fileContent)
saves ifs document designated by systemId and
folderNames with following content fileContent |
void |
saveDocument(java.lang.String fileName,
java.lang.String[] folderNames,
java.io.InputStream fileContentStream)
saves ifs document designated by systemId and folderNames
with following content fileContentStream |
void |
saveDocument(java.lang.String fileName,
java.lang.String[] folderNames,
java.io.Reader fileContentReader)
saves ifs document designated by systemId and
folderNames with following content
fileContentReader ; |
void |
saveDocument(java.lang.String fileName,
java.lang.String[] folderNames,
java.lang.String fileContent)
saves ifs document designated by systemId and
folderNames with following content fileContent ; |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static java.lang.String IFS_USER_NAME
private static java.lang.String IFS_USER_PASSWORD
private static java.lang.String IFS_SERVICE_NAME
private static java.lang.String IFS_SCHEMA_PASSWORD
Constructor Detail |
public DB_IFS_Document()
Method Detail |
public static void main(java.lang.String[] args)
args
- IfsException
- public void deleteDocument(java.lang.String systemId)
systemId
systemId
- filename and path (f.e. /users/subfolder/users_name.xml)IfsException
- ifs file deletion failedpublic void deleteDocument(java.lang.String fileName, java.lang.String[] folderNames)
fileName
and folderNames
fileName
- name of file which is to be deletedfolderNames
- array of foldernamesIfsException
- ifs file deletion failedpublic java.io.InputStream readDocument(java.lang.String systemId)
systemId
systemId
- filename and path (f.e. /users/subfolder/users_name.xml)IfsException
- ifs file not found;public java.io.InputStream readDocument(java.lang.String fileName, java.lang.String[] folderNames)
fileName
and folderNames
fileName
- name of file which is to be deletedfolderNames
- array of foldernames, in which the file residesIfsException
- ifs file not foundpublic void saveDocument(java.lang.String systemId, java.io.InputStream fileContentStream)
systemId
systemId
- string containing folder and file information i.e. /users/Users_name.xmlfileContentStream
- file contentIfsException
- ifs document creation failedpublic void saveDocuemnt(java.lang.String systemId, java.io.Reader fileContentReader)
systemId
systemId
- String containing folder and file information i.e. /users/Users_name.xmlfileContentReader
- file contentIfsException
- ifs document creation failedpublic void saveDocument(java.lang.String fileName, java.lang.String[] folderNames, java.io.InputStream fileContentStream)
systemId
and folderNames
with following content fileContentStream
fileName
- name of the file which is to be created/updatedfolderNames
- name of the subfolder, in which the file is to be insertedfileContentStream
- content of the fileIfsException
- ifs document creation failedpublic void saveDocument(java.lang.String fileName, java.lang.String[] folderNames, java.io.Reader fileContentReader)
systemId
and
folderNames
with following content
fileContentReader
;fileName
- name of the file which is to be created/updatedfolderNames
- name of the subfolder hierarchie, in which
the file is to be insertedfileContentReader
- content of the fileIfsException
- ifs document creation failedpublic void saveDocument(java.lang.String systemId, java.lang.String fileContent)
systemId
and
folderNames
with following content fileContent
systemId
- String containing folder and file information;
i.e. /users/Users_name.xml
fileContent
- content of the file which is to be savedIfsException
- ifs document creation failedpublic void saveDocument(java.lang.String fileName, java.lang.String[] folderNames, java.lang.String fileContent)
systemId
and
folderNames
with following content fileContent
;fileName
- name of the file which is to be created/updatedfolderNames
- name of the subfolder hierarchy, in which the file
is to be insertedfileContent
- content of the fileIfsException
- public java.lang.String[] getFolderNamesOfPath(java.lang.String systemId)
systemId
String and returns its folder names;systemId
- filename and path of file
(f.e. /users/subfolder/users_name.xml
)public java.lang.String getFileNameOfPath(java.lang.String systemId)
systemId
String and returns its file namesystemId
- filename and path of file
(f.e. /users/subfolder/users_name.xml
)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |