Search in sources :

Example 1 with TaxonSummariesProxy

use of org.openforis.collect.metamodel.proxy.TaxonSummariesProxy in project collect by openforis.

the class SpeciesService method loadTaxonSummaries.

@Secured("ROLE_ADMIN")
public TaxonSummariesProxy loadTaxonSummaries(int taxonomyId, int offset, int maxRecords) {
    CollectSurvey survey = getActiveSurvey();
    TaxonSummaries summaries = speciesManager.loadTaxonSummaries(survey, taxonomyId, offset, maxRecords);
    return new TaxonSummariesProxy(summaries);
}
Also used : CollectSurvey(org.openforis.collect.model.CollectSurvey) TaxonSummaries(org.openforis.collect.metamodel.TaxonSummaries) TaxonSummariesProxy(org.openforis.collect.metamodel.proxy.TaxonSummariesProxy) Secured(org.springframework.security.access.annotation.Secured)

Aggregations

TaxonSummaries (org.openforis.collect.metamodel.TaxonSummaries)1 TaxonSummariesProxy (org.openforis.collect.metamodel.proxy.TaxonSummariesProxy)1 CollectSurvey (org.openforis.collect.model.CollectSurvey)1 Secured (org.springframework.security.access.annotation.Secured)1