Package io.jmix.flowui.upload
Class TemporaryStorageManagementFacade
java.lang.Object
io.jmix.flowui.upload.TemporaryStorageManagementFacade
@ManagedResource(description="Manages TemporaryStorage",
objectName="jmix.flowui:type=TemporaryStorage")
@Component("flowui_TemporaryStorageManagementFacade")
public class TemporaryStorageManagementFacade
extends Object
Facade for managing temporary storage operations. This class provides mechanisms
for displaying metadata of temporarily stored files and for clearing outdated files
from the temporary directory.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClears the temporary directory by removing outdated files.Retrieves a string representation of temporarily stored files and their metadata.
-
Field Details
-
temporaryStorage
-
-
Constructor Details
-
TemporaryStorageManagementFacade
public TemporaryStorageManagementFacade()
-
-
Method Details
-
showTempFiles
Retrieves a string representation of temporarily stored files and their metadata.- Returns:
- a string containing the temporarily stored files and their last modification timestamps
-
clearTempDirectory
Clears the temporary directory by removing outdated files.- Returns:
- a string containing the value
"Done", indicating that the temporary directory has been successfully cleared.
-