class DetailsFormPopulator implements CompetitionSetupSubsectionFormPopulator {

	@Override
	public CompetitionSetupForm populateForm(CompetitionResource competitionResource, Optional<Long> objectId) {
		DetailsForm competitionSetupForm = new DetailsForm();

		competitionSetupForm.setMaxProjectDuration(convertIntegerToBigDecimal(competitionResource.getMaxProjectDuration()));
		competitionSetupForm.setMinProjectDuration(convertIntegerToBigDecimal(competitionResource.getMinProjectDuration()));
		competitionSetupForm.setUseResubmissionQuestion(competitionResource.getUseResubmissionQuestion());

		return competitionSetupForm;
	}

}