ppazos / cabolabs-ehrserver

Open platform to manage and share standardized clinical data, designed by @ppazos at CaboLabs Health Informatics.
https://cabolabs.com
Apache License 2.0
179 stars 110 forks source link

Make OptFSService and OptS3Service implement the same interface #1071

Closed ppazos closed 4 years ago

ppazos commented 4 years ago

We need an interface to control both are implementing the same methods and also to use as a parameter class for some methods, like OperationalTemplateIndexer.setupBaseOpts()

ppazos commented 4 years ago

We needed the import com.cabolabs.openehr.opt.manager.OptRepository interface, which is implemented by OptRepositoryFSImpl and OptRepositoryS3Impl, it wasn't the for the services.

Double checked that and changed the methods from xxx(Organization org, def repo) to xxx(Organization org, OptRepository repo)

ppazos commented 4 years ago

done