net.anotheria.anosite.gen.asexperiment.action.NewExperimentAction Maven / Gradle / Ivy
The newest version!
/**
********************************************************************************
*** NewExperimentAction.java ***
*** generated by AnoSiteGenerator (ASG), Version: 4.2.2 ***
*** Copyright (C) 2005 - 2025 Anotheria.net, www.anotheria.net ***
*** All Rights Reserved. ***
********************************************************************************
*** Don't edit this code, if you aren't sure ***
*** that you do exactly know what you are doing! ***
*** It's better to invest time in the generator, as into the generated code. ***
********************************************************************************
*/
package net.anotheria.anosite.gen.asexperiment.action;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import net.anotheria.maf.action.ActionCommand;
import net.anotheria.maf.action.ActionMapping;
import java.util.List;
import java.util.ArrayList;
import net.anotheria.anosite.gen.asexperiment.bean.EditExperimentFB;
import net.anotheria.asg.util.helper.cmsview.CMSViewHelperUtil;
import net.anotheria.asg.util.helper.cmsview.CMSViewHelperRegistry;
import net.anotheria.asg.util.bean.LabelValueBean;
import net.anotheria.anosite.gen.shared.data.ExperimentDistributionEnum;
public class NewExperimentAction extends ShowExperimentsAction{
public ActionCommand anoDocExecute(ActionMapping mapping, HttpServletRequest req, HttpServletResponse res) throws Exception{
EditExperimentFB form = new EditExperimentFB() ;
form.setId("");
// Generated by: class net.anotheria.asg.generator.view.action.ModuleActionsGenerator.generateEnumerationPropertyHandling
//enumeration ExperimentDistribution
ExperimentDistributionEnum[] ExperimentDistribution_values = ExperimentDistributionEnum.values();
List ExperimentDistribution_valuesListValues = new ArrayList(ExperimentDistribution_values.length);
for (ExperimentDistributionEnum element : ExperimentDistribution_values) {
LabelValueBean bean = new LabelValueBean(""+element.getValue(), element.name());
ExperimentDistribution_valuesListValues.add(bean);
}
form.setDistributionCollection(ExperimentDistribution_valuesListValues);
addBeanToRequest(req, "EditASExperimentExperimentForm" , form);
addBeanToRequest(req, "save.label.prefix", "Save");
addBeanToRequest(req, "apply.label.prefix" , "Apply");
addBeanToRequest(req, "transfer.label.prefix", "Transfer");
addBeanToRequest(req, "sortTextData.label.prefix", "Sort Text Data");
addBeanToRequest(req, "objectInfoString" , "none");
addFieldExplanations(req, null);
return mapping.success();
} //
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy