Class OneDirectoryStrategy
java.lang.Object
overit.geocallapp.docshare.documents.bl.sharedresource.file.savingstrategy.SavingStrategy
overit.geocallapp.docshare.documents.bl.sharedresource.file.savingstrategy.OneDirectoryStrategy
- All Implemented Interfaces:
Serializable
A saving strategy that stores all files in a single directory.
This strategy:
This strategy:
- Uses
DirectoryRoot.DOCSHARE_DIRECTORYas the single common directory for all files - Generates unique filenames using system timestamps (milliseconds)
Example of resulting path structure:
docshare/ # Base directory (DirectoryRoot.DOCSHARE_DIRECTORY) +-- 1701766245000.pdf # File named with timestamp +-- 1701766246000.jpg # Another file +-- 1701766247000.doc # Another file
- Since:
- 14.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDirectory(BOFile file) Returns the name of directory where the file will be physically stored.getName(BOFile file, WebResource directory) Returns the name that will be used to save the file.
-
Constructor Details
-
OneDirectoryStrategy
public OneDirectoryStrategy()
-
-
Method Details