diff --git a/source/java/org/alfresco/web/app/servlet/command/EditWebContentCommand.java b/source/java/org/alfresco/web/app/servlet/command/EditWebContentCommand.java new file mode 100644 index 0000000000..8bb2586dd2 --- /dev/null +++ b/source/java/org/alfresco/web/app/servlet/command/EditWebContentCommand.java @@ -0,0 +1,111 @@ +/* + * Copyright (C) 2005-2007 Alfresco Software Limited. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + * As a special exception to the terms and conditions of version 2.0 of + * the GPL, you may redistribute this Program in connection with Free/Libre + * and Open Source Software ("FLOSS") applications as described in Alfresco's + * FLOSS exception. You should have recieved a copy of the text describing + * the FLOSS exception, and it is also available here: + * http://www.alfresco.com/legal/licensing + */ +package org.alfresco.web.app.servlet.command; + +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +import javax.faces.application.NavigationHandler; +import javax.faces.context.FacesContext; +import javax.servlet.ServletContext; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; + +import org.alfresco.error.AlfrescoRuntimeException; +import org.alfresco.service.ServiceRegistry; +import org.alfresco.util.ParameterCheck; +import org.alfresco.web.app.servlet.BaseServlet; +import org.alfresco.web.app.servlet.FacesHelper; +import org.alfresco.web.bean.NavigationBean; +import org.alfresco.web.bean.wcm.AVMBrowseBean; +import org.alfresco.web.bean.wcm.AVMEditBean; +import org.alfresco.web.bean.wizard.WizardManager; +import org.alfresco.web.ui.wcm.component.UIUserSandboxes; + +/** + * Command to execute the Edit Web Content (xforms) wizard via url. + *
+ * Arguments: webproject = the GUID of the webproject to create the content in
+ * sandbox = the sandbox to create the content in
+ * path = path to the form instance data for edit
+ *
+ * @author Kevin Roast
+ */
+public class EditWebContentCommand extends BaseUIActionCommand
+{
+ public static final String PROP_WEBPROJECTID = "webproject";
+ public static final String PROP_SANDBOX = "sandbox";
+ public static final String PROP_PATH = "path";
+
+ private static final String[] PROPERTIES = new String[] {
+ PROP_SERVLETCONTEXT, PROP_REQUEST, PROP_RESPONSE, PROP_WEBPROJECTID, PROP_SANDBOX, PROP_PATH};
+
+ /**
+ * @see org.alfresco.web.app.servlet.command.Command#execute(org.alfresco.service.ServiceRegistry, java.util.Map)
+ */
+ public Object execute(ServiceRegistry serviceRegistry, Map