Hi:
I have a working implementation of Google Cloud Storage in my Cuba 7.2 application based on the AWS S3 code. I am migrating to Jmix 1.5, so I’m trying to convert my code into an add-on.
Since I have many documents already stored with File Descriptors in the database, I have to make sure that my new add-on is still compatible with Cuba file storage conventions - like the names of the directories/files, using File Descriptors instead of File Refs, etc.
Since Jmix now supports multiple file storage solutions and allows for choosing a default file storage via jmix.core.default-file-storage, I was thinking that it would be better to write a new add-on compatible with the new FileStorage system using FileRefs then configuring the CubaFileStorage compatiblity class to use it instead of LocalFileStorage:
@Component("cuba_FileStorage")
public class CubaFileStorage implements FileStorageAPI {
@Autowired
protected LocalFileStorage delegate;
Unfortunately, the CubaFileStorage class only uses LocalFileStorage. Is there a way to override this?
Thanks for all the help!
Eric