All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
net.anotheria.anosite.gen.aswebdata.action.MultiOpBoxsScriptsAction Maven / Gradle / Ivy
/**
********************************************************************************
*** MultiOpBoxsScriptsAction.java ***
*** generated by AnoSiteGenerator (ASG), Version: 2.6.3 ***
*** Copyright (C) 2005 - 2010 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.aswebdata.action;
import java.util.List;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.anotheria.maf.action.ActionForward;
import net.anotheria.maf.action.ActionMapping;
import net.anotheria.maf.bean.FormBean;
import net.anotheria.anosite.gen.aswebdata.data.BoxFactory;
import net.anotheria.anosite.gen.aswebdata.data.Box;
import net.anotheria.anosite.gen.aswebdata.bean.ScriptsElementFB;
import net.anotheria.anosite.gen.aswebdata.bean.ScriptsQuickAddFB;
import net.anotheria.anosite.gen.assitedata.data.Script;
import net.anotheria.anosite.gen.assitedata.data.ScriptSortType;
import net.anotheria.webutils.bean.LabelValueBean;
import net.anotheria.anodoc.data.NoSuchDocumentException;
import net.anotheria.util.StringUtils;
import net.anotheria.asg.exception.ASGRuntimeException;
public class MultiOpBoxsScriptsAction extends BaseBoxAction{
// Generated by: class net.anotheria.asg.generator.view.action.ModuleActionsGenerator.generateContainerMultiOpAction
public ActionForward anoDocExecute(ActionMapping mapping, FormBean af, HttpServletRequest req, HttpServletResponse res) throws Exception{
String path = stripPath(mapping.getPath());
if (path.equals("aswebdataBoxScriptsShow"))
return aswebdataBoxScriptsShow(mapping, af, req, res);
if (path.equals("aswebdataBoxScriptsAdd"))
return aswebdataBoxScriptsAdd(mapping, af, req, res);
if (path.equals("aswebdataBoxScriptsDelete"))
return aswebdataBoxScriptsDelete(mapping, af, req, res);
if (path.equals("aswebdataBoxScriptsMove"))
return aswebdataBoxScriptsMove(mapping, af, req, res);
if (path.equals("aswebdataBoxScriptsQuickAdd"))
return aswebdataBoxScriptsQuickAdd(mapping, af, req, res);
throw new IllegalArgumentException("Unknown path: "+path);
}
// Generated by: class net.anotheria.asg.generator.view.action.ModuleActionsGenerator.generateListShowActionMethod
public ActionForward aswebdataBoxScriptsShow(ActionMapping mapping, FormBean af, HttpServletRequest req, HttpServletResponse res) throws Exception{
String id = getStringParameter(req, "ownerId");
Box box = getASWebDataService().getBox(id);
addBeanToRequest(req, "ownerId", id);
checkBoxs(box, req);
ScriptsElementFB form = new ScriptsElementFB() ;
form.setPosition(-1);
form.setOwnerId(box.getId());
addBeanToRequest(req, "aswebdataBoxScriptsElementForm", form);
ScriptsQuickAddFB quickAddForm = new ScriptsQuickAddFB() ;
quickAddForm.setOwnerId(box.getId());
addBeanToRequest(req, "aswebdataBoxScriptsQuickAddForm", quickAddForm);
//link script to ASSiteData.Script
List