Search in sources :

Example 1 with LocalizationExcelImporter

use of com.runwaysdk.localization.LocalizationExcelImporter in project geoprism-registry by terraframe.

the class LocalizationService method importSpreadsheetInRequest.

@Request(RequestType.SESSION)
public void importSpreadsheetInRequest(String sessionId, MultipartFileParameter file) {
    ServiceFactory.getRolePermissionService().enforceSRA();
    try {
        LocalizationExcelImporter importer = new LocalizationExcelImporter(buildConfig(), file.getInputStream());
        importer.doImport();
    } catch (IOException e) {
        throw new RuntimeException(e);
    }
}
Also used : LocalizationExcelImporter(com.runwaysdk.localization.LocalizationExcelImporter) IOException(java.io.IOException) Request(com.runwaysdk.session.Request)

Aggregations

LocalizationExcelImporter (com.runwaysdk.localization.LocalizationExcelImporter)1 Request (com.runwaysdk.session.Request)1 IOException (java.io.IOException)1