Search in sources :

Example 1 with IStorageManager

use of org.entando.entando.aps.system.services.storage.IStorageManager in project entando-core by entando.

the class DatabaseDumper method save.

protected void save(String filename, String folder, InputStream is) throws ApsSystemException {
    try {
        IStorageManager storageManager = this.getStorageManager();
        String path = folder + filename;
        storageManager.saveFile(path, true, is);
    } catch (Throwable t) {
        _logger.error("Error saving backup '{}'", filename, t);
        throw new ApsSystemException("Error saving backup '" + filename + "'", t);
    }
}
Also used : IStorageManager(org.entando.entando.aps.system.services.storage.IStorageManager) ApsSystemException(com.agiletec.aps.system.exception.ApsSystemException)

Aggregations

ApsSystemException (com.agiletec.aps.system.exception.ApsSystemException)1 IStorageManager (org.entando.entando.aps.system.services.storage.IStorageManager)1