|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EsFileSystemApi
All needed file I/O methods.
ElectroServerApi.getFileSystemApi| Method Summary | |
|---|---|
void |
addKeywords(String path,
String name,
Collection<String> keywords)
Associates a collection of keywords with DAT file specified by the given path and filename. |
void |
delete(String path,
String name)
Deletes the DAT file associated with the given path and filename. |
void |
deleteDirectory(String path)
Deletes the directory associated with the given path. |
Collection<com.electrotank.electroserver4.entities.EsFileSystemResponse> |
findFilesByKeywords(Collection<String> keyword)
Finds a collection of EsObjects that had been stored previously using the collection of keywords specified. |
com.electrotank.electroserver4.entities.EsFileSystemResponse |
getEsObject(String path,
String name)
Gets the EsObject that was stored previously with the given path and filename. |
Collection<String> |
list(String path,
boolean recursive)
Lists the file names of all EsObjects that had been stored previously using the specified path. |
void |
removeKeywords(String path,
String name,
Collection<String> keywords)
Removes a collection of keywords from the DAT file specified by the given path and filename. |
void |
write(String path,
String name,
EsObjectRO object,
com.electrotank.electroserver4.enumerations.CleanupStrategy cleanupStrategy)
Writes an EsObjectRO object as a file. |
void |
write(String path,
String name,
EsObjectRO object,
com.electrotank.electroserver4.enumerations.CleanupStrategy cleanupStrategy,
Collection<String> keywords)
Writes an EsObjectRO object as a file. |
void |
write(String path,
String name,
EsObjectRO object,
com.electrotank.electroserver4.enumerations.CleanupStrategy cleanupStrategy,
Date expiration)
Writes an EsObjectRO object as a file. |
void |
write(String path,
String name,
EsObjectRO object,
com.electrotank.electroserver4.enumerations.CleanupStrategy cleanupStrategy,
Date expiration,
Collection<String> keywords)
Writes an EsObjectRO object as a file. |
| Method Detail |
|---|
void write(String path,
String name,
EsObjectRO object,
com.electrotank.electroserver4.enumerations.CleanupStrategy cleanupStrategy,
Date expiration)
path - path to be used to retrieve the filename - filename to be used to retrieve the fileobject - EsObjectRO to save as a DAT filecleanupStrategy - use CleanupStrategy.EXPIRATION for this type of writeexpiration - expiration timestamp
void write(String path,
String name,
EsObjectRO object,
com.electrotank.electroserver4.enumerations.CleanupStrategy cleanupStrategy,
Date expiration,
Collection<String> keywords)
path - path to be used to retrieve the filename - filename to be used to retrieve the fileobject - EsObjectRO to save as a DAT filecleanupStrategy - use CleanupStrategy.EXPIRATION for this type of writeexpiration - expiration timestampkeywords - words that might be used in a keyword search
void write(String path,
String name,
EsObjectRO object,
com.electrotank.electroserver4.enumerations.CleanupStrategy cleanupStrategy)
path - path to be used to retrieve the filename - filename to be used to retrieve the fileobject - EsObjectRO to save as a DAT filecleanupStrategy - CleanupStrategy.NEVER, SERVER_STOP, or SESSION
void write(String path,
String name,
EsObjectRO object,
com.electrotank.electroserver4.enumerations.CleanupStrategy cleanupStrategy,
Collection<String> keywords)
path - path to be used to retrieve the filename - filename to be used to retrieve the fileobject - EsObjectRO to save as a DAT filecleanupStrategy - CleanupStrategy.NEVER, SERVER_STOP, or SESSIONkeywords - words that might be used in a keyword search
void delete(String path,
String name)
path - path used when file was writtenname - filename used when file was writtenvoid deleteDirectory(String path)
path - path used when files were written
void addKeywords(String path,
String name,
Collection<String> keywords)
path - path used when file was writtenname - filename used when file was writtenkeywords - keywords to be added
void removeKeywords(String path,
String name,
Collection<String> keywords)
path - path used when file was writtenname - filename used when file was writtenkeywords - keywords to be removed
com.electrotank.electroserver4.entities.EsFileSystemResponse getEsObject(String path,
String name)
EsFileSystemApi fileSystemApi = getApi().getFileSystemApi();
EsFileSystemResponse fileResponse = fileSystemApi.getEsObject(path, filename);
if (fileResponse == null) {
handle error retrieving file
} else {
EsObject fileObj = fileResponse.getEsObject();
process fileObj
}
path - path used when file was writtenname - filename used when file was written
Collection<com.electrotank.electroserver4.entities.EsFileSystemResponse> findFilesByKeywords(Collection<String> keyword)
keyword - collection of keywords to use in the search
Collection<String> list(String path,
boolean recursive)
path - path used when file was writtenrecursive - boolean indicating whether to search subtrees
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||