tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

Config Archiver - making import functionality more generic #85

Open LoganLaFollette opened 7 years ago

LoganLaFollette commented 7 years ago

Right now the REST endpoint used to import configs calls the extractFolder() method in RepositoryConfigServiceImpl to iterate through a file and upload it to an appId location in an OC docbase. This method could instead take a base path parameter and be used to upload any zip file to any location and be moved to ZipUtil. This currently isn't possible since the upload location is hard coded to hpi-root/theZipName. The import configs REST endpoint currently ensures the appId folder for the import exists and then calls extractFolder so this change would also include altering some of the endpoint logic.