Package org.bgerp.model.file.tmp
Class SessionTemporaryFiles
java.lang.Object
org.bgerp.model.file.tmp.SessionTemporaryFiles
Temporary files not persisted in the regular file storage
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteFiles(javax.servlet.http.HttpSession session) Delete tmp files on session closestatic voiddeleteFiles(DynActionForm form, Set<Integer> ids) Delete tmp files after persisting thosegetFiles(DynActionForm form, String paramName) Uploaded tmp files for persistingstatic intupload(DynActionForm form) Upload tmp file 
- 
Constructor Details
- 
SessionTemporaryFiles
public SessionTemporaryFiles() 
 - 
 - 
Method Details
- 
upload
Upload tmp file- Parameters:
 form-- Returns:
 - Throws:
 FileNotFoundExceptionIOException
 - 
getFiles
public static Map<Integer,FileInfo> getFiles(DynActionForm form, String paramName) throws BGMessageException Uploaded tmp files for persisting- Parameters:
 form- the formparamName- the http request param name- Returns:
 - Throws:
 BGMessageException- duplicated tmp files were found
 - 
deleteFiles
Delete tmp files after persisting those- Parameters:
 form- the request form, with the sessionids- the tmp file IDs
 - 
deleteFiles
public static void deleteFiles(javax.servlet.http.HttpSession session) Delete tmp files on session close- Parameters:
 session- the session
 
 -