Search in sources :

Example 1 with SamplingDesignSummariesProxy

use of org.openforis.collect.model.proxy.SamplingDesignSummariesProxy in project collect by openforis.

the class SamplingDesignService method loadBySurvey.

protected SamplingDesignSummariesProxy loadBySurvey(boolean work, int surveyId, int offset, int maxRecords) {
    SamplingDesignSummaries summaries;
    CollectSurvey survey;
    if (work) {
        survey = surveyManager.loadSurvey(surveyId);
    } else {
        survey = surveyManager.getById(surveyId);
    }
    summaries = samplingDesignManager.loadBySurvey(surveyId, offset, maxRecords);
    return new SamplingDesignSummariesProxy(survey, summaries);
}
Also used : SamplingDesignSummaries(org.openforis.collect.model.SamplingDesignSummaries) CollectSurvey(org.openforis.collect.model.CollectSurvey) SamplingDesignSummariesProxy(org.openforis.collect.model.proxy.SamplingDesignSummariesProxy)

Aggregations

CollectSurvey (org.openforis.collect.model.CollectSurvey)1 SamplingDesignSummaries (org.openforis.collect.model.SamplingDesignSummaries)1 SamplingDesignSummariesProxy (org.openforis.collect.model.proxy.SamplingDesignSummariesProxy)1