Package com.axelor.rpc
Class PendingExportService
java.lang.Object
com.axelor.rpc.PendingExportService
Manages pending export files.
Pending export files expire after some period of time and are automatically deleted if not consumed.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PendingExportService
public PendingExportService()
-
-
Method Details
-
add
Adds a pending export file.Creates a temporary file from the given stream and returns the token associated with it.
- Parameters:
stream
- the stream to the export file- Returns:
- the token associated with the pending export file
-
get
Returns the pending export file by its token.- Parameters:
token
- the token associated with the pending export file- Returns:
- the pending export file or null
-
remove
Removes and returns the pending export file by its token.It is your responsibility to delete the export file after you're done with it.
- Parameters:
token
- the token associated with the pending export file- Returns:
- the pending export file or null
-