use of org.openforis.collect.model.SurveySummary in project collect by openforis.
the class SurveyDao method loadSurveySummaryByName.
public SurveySummary loadSurveySummaryByName(String name, boolean temporary) {
Record record = dsl().select().from(OFC_SURVEY).where(OFC_SURVEY.NAME.equal(name).and(OFC_SURVEY.TEMPORARY.equal(temporary))).fetchOne();
SurveySummary result = processSurveySummaryRow(record);
return result;
}
use of org.openforis.collect.model.SurveySummary in project collect by openforis.
the class SurveyDao method loadSurveySummary.
public SurveySummary loadSurveySummary(int id) {
Record record = dsl().select().from(OFC_SURVEY).where(OFC_SURVEY.ID.equal(id)).fetchOne();
SurveySummary result = processSurveySummaryRow(record);
return result;
}
use of org.openforis.collect.model.SurveySummary in project collect by openforis.
the class SurveyDao method loadSurveySummaryByUri.
public SurveySummary loadSurveySummaryByUri(String uri, boolean temporary) {
Record record = dsl().select().from(OFC_SURVEY).where(OFC_SURVEY.URI.equal(uri).and(OFC_SURVEY.TEMPORARY.equal(temporary))).fetchOne();
SurveySummary result = processSurveySummaryRow(record);
return result;
}
use of org.openforis.collect.model.SurveySummary in project collect by openforis.
the class ModelService method getSurveySummaries.
public List<SurveySummary> getSurveySummaries() {
String lang = getActiveLanguageCode();
User loggedUser = sessionManager.getLoggedUser();
List<SurveySummary> summaries = surveyManager.getSurveySummaries(lang, loggedUser);
return summaries;
}
use of org.openforis.collect.model.SurveySummary in project collect by openforis.
the class SurveyWorkDao method loadSurveySummaryByName.
@Transactional
public SurveySummary loadSurveySummaryByName(String name) {
Record record = dsl().select().from(OFC_SURVEY_WORK).where(OFC_SURVEY_WORK.NAME.equal(name)).fetchOne();
SurveySummary result = processSurveySummaryRow(record);
return result;
}
Aggregations