Search in sources :

Example 1 with DataImportSummaryProxy

use of org.openforis.collect.remoting.service.dataimport.DataImportSummaryProxy in project collect by openforis.

the class DataImportService method getSummary.

@Secured(CLEANSING)
public DataImportSummaryProxy getSummary() {
    if (summaryJob != null) {
        DataImportSummary summary = summaryJob.getSummary();
        SessionState sessionState = sessionManager.getSessionState();
        Locale locale = sessionState.getLocale();
        DataImportSummaryProxy proxy = new DataImportSummaryProxy(summary, locale);
        return proxy;
    } else {
        return null;
    }
}
Also used : Locale(java.util.Locale) SessionState(org.openforis.collect.web.session.SessionState) DataImportSummary(org.openforis.collect.io.data.DataImportSummary) DataImportSummaryProxy(org.openforis.collect.remoting.service.dataimport.DataImportSummaryProxy) Secured(org.springframework.security.access.annotation.Secured)

Aggregations

Locale (java.util.Locale)1 DataImportSummary (org.openforis.collect.io.data.DataImportSummary)1 DataImportSummaryProxy (org.openforis.collect.remoting.service.dataimport.DataImportSummaryProxy)1 SessionState (org.openforis.collect.web.session.SessionState)1 Secured (org.springframework.security.access.annotation.Secured)1