diff --git a/source/java/org/alfresco/web/action/evaluator/EditFormEvaluator.java b/source/java/org/alfresco/web/action/evaluator/EditFormEvaluator.java
index b5271a80ef..84d320ec3a 100644
--- a/source/java/org/alfresco/web/action/evaluator/EditFormEvaluator.java
+++ b/source/java/org/alfresco/web/action/evaluator/EditFormEvaluator.java
@@ -17,16 +17,7 @@
* along with Alfresco. If not, see . */
package org.alfresco.web.action.evaluator;
-import javax.faces.context.FacesContext;
-
-import org.alfresco.model.WCMAppModel;
-import org.alfresco.service.ServiceRegistry;
-import org.alfresco.service.cmr.repository.Path;
-import org.alfresco.web.app.Application;
-import org.alfresco.web.app.servlet.FacesHelper;
-import org.alfresco.web.bean.NavigationBean;
import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.repository.Repository;
/**
* UI Action Evaluator - Edit Form in the Forms DataDictionary folder
@@ -42,16 +33,18 @@ public class EditFormEvaluator extends BaseActionEvaluator
*/
public boolean evaluate(final Node node)
{
- final FacesContext fc = FacesContext.getCurrentInstance();
- final ServiceRegistry services = Repository.getServiceRegistry(fc);
- final NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
-
- // get the path to the current name - compare last element with the Forms folder name
- final Path path = navigator.getCurrentNode().getNodePath();
- final Path.Element element = path.get(path.size() - 1);
- final String endPath = element.getPrefixedString(services.getNamespaceService());
-
- return (Application.getContentFormsFolderName(fc).equals(endPath) &&
- node.hasAspect(WCMAppModel.ASPECT_FORM));
+// // WCM
+// final FacesContext fc = FacesContext.getCurrentInstance();
+// final ServiceRegistry services = Repository.getServiceRegistry(fc);
+// final NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
+//
+// // get the path to the current name - compare last element with the Forms folder name
+// final Path path = navigator.getCurrentNode().getNodePath();
+// final Path.Element element = path.get(path.size() - 1);
+// final String endPath = element.getPrefixedString(services.getNamespaceService());
+//
+// return (Application.getContentFormsFolderName(fc).equals(endPath) &&
+// node.hasAspect(WCMAppModel.ASPECT_FORM));
+ return false;
}
}
diff --git a/source/java/org/alfresco/web/action/evaluator/EditWebFormEvaluator.java b/source/java/org/alfresco/web/action/evaluator/EditWebFormEvaluator.java
index 495a724b15..03214bd399 100644
--- a/source/java/org/alfresco/web/action/evaluator/EditWebFormEvaluator.java
+++ b/source/java/org/alfresco/web/action/evaluator/EditWebFormEvaluator.java
@@ -17,16 +17,7 @@
* along with Alfresco. If not, see . */
package org.alfresco.web.action.evaluator;
-import javax.faces.context.FacesContext;
-
-import org.alfresco.model.WCMAppModel;
-import org.alfresco.service.ServiceRegistry;
-import org.alfresco.service.cmr.repository.Path;
-import org.alfresco.web.app.Application;
-import org.alfresco.web.app.servlet.FacesHelper;
-import org.alfresco.web.bean.NavigationBean;
import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.repository.Repository;
/**
* UI Action Evaluator - Edit Web Form in the Web Forms DataDictionary folder
@@ -40,16 +31,18 @@ public class EditWebFormEvaluator extends BaseActionEvaluator
*/
public boolean evaluate(final Node node)
{
- final FacesContext fc = FacesContext.getCurrentInstance();
- final ServiceRegistry services = Repository.getServiceRegistry(fc);
- final NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
-
- // get the path to the current name - compare last element with the Web Forms folder name
- final Path path = navigator.getCurrentNode().getNodePath();
- final Path.Element element = path.get(path.size() - 1);
- final String endPath = element.getPrefixedString(services.getNamespaceService());
-
- return (Application.getWebContentFormsFolderName(fc).equals(endPath) &&
- node.hasAspect(WCMAppModel.ASPECT_FORM));
+// // WCM
+// final FacesContext fc = FacesContext.getCurrentInstance();
+// final ServiceRegistry services = Repository.getServiceRegistry(fc);
+// final NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
+//
+// // get the path to the current name - compare last element with the Web Forms folder name
+// final Path path = navigator.getCurrentNode().getNodePath();
+// final Path.Element element = path.get(path.size() - 1);
+// final String endPath = element.getPrefixedString(services.getNamespaceService());
+//
+// return (Application.getWebContentFormsFolderName(fc).equals(endPath) &&
+// node.hasAspect(WCMAppModel.ASPECT_FORM));
+ return false;
}
}
diff --git a/source/java/org/alfresco/web/action/evaluator/ManagePermissionIsMainStoreEvaluator.java b/source/java/org/alfresco/web/action/evaluator/ManagePermissionIsMainStoreEvaluator.java
index 6bc5c74fb7..e7adc2d883 100644
--- a/source/java/org/alfresco/web/action/evaluator/ManagePermissionIsMainStoreEvaluator.java
+++ b/source/java/org/alfresco/web/action/evaluator/ManagePermissionIsMainStoreEvaluator.java
@@ -19,10 +19,7 @@
package org.alfresco.web.action.evaluator;
-import org.alfresco.repo.avm.AVMNodeConverter;
import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.wcm.AVMUtil;
-import org.alfresco.web.bean.wcm.ManagePermissionsDialog;
/**
* UI Action Evaluator - Evaluates whether the change and remove permissions action should be visible.
@@ -42,11 +39,12 @@ public class ManagePermissionIsMainStoreEvaluator extends BaseActionEvaluator
public boolean evaluate(final Node node)
{
boolean result = false;
- final String path = AVMNodeConverter.ToAVMVersionPath(node.getNodeRef()).getSecond();
- if (!AVMUtil.isMainStore(AVMUtil.getStoreName(path)))
- {
- result = true;
- }
+// // WCM
+// final String path = AVMNodeConverter.ToAVMVersionPath(node.getNodeRef()).getSecond();
+// if (!AVMUtil.isMainStore(AVMUtil.getStoreName(path)))
+// {
+// result = true;
+// }
return result;
}
@@ -58,10 +56,11 @@ public class ManagePermissionIsMainStoreEvaluator extends BaseActionEvaluator
@Override
public boolean evaluate(final Object obj)
{
- if (obj instanceof ManagePermissionsDialog)
- {
- return ((ManagePermissionsDialog) obj).isRendered();
- }
+// // WCM
+// if (obj instanceof ManagePermissionsDialog)
+// {
+// return ((ManagePermissionsDialog) obj).isRendered();
+// }
return false;
}
diff --git a/source/java/org/alfresco/web/action/evaluator/RegenerateRenditionsEvaluator.java b/source/java/org/alfresco/web/action/evaluator/RegenerateRenditionsEvaluator.java
index 067fccebad..426c431c10 100644
--- a/source/java/org/alfresco/web/action/evaluator/RegenerateRenditionsEvaluator.java
+++ b/source/java/org/alfresco/web/action/evaluator/RegenerateRenditionsEvaluator.java
@@ -18,28 +18,7 @@
*/
package org.alfresco.web.action.evaluator;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import javax.faces.context.FacesContext;
-import javax.faces.model.SelectItem;
-
-import org.alfresco.model.WCMAppModel;
-import org.alfresco.service.ServiceRegistry;
-import org.alfresco.service.cmr.repository.Path;
-import org.alfresco.service.cmr.security.AccessStatus;
-import org.alfresco.service.cmr.security.PermissionService;
-import org.alfresco.wcm.webproject.WebProjectInfo;
-import org.alfresco.wcm.webproject.WebProjectService;
-import org.alfresco.web.app.Application;
-import org.alfresco.web.app.servlet.FacesHelper;
-import org.alfresco.web.bean.NavigationBean;
import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.repository.Repository;
-import org.alfresco.web.bean.wcm.WebProject;
-import org.alfresco.web.data.IDataContainer;
-import org.alfresco.web.data.QuickSort;
/**
* UI Action Evaluator for Regenerate Renditions in the Web Forms DataDictionary folder
diff --git a/source/java/org/alfresco/web/action/evaluator/ViewPermissionEvaluator.java b/source/java/org/alfresco/web/action/evaluator/ViewPermissionEvaluator.java
index 90e1d4de5c..4ffdcd9f59 100644
--- a/source/java/org/alfresco/web/action/evaluator/ViewPermissionEvaluator.java
+++ b/source/java/org/alfresco/web/action/evaluator/ViewPermissionEvaluator.java
@@ -18,10 +18,7 @@
*/
package org.alfresco.web.action.evaluator;
-import org.alfresco.repo.avm.AVMNodeConverter;
import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.wcm.AVMUtil;
-import org.alfresco.web.bean.wcm.ManagePermissionsDialog;
/**
* UI Action Evaluator - Evaluates whether the view permissions action should be visible.
@@ -42,11 +39,12 @@ public class ViewPermissionEvaluator extends BaseActionEvaluator
public boolean evaluate(final Node node)
{
boolean result = true;
- final String path = AVMNodeConverter.ToAVMVersionPath(node.getNodeRef()).getSecond();
- if (!AVMUtil.isMainStore(AVMUtil.getStoreName(path)))
- {
- result = false;
- }
+// // WCM
+// final String path = AVMNodeConverter.ToAVMVersionPath(node.getNodeRef()).getSecond();
+// if (!AVMUtil.isMainStore(AVMUtil.getStoreName(path)))
+// {
+// result = false;
+// }
return result;
}
@@ -59,10 +57,11 @@ public class ViewPermissionEvaluator extends BaseActionEvaluator
@Override
public boolean evaluate(Object obj)
{
- if (obj instanceof ManagePermissionsDialog)
- {
- return !((ManagePermissionsDialog) obj).isRendered();
- }
+// // WCM
+// if (obj instanceof ManagePermissionsDialog)
+// {
+// return !((ManagePermissionsDialog) obj).isRendered();
+// }
return false;
}
diff --git a/source/java/org/alfresco/web/app/servlet/command/CreateWebContentCommand.java b/source/java/org/alfresco/web/app/servlet/command/CreateWebContentCommand.java
deleted file mode 100644
index a66881a403..0000000000
--- a/source/java/org/alfresco/web/app/servlet/command/CreateWebContentCommand.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*
- * Copyright (C) 2005-2010 Alfresco Software Limited.
- *
- * This file is part of Alfresco
- *
- * Alfresco is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Alfresco 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with Alfresco. If not, see .
- */
-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.springframework.extensions.surf.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.wizard.WizardManager;
-import org.alfresco.web.ui.wcm.component.UIUserSandboxes;
-
-/**
- * Command to execute the Create Web Content wizard via url.
- *
- * Arguments: webproject = the GUID of the webproject to create the content in
- * sandbox = the sandbox to create the content in
- * form = optional form name as the default selection in the content wizard
- *
- * @author Kevin Roast
- */
-public class CreateWebContentCommand extends BaseUIActionCommand
-{
- public static final String PROP_WEBPROJECTID = "webproject";
- public static final String PROP_SANDBOX = "sandbox";
- public static final String PROP_FORMNAME = "form"; // optional
-
- private static final String[] PROPERTIES = new String[] {
- PROP_SERVLETCONTEXT, PROP_REQUEST, PROP_RESPONSE, PROP_WEBPROJECTID, PROP_SANDBOX, PROP_FORMNAME};
-
- /**
- * @see org.alfresco.web.app.servlet.command.Command#execute(org.alfresco.service.ServiceRegistry, java.util.Map)
- */
- public Object execute(ServiceRegistry serviceRegistry, Map properties)
- {
- ServletContext sc = (ServletContext)properties.get(PROP_SERVLETCONTEXT);
- ServletRequest req = (ServletRequest)properties.get(PROP_REQUEST);
- ServletResponse res = (ServletResponse)properties.get(PROP_RESPONSE);
- FacesContext fc = FacesHelper.getFacesContext(req, res, sc);
- AVMBrowseBean avmBrowseBean = (AVMBrowseBean)FacesHelper.getManagedBean(fc, AVMBrowseBean.BEAN_NAME);
- NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
-
- // setup context from url args in properties map
- String webProjectId = (String)properties.get(PROP_WEBPROJECTID);
- ParameterCheck.mandatoryString(PROP_WEBPROJECTID, webProjectId);
- String sandbox = (String)properties.get(PROP_SANDBOX);
- ParameterCheck.mandatoryString(PROP_SANDBOX, sandbox);
- navigator.setCurrentNodeId(webProjectId);
- avmBrowseBean.setSandbox(sandbox);
-
- // form name is optional, but if set we need to init the wizard manager with params
- String formName = (String)properties.get(PROP_FORMNAME);
- if (formName != null && formName.length() != 0)
- {
- WizardManager manager = (WizardManager)FacesHelper.getManagedBean(fc, WizardManager.BEAN_NAME);
- Map params = new HashMap(1, 1.0f);
- params.put(UIUserSandboxes.PARAM_FORM_NAME, formName);
- manager.setupParameters(params);
- }
-
- NavigationHandler navigationHandler = fc.getApplication().getNavigationHandler();
- navigationHandler.handleNavigation(fc, null, "wizard:createWebContent");
- String viewId = fc.getViewRoot().getViewId();
- try
- {
- sc.getRequestDispatcher(BaseServlet.FACES_SERVLET + viewId).forward(req, res);
- }
- catch (Exception e)
- {
- throw new AlfrescoRuntimeException("Unable to forward to viewId: " + viewId, e);
- }
-
- return null;
- }
-
- /**
- * @see org.alfresco.web.app.servlet.command.Command#getPropertyNames()
- */
- public String[] getPropertyNames()
- {
- return PROPERTIES;
- }
-}
diff --git a/source/java/org/alfresco/web/app/servlet/command/EditWebContentCommand.java b/source/java/org/alfresco/web/app/servlet/command/EditWebContentCommand.java
index 3150b68083..344cf8bbb8 100644
--- a/source/java/org/alfresco/web/app/servlet/command/EditWebContentCommand.java
+++ b/source/java/org/alfresco/web/app/servlet/command/EditWebContentCommand.java
@@ -18,11 +18,8 @@
*/
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;
@@ -30,13 +27,10 @@ import javax.servlet.ServletResponse;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.service.ServiceRegistry;
-import org.springframework.extensions.surf.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.wizard.WizardManager;
-import org.alfresco.web.ui.wcm.component.UIUserSandboxes;
+import org.springframework.extensions.surf.util.ParameterCheck;
/**
* Command to execute the Edit Web Content (xforms) wizard via url.
@@ -65,7 +59,7 @@ public class EditWebContentCommand extends BaseUIActionCommand
ServletRequest req = (ServletRequest)properties.get(PROP_REQUEST);
ServletResponse res = (ServletResponse)properties.get(PROP_RESPONSE);
FacesContext fc = FacesHelper.getFacesContext(req, res, sc);
- AVMBrowseBean avmBrowseBean = (AVMBrowseBean)FacesHelper.getManagedBean(fc, AVMBrowseBean.BEAN_NAME);
+// AVMBrowseBean avmBrowseBean = (AVMBrowseBean)FacesHelper.getManagedBean(fc, AVMBrowseBean.BEAN_NAME); // WCM
NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
// setup context from url args in properties map
@@ -76,9 +70,10 @@ public class EditWebContentCommand extends BaseUIActionCommand
String path = (String)properties.get(PROP_PATH);
ParameterCheck.mandatoryString(PROP_PATH, path);
navigator.setCurrentNodeId(webProjectId);
- avmBrowseBean.setSandbox(sandbox);
- // navigation handler is called directly in this method
- avmBrowseBean.setupEditAction(path);
+// // WCM
+// avmBrowseBean.setSandbox(sandbox);
+// // navigation handler is called directly in this method
+// avmBrowseBean.setupEditAction(path);
String viewId = fc.getViewRoot().getViewId();
try
diff --git a/source/java/org/alfresco/web/app/servlet/command/ManageTaskDialogCommand.java b/source/java/org/alfresco/web/app/servlet/command/ManageTaskDialogCommand.java
index b633a7a285..3c679bf1fa 100644
--- a/source/java/org/alfresco/web/app/servlet/command/ManageTaskDialogCommand.java
+++ b/source/java/org/alfresco/web/app/servlet/command/ManageTaskDialogCommand.java
@@ -18,8 +18,6 @@
*/
package org.alfresco.web.app.servlet.command;
-import java.io.IOException;
-import java.util.HashMap;
import java.util.Map;
import javax.faces.application.NavigationHandler;
@@ -30,14 +28,10 @@ import javax.servlet.ServletResponse;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.service.ServiceRegistry;
-import org.springframework.extensions.surf.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.wizard.WizardManager;
import org.alfresco.web.bean.workflow.WorkflowBean;
-import org.alfresco.web.ui.wcm.component.UIUserSandboxes;
+import org.springframework.extensions.surf.util.ParameterCheck;
/**
* Command to execute the Manage Task dialog via url.
diff --git a/source/java/org/alfresco/web/app/servlet/command/UIActionCommandProcessor.java b/source/java/org/alfresco/web/app/servlet/command/UIActionCommandProcessor.java
index b21d4ea52d..b25aaa57ce 100644
--- a/source/java/org/alfresco/web/app/servlet/command/UIActionCommandProcessor.java
+++ b/source/java/org/alfresco/web/app/servlet/command/UIActionCommandProcessor.java
@@ -22,7 +22,6 @@ import java.io.PrintWriter;
import java.util.HashMap;
import java.util.Map;
-import javax.faces.context.FacesContext;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -30,7 +29,6 @@ import javax.servlet.http.HttpServletResponse;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.service.ServiceRegistry;
import org.alfresco.web.app.AlfrescoNavigationHandler;
-import org.alfresco.web.app.servlet.FacesHelper;
import org.alfresco.web.bean.workflow.WorkflowUtil;
import org.alfresco.web.ui.common.Utils;
@@ -63,7 +61,8 @@ public static final String PARAM_CONTAINER = "container";
static
{
// add our commands to the command registry
- CommandFactory.getInstance().registerCommand("createwebcontent", CreateWebContentCommand.class);
+// // WCM
+// CommandFactory.getInstance().registerCommand("createwebcontent", CreateWebContentCommand.class);
CommandFactory.getInstance().registerCommand("editwebcontent", EditWebContentCommand.class);
CommandFactory.getInstance().registerCommand(MANAGE_TASK, ManageTaskDialogCommand.class);
CommandFactory.getInstance().registerCommand("editcontentprops", EditContentPropertiesCommand.class);
diff --git a/source/java/org/alfresco/web/bean/actions/handlers/CopyToWebProjectHandler.java b/source/java/org/alfresco/web/bean/actions/handlers/CopyToWebProjectHandler.java
deleted file mode 100644
index 8aeb116ffa..0000000000
--- a/source/java/org/alfresco/web/bean/actions/handlers/CopyToWebProjectHandler.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * Copyright (C) 2005-2010 Alfresco Software Limited.
- *
- * This file is part of Alfresco
- *
- * Alfresco is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Alfresco 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with Alfresco. If not, see .
- */
-package org.alfresco.web.bean.actions.handlers;
-
-import java.io.Serializable;
-import java.text.MessageFormat;
-import java.util.Map;
-
-import javax.faces.context.FacesContext;
-
-import org.alfresco.repo.action.executer.CopyToWebProjectActionExecuter;
-import org.alfresco.repo.avm.AVMNodeConverter;
-import org.alfresco.service.cmr.repository.NodeRef;
-import org.alfresco.service.cmr.repository.StoreRef;
-import org.alfresco.util.Pair;
-import org.alfresco.web.app.Application;
-import org.alfresco.web.bean.repository.Repository;
-import org.alfresco.web.bean.wcm.AVMUtil;
-import org.alfresco.web.bean.wcm.WebProject;
-import org.alfresco.web.bean.wizard.IWizardBean;
-
-/**
- * Action handler implementation for the "copy-to-web-project" action.
- *
- * @author gavinc
- */
-public class CopyToWebProjectHandler extends BaseActionHandler
-{
- private static final long serialVersionUID = -6725139406646296868L;
-
- public String getJSPPath()
- {
- return getJSPPath(CopyToWebProjectActionExecuter.NAME);
- }
-
- public void prepareForSave(Map actionProps,
- Map repoProps)
- {
- // get the destination selected by the user
- NodeRef destNodeRef = (NodeRef)actionProps.get(PROP_DESTINATION);
-
- // if the destination is a workspace node the use the root of the
- // webapp for the web project
- if (destNodeRef.getStoreRef().getProtocol().equals(StoreRef.PROTOCOL_WORKSPACE))
- {
- WebProject webProject = new WebProject(destNodeRef);
- String storeName = AVMUtil.buildUserMainStoreName(webProject.getStoreId(),
- Application.getCurrentUser(FacesContext.getCurrentInstance()).getUserName());
-
- String rootPath = AVMUtil.buildStoreWebappPath(storeName, AVMUtil.DIR_ROOT);
- destNodeRef = AVMNodeConverter.ToNodeRef(-1, rootPath);
- }
-
- // setup the destination parameter
- repoProps.put(CopyToWebProjectActionExecuter.PARAM_DESTINATION_FOLDER, destNodeRef);
- }
-
- public void prepareForEdit(Map actionProps,
- Map repoProps)
- {
- NodeRef destNodeRef = (NodeRef)repoProps.get(CopyToWebProjectActionExecuter.PARAM_DESTINATION_FOLDER);
- actionProps.put(PROP_DESTINATION, destNodeRef);
- }
-
- public String generateSummary(FacesContext context, IWizardBean wizard,
- Map actionProps)
- {
- NodeRef dest = (NodeRef)actionProps.get(PROP_DESTINATION);
-
- String folder = "/";
- String webProject = "?";
-
- if (dest.getStoreRef().getProtocol().equals(StoreRef.PROTOCOL_AVM))
- {
- // get the destination path
- Pair avmNode = AVMNodeConverter.ToAVMVersionPath(dest);
- String avmPath = avmNode.getSecond();
- folder = avmPath.substring(avmPath.indexOf(AVMUtil.DIR_ROOT)+4);
-
- // get the destination web project name
- NodeRef webProjectNode = Repository.getServiceRegistry(context).getWebProjectService().getWebProjectNodeFromPath(avmPath);
- webProject = Repository.getNameForNode(
- Repository.getServiceRegistry(context).getNodeService(), webProjectNode);
- }
- else if (dest.getStoreRef().getProtocol().equals(StoreRef.PROTOCOL_AVM))
- {
- // get the destination web project name
- webProject = Repository.getNameForNode(
- Repository.getServiceRegistry(context).getNodeService(), dest);
- }
-
- return MessageFormat.format(Application.getMessage(context, "action_copy_to_web_project_folder"),
- new Object[] {folder, webProject});
- }
-
-}
diff --git a/source/java/org/alfresco/web/bean/admin/AdminNodeBrowseBean.java b/source/java/org/alfresco/web/bean/admin/AdminNodeBrowseBean.java
index 641ebcb426..86b977cc6c 100644
--- a/source/java/org/alfresco/web/bean/admin/AdminNodeBrowseBean.java
+++ b/source/java/org/alfresco/web/bean/admin/AdminNodeBrowseBean.java
@@ -22,7 +22,6 @@ import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
-import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -33,9 +32,7 @@ import javax.faces.model.ListDataModel;
import javax.faces.model.SelectItem;
import org.alfresco.error.AlfrescoRuntimeException;
-import org.alfresco.repo.domain.PropertyValue;
import org.alfresco.repo.transaction.RetryingTransactionHelper.RetryingTransactionCallback;
-import org.alfresco.service.cmr.avm.AVMService;
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
import org.alfresco.service.cmr.dictionary.DictionaryService;
import org.alfresco.service.cmr.dictionary.PropertyDefinition;
@@ -114,7 +111,8 @@ public class AdminNodeBrowseBean implements Serializable
transient private SearchService searchService;
transient private NamespaceService namespaceService;
transient private PermissionService permissionService;
- transient private AVMService avmService;
+// // WCM
+// transient private AVMService avmService;
/**
* @param transactionService transaction service
@@ -218,23 +216,24 @@ public class AdminNodeBrowseBean implements Serializable
return permissionService;
}
- /**
- * @param avmService AVM service
- */
- public void setAVMService(AVMService avmService)
- {
- this.avmService = avmService;
- }
-
- private AVMService getAVMService()
- {
- if (avmService == null)
- {
- avmService = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getAVMService();
- }
- return avmService;
- }
-
+// // WCM
+// /**
+// * @param avmService AVM service
+// */
+// public void setAVMService(AVMService avmService)
+// {
+// this.avmService = avmService;
+// }
+//
+// private AVMService getAVMService()
+// {
+// if (avmService == null)
+// {
+// avmService = Repository.getServiceRegistry(FacesContext.getCurrentInstance()).getAVMService();
+// }
+// return avmService;
+// }
+//
/**
* Gets the list of repository stores
*
@@ -425,17 +424,18 @@ public class AdminNodeBrowseBean implements Serializable
{
if (permissionMasks == null)
{
- if (nodeRef.getStoreRef().getProtocol().equals(StoreRef.PROTOCOL_AVM))
- {
- List nodePermissions = new ArrayList(getPermissionService().getAllSetPermissions(nodeRef.getStoreRef()));
- permissionMasks = new ListDataModel(nodePermissions);
- }
- else
- {
+// // WCM
+// if (nodeRef.getStoreRef().getProtocol().equals(StoreRef.PROTOCOL_AVM))
+// {
+// List nodePermissions = new ArrayList(getPermissionService().getAllSetPermissions(nodeRef.getStoreRef()));
+// permissionMasks = new ListDataModel(nodePermissions);
+// }
+// else
+// {
List noReadPermissions = new ArrayList(1);
noReadPermissions.add(new NoStoreMask());
permissionMasks = new ListDataModel(noReadPermissions);
- }
+// }
}
return permissionMasks;
}
@@ -476,41 +476,43 @@ public class AdminNodeBrowseBean implements Serializable
}
return assocs;
}
-
- public boolean getInAVMStore()
- {
- return nodeRef.getStoreRef().getProtocol().equals(StoreRef.PROTOCOL_AVM);
- }
-
- public DataModel getAVMStoreProperties()
- {
- if (avmStoreProps == null)
- {
- // work out the store name from current nodeRef
- String store = nodeRef.getStoreRef().getIdentifier();
- Map props = getAVMService().getStoreProperties(store);
- List