diff --git a/config/alfresco/web-client-application-context.xml b/config/alfresco/web-client-application-context.xml
index e1f60687e7..5bfe6e9791 100644
--- a/config/alfresco/web-client-application-context.xml
+++ b/config/alfresco/web-client-application-context.xml
@@ -15,11 +15,9 @@
classpath:alfresco/web-client-config-wizards.xmlclasspath:alfresco/web-client-config-properties.xmlclasspath:alfresco/web-client-config-navigation.xml
- classpath:alfresco/web-client-config-wcm.xmlclasspath:alfresco/web-client-config-actions.xmlclasspath:alfresco/web-client-config-forum-actions.xml
- classpath:alfresco/web-client-config-wcm-actions.xmlclasspath:alfresco/web-client-config-workflow-actions.xmlclasspath:alfresco/extension/web-client-config-custom.xmljar:*!/META-INF/web-client-config-custom.xml
@@ -114,10 +112,6 @@
-
- alfresco:/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.wcm_content_forms.childname}/${form.name}/cm:strings
- alfresco:/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.wcm_content_forms.childname}/cm:strings
-
alfresco:/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.content_forms.childname}/${form.name}/cm:stringsalfresco:/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.content_forms.childname}/cm:strings
diff --git a/config/alfresco/web-client-config-wcm-actions.xml b/config/alfresco/web-client-config-wcm-actions.xml
deleted file mode 100644
index 114e00a8c0..0000000000
--- a/config/alfresco/web-client-config-wcm-actions.xml
+++ /dev/null
@@ -1,519 +0,0 @@
-
-
-
-
-
-
-
-
- Write
-
- org.alfresco.web.action.evaluator.WCMWorkflowEvaluator
- edit
- /images/icons/edit_icon.gif
- #{AVMBrowseBean.setupEditAction}
-
- #{actionContext.id}
-
-
-
-
-
-
- Delete
-
- org.alfresco.web.action.evaluator.WCMWorkflowEvaluator
- delete
- /images/icons/delete.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:deleteAvmFile
-
- #{actionContext.id}
-
-
-
-
-
-
- Delete
-
- org.alfresco.web.action.evaluator.WCMWorkflowEvaluator
- delete
- /images/icons/delete.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:deleteAvmFileBrowse
-
- #{actionContext.id}
-
-
-
-
-
-
- Delete
-
- org.alfresco.web.action.evaluator.WCMWorkflowEvaluator
- delete
- /images/icons/delete.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:deleteAvmFolder
-
- #{actionContext.id}
-
-
-
-
-
-
- Delete
-
- org.alfresco.web.action.evaluator.WCMWorkflowLayeredFolderEvaluator
- delete
- /images/icons/delete.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:deleteAvmFolderBrowse
-
- #{actionContext.id}
-
-
-
-
-
-
- Delete
-
- org.alfresco.web.action.evaluator.WCMUnlockEvaluator
- unlock
- /images/icons/unlock.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:unlockAvmFile
-
- #{actionContext.id}
-
-
-
-
-
-
- Write
-
- org.alfresco.web.action.evaluator.WCMConflictEvaluator
- submit
- /images/icons/submit.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:submitSandboxItems
-
- #{actionContext.id}
-
-
-
-
-
-
- Write
-
- org.alfresco.web.action.evaluator.WCMWorkflowDeletedEvaluator
- revert
- /images/icons/revert.gif
- #{AVMBrowseBean.revertNode}
-
- #{actionContext.id}
-
-
-
-
-
- folder_preview
- /images/icons/preview_website.gif
- #{actionContext.previewUrl}
- new
-
-
-
-
- file_preview
- /images/icons/preview_website.gif
- #{actionContext.previewUrl}
- new
-
-
-
-
-
- CreateChildren
-
- org.alfresco.web.action.evaluator.WCMStagingReadonlyEvaluator
- sandbox_create
- /images/icons/new_content.gif
- wizard:createWebContent
-
-
-
-
-
- CreateChildren
-
- org.alfresco.web.action.evaluator.WCMStagingReadonlyEvaluator
- create_folder
- /images/icons/create_space.gif
- dialog:createAvmFolder
-
-
-
-
-
- CreateChildren
-
- org.alfresco.web.action.evaluator.WCMContentManagerEvaluator
- create_webapp
- /images/icons/create_webapp.gif
- dialog:createWebappFolder
-
-
-
-
-
- CreateChildren
-
- org.alfresco.web.action.evaluator.WCMStagingReadonlyEvaluator
- add_content
- /images/icons/add.gif
- dialog:addAvmContent
- #{AddAvmContentDialog.start}
-
-
-
-
-
- CreateChildren
-
- org.alfresco.web.action.evaluator.WCMStagingReadonlyEvaluator
- import_website_content
- /images/icons/import_website.gif
- dialog:importContent
- #{ImportWebsiteDialog.start}
-
-
-
-
-
- Write
-
- org.alfresco.web.action.evaluator.WCMWorkflowEvaluator
- update
- /images/icons/update.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:updateAvmFile
-
- #{actionContext.id}
-
-
-
-
-
-
- Read
-
- view_details
- /images/icons/View_details.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:showFileDetails
-
- #{actionContext.id}
-
-
-
-
-
-
- Read
-
- view_details
- /images/icons/View_details.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:showFolderDetails
-
- #{actionContext.id}
-
-
-
-
-
-
- ChangePermissions
-
- invite_website_users
- /images/icons/invite.gif
- wizard:inviteWebUsers
-
- #{BrowseBean.setupSpaceAction}
-
- #{actionContext.id}
-
-
-
-
-
-
- Write,CreateChildren
-
- edit_website
- /images/icons/edit_website.gif
- wizard:editWebsite
- #{BrowseBean.setupSpaceAction}
-
- #{actionContext.id}
-
-
-
-
-
-
- Delete
-
- org.alfresco.web.action.evaluator.WCMWorkflowLayeredFolderEvaluator
- cut
- /images/icons/cut.gif
- #{ClipboardBean.cutNode}
-
- #{actionContext.nodeRef}
-
-
-
-
-
-
-
- Read
-
- org.alfresco.web.action.evaluator.WCMLayeredFolderEvaluator
- copy
- /images/icons/copy.gif
- #{ClipboardBean.copyNode}
-
- #{actionContext.nodeRef}
-
-
-
-
-
-
-
- Delete,Write,CreateChildren
-
- delete_all_deploy_reports
- /images/icons/delete_deploy_reports.gif
- dialog:deleteDeploymentReports
- #{BrowseBean.setupSpaceAction}
-
- #{actionContext.id}
-
-
-
-
-
-
- CreateChildren
-
- org.alfresco.web.action.evaluator.WCMStagingOnlyEvaluator
- create_layered_folder
- /images/icons/create_space.gif
- dialog:createLayeredFolder
-
-
-
-
-
- Delete
-
- org.alfresco.web.action.evaluator.WCMDeleteLayeredFolderEvaluator
- delete_layered_folder
- /images/icons/delete.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:deleteAvmFolderBrowse
-
- #{actionContext.id}
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
- false
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/config/alfresco/web-client-config-wcm.xml b/config/alfresco/web-client-config-wcm.xml
deleted file mode 100644
index 41078f2394..0000000000
--- a/config/alfresco/web-client-config-wcm.xml
+++ /dev/null
@@ -1,188 +0,0 @@
-
-
-
-
-
-
-
- wcmwf:submit
-
-
-
- wcmwf:changerequest, wcmwf:submitdirect
-
-
-
- 25
-
-
-
-
- 2
-
-
-
-
- 2
-
-
-
-
-
-
-
-
- bold,italic,underline,separator,forecolor,backcolor,separator,link,unlink,image,code
-
-
- bold,italic,underline,strikethrough,separator,fontselect,fontsizeselect,code
- link,unlink,image,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,undo,redo,separator,forecolor,backcolor
- 400
-
-
-
- bold,italic,underline,strikethrough,separator,fontselect,fontsizeselect,separator,code
- link,unlink,image,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,undo,redo,separator,forecolor,backcolor
- 600
- exact
- true
- p
- true
- table,paste
- tablecontrols
-
-
-
- wcm:avmcontent,wcm:avmfolder
- table
-
-
- wcm:avmcontent,wcm:avmfolder
-
-
-
-
-
-
- wcm:avmcontent
- image/*
-
-
-
- wcm:avmcontent,wcm:avmfolder
- text/html
-
-
- wcm:avmfolder
- *
-
-
- wcm:avmcontent
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/config/alfresco/web-client-config-workflow-actions.xml b/config/alfresco/web-client-config-workflow-actions.xml
index 065a6a30e9..f9b12876d7 100644
--- a/config/alfresco/web-client-config-workflow-actions.xml
+++ b/config/alfresco/web-client-config-workflow-actions.xml
@@ -96,20 +96,6 @@
-
-
- Write
-
- org.alfresco.web.action.evaluator.WCMWorkflowEvaluator
- edit_properties
- /images/icons/edit_properties.gif
- dialog:editAvmFileProperties
- #{AVMBrowseBean.setupContentAction}
-
- #{actionContext.id}
-
-
-
org.alfresco.web.action.evaluator.CheckinDocEvaluator
@@ -162,54 +148,6 @@
-
-
- org.alfresco.web.action.evaluator.WCMWorkflowEvaluator
- folder_preview
- /images/icons/preview_website.gif
- #{actionContext.previewUrl}
- new
-
-
-
-
- org.alfresco.web.action.evaluator.WCMWorkflowEvaluator
- file_preview
- /images/icons/preview_website.gif
- #{actionContext.previewUrl}
- new
-
-
-
-
-
- Read
-
- org.alfresco.web.action.evaluator.WCMWorkflowEvaluator
- view_details
- /images/icons/View_details.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:workflowShowFileDetails
-
- #{actionContext.id}
-
-
-
-
-
-
- Read
-
- org.alfresco.web.action.evaluator.WCMWorkflowEvaluator
- view_details
- /images/icons/View_details.gif
- #{AVMBrowseBean.setupContentAction}
- dialog:showFolderDetails
-
- #{actionContext.id}
-
-
-
@@ -237,54 +175,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -337,40 +227,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
activiti$cloudWorkflow
diff --git a/source/java/org/alfresco/web/action/evaluator/WCMConflictEvaluator.java b/source/java/org/alfresco/web/action/evaluator/WCMConflictEvaluator.java
deleted file mode 100644
index a7968b378b..0000000000
--- a/source/java/org/alfresco/web/action/evaluator/WCMConflictEvaluator.java
+++ /dev/null
@@ -1,47 +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.action.evaluator;
-
-import org.alfresco.service.cmr.avmsync.AVMDifference;
-import org.alfresco.web.bean.repository.Node;
-
-public class WCMConflictEvaluator extends WCMWorkflowDeletedEvaluator
-{
-
- /* (non-Javadoc)
- * @see org.alfresco.web.action.evaluator.WCMWorkflowDeletedEvaluator#evaluate(org.alfresco.web.bean.repository.Node)
- */
- public boolean evaluate(final Node node)
- {
- if (!super.evaluate(node))
- {
- return false;
- }
- Integer diff = (Integer)node.getProperties().get("avmDiff");
- if (diff == null)
- {
- return true;
- }
- if (diff == AVMDifference.CONFLICT)
- {
- return false;
- }
- return true;
- }
-}
diff --git a/source/java/org/alfresco/web/action/evaluator/WCMContentManagerEvaluator.java b/source/java/org/alfresco/web/action/evaluator/WCMContentManagerEvaluator.java
deleted file mode 100644
index c09c4c55d8..0000000000
--- a/source/java/org/alfresco/web/action/evaluator/WCMContentManagerEvaluator.java
+++ /dev/null
@@ -1,45 +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.action.evaluator;
-
-import javax.faces.context.FacesContext;
-
-import org.alfresco.wcm.webproject.WebProjectService;
-import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.repository.Repository;
-
-/**
- * Evaluator to return true if the current user is a content manager for the current website.
- *
- * @author Gavin Cornwell
- */
-public class WCMContentManagerEvaluator extends BaseActionEvaluator
-{
- private static final long serialVersionUID = 2588681368739253602L;
-
- /**
- * @return true if the item is not locked by another user
- */
- public boolean evaluate(final Node node)
- {
- FacesContext facesContext = FacesContext.getCurrentInstance();
- WebProjectService webProjectService = Repository.getServiceRegistry(facesContext).getWebProjectService();
- return webProjectService.isContentManager(node.getNodeRef());
- }
-}
diff --git a/source/java/org/alfresco/web/action/evaluator/WCMDeleteLayeredFolderEvaluator.java b/source/java/org/alfresco/web/action/evaluator/WCMDeleteLayeredFolderEvaluator.java
deleted file mode 100644
index aa8eb6f9d2..0000000000
--- a/source/java/org/alfresco/web/action/evaluator/WCMDeleteLayeredFolderEvaluator.java
+++ /dev/null
@@ -1,58 +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.action.evaluator;
-
-import javax.faces.context.FacesContext;
-
-import org.alfresco.repo.avm.AVMNodeConverter;
-import org.alfresco.repo.avm.AVMNodeType;
-import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
-import org.alfresco.service.cmr.avm.AVMService;
-import org.alfresco.util.Pair;
-import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.repository.Repository;
-import org.alfresco.web.bean.wcm.AVMUtil;
-
-/**
- * Evaluator to return if an item path is within a staging area sandbox and is a
- * layered directory with a primary indirection.
- *
- * @author Gavin Cornwell
- */
-public class WCMDeleteLayeredFolderEvaluator extends BaseActionEvaluator
-{
- private static final long serialVersionUID = -130286568044703852L;
-
- /**
- * @return true if the item is not locked by another user
- */
- public boolean evaluate(final Node node)
- {
- FacesContext facesContext = FacesContext.getCurrentInstance();
- AVMService avmService = Repository.getServiceRegistry(facesContext).getAVMService();
-
- Pair p = AVMNodeConverter.ToAVMVersionPath(node.getNodeRef());
- AVMNodeDescriptor nodeDesc = avmService.lookup(-1, p.getSecond());
-
- // allow delete if we are in the main store and the node is a layeredfolder
- // with a primary indirection
- return (AVMUtil.isMainStore(AVMUtil.getStoreName(p.getSecond())) &&
- ((nodeDesc.getType() == AVMNodeType.LAYERED_DIRECTORY && nodeDesc.isPrimary())));
- }
-}
diff --git a/source/java/org/alfresco/web/action/evaluator/WCMLayeredFolderEvaluator.java b/source/java/org/alfresco/web/action/evaluator/WCMLayeredFolderEvaluator.java
deleted file mode 100644
index b278400378..0000000000
--- a/source/java/org/alfresco/web/action/evaluator/WCMLayeredFolderEvaluator.java
+++ /dev/null
@@ -1,55 +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.action.evaluator;
-
-import javax.faces.context.FacesContext;
-
-import org.alfresco.repo.avm.AVMNodeConverter;
-import org.alfresco.repo.avm.AVMNodeType;
-import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
-import org.alfresco.service.cmr.avm.AVMService;
-import org.alfresco.util.Pair;
-import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.repository.Repository;
-
-/**
- * UI Action Evaluator - return true if the node is not a layered folder or if
- * the layered folder is not a primary indirection
- *
- * @author Gavin Cornwell
- */
-public class WCMLayeredFolderEvaluator extends WCMWorkflowEvaluator
-{
- private static final long serialVersionUID = 8507016785287243649L;
-
- /**
- * @see org.alfresco.web.action.ActionEvaluator#evaluate(org.alfresco.web.bean.repository.Node)
- */
- public boolean evaluate(final Node node)
- {
- FacesContext facesContext = FacesContext.getCurrentInstance();
- AVMService avmService = Repository.getServiceRegistry(facesContext).getAVMService();
-
- Pair p = AVMNodeConverter.ToAVMVersionPath(node.getNodeRef());
- AVMNodeDescriptor nodeDesc = avmService.lookup(-1, p.getSecond());
-
- // don't allow action if its a 'layeredfolder' and a primary indirection
- return !(nodeDesc.getType() == AVMNodeType.LAYERED_DIRECTORY && nodeDesc.isPrimary());
- }
-}
diff --git a/source/java/org/alfresco/web/action/evaluator/WCMLockEvaluator.java b/source/java/org/alfresco/web/action/evaluator/WCMLockEvaluator.java
deleted file mode 100644
index 13991506ff..0000000000
--- a/source/java/org/alfresco/web/action/evaluator/WCMLockEvaluator.java
+++ /dev/null
@@ -1,68 +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.action.evaluator;
-
-import javax.faces.context.FacesContext;
-
-import org.alfresco.repo.avm.AVMNodeConverter;
-import org.alfresco.service.cmr.avm.locking.AVMLockingService;
-import org.alfresco.web.app.Application;
-import org.alfresco.web.app.servlet.FacesHelper;
-import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.repository.Repository;
-import org.alfresco.web.bean.wcm.AVMBrowseBean;
-import org.alfresco.web.bean.wcm.AVMUtil;
-import org.alfresco.web.bean.wcm.WebProject;
-
-/**
- * Evaluator to return if a item is accessable due to a WCM user level lock.
- *
- * @author Kevin Roast
- */
-public class WCMLockEvaluator extends BaseActionEvaluator
-{
- private static final long serialVersionUID = -816856825850017138L;
-
- /**
- * @return true if the item is not locked by another user
- */
- public boolean evaluate(final Node node)
- {
- boolean result = false;
- final String path = AVMNodeConverter.ToAVMVersionPath(node.getNodeRef()).getSecond();
- if (!AVMUtil.isMainStore(AVMUtil.getStoreName(path)))
- {
- final FacesContext fc = FacesContext.getCurrentInstance();
- final AVMLockingService avmLockService = Repository.getServiceRegistry(fc).getAVMLockingService();
- final AVMBrowseBean avmBrowseBean = (AVMBrowseBean)FacesHelper.getManagedBean(fc, AVMBrowseBean.BEAN_NAME);
-
- final String username = Application.getCurrentUser(fc).getUserName();
-
- WebProject webProject = avmBrowseBean.getWebProject();
- if (webProject == null)
- {
- // when in a workflow context, the WebProject may not be accurate on the browsebean
- // so get the web project associated with the path
- webProject = new WebProject(path);
- }
- result = avmLockService.hasAccess(webProject.getNodeRef(), path, username);
- }
- return result;
- }
-}
diff --git a/source/java/org/alfresco/web/action/evaluator/WCMStagingOnlyEvaluator.java b/source/java/org/alfresco/web/action/evaluator/WCMStagingOnlyEvaluator.java
deleted file mode 100644
index 33cbe3a710..0000000000
--- a/source/java/org/alfresco/web/action/evaluator/WCMStagingOnlyEvaluator.java
+++ /dev/null
@@ -1,42 +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.action.evaluator;
-
-import org.alfresco.repo.avm.AVMNodeConverter;
-import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.wcm.AVMUtil;
-
-/**
- * Evaluator to return if an item path is within a staging area sandbox.
- *
- * @author Gavin Cornwell
- */
-public class WCMStagingOnlyEvaluator extends BaseActionEvaluator
-{
- private static final long serialVersionUID = -130286568044703852L;
-
- /**
- * @return true if the item is not locked by another user
- */
- public boolean evaluate(final Node node)
- {
- String path = AVMNodeConverter.ToAVMVersionPath(node.getNodeRef()).getSecond();
- return AVMUtil.isMainStore(AVMUtil.getStoreName(path));
- }
-}
diff --git a/source/java/org/alfresco/web/action/evaluator/WCMStagingReadonlyEvaluator.java b/source/java/org/alfresco/web/action/evaluator/WCMStagingReadonlyEvaluator.java
deleted file mode 100644
index 1613e7db7b..0000000000
--- a/source/java/org/alfresco/web/action/evaluator/WCMStagingReadonlyEvaluator.java
+++ /dev/null
@@ -1,42 +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.action.evaluator;
-
-import org.alfresco.repo.avm.AVMNodeConverter;
-import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.wcm.AVMUtil;
-
-/**
- * Evaluator to return if a item path is not within a staging area sandbox.
- *
- * @author Kevin Roast
- */
-public class WCMStagingReadonlyEvaluator extends BaseActionEvaluator
-{
- private static final long serialVersionUID = 2588681368739253602L;
-
- /**
- * @return true if the item is not locked by another user
- */
- public boolean evaluate(final Node node)
- {
- String path = AVMNodeConverter.ToAVMVersionPath(node.getNodeRef()).getSecond();
- return !AVMUtil.isMainStore(AVMUtil.getStoreName(path));
- }
-}
diff --git a/source/java/org/alfresco/web/action/evaluator/WCMUnlockEvaluator.java b/source/java/org/alfresco/web/action/evaluator/WCMUnlockEvaluator.java
deleted file mode 100644
index 0dae015053..0000000000
--- a/source/java/org/alfresco/web/action/evaluator/WCMUnlockEvaluator.java
+++ /dev/null
@@ -1,74 +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.action.evaluator;
-
-import javax.faces.context.FacesContext;
-
-import org.alfresco.repo.avm.AVMNodeConverter;
-import org.alfresco.service.cmr.avm.AVMService;
-import org.alfresco.service.cmr.avm.locking.AVMLockingService;
-import org.alfresco.util.Pair;
-import org.alfresco.web.app.servlet.FacesHelper;
-import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.repository.Repository;
-import org.alfresco.web.bean.wcm.AVMBrowseBean;
-import org.alfresco.web.bean.wcm.AVMUtil;
-import org.alfresco.web.bean.wcm.WebProject;
-
-/**
- * UI Action Evaluator - return true if the node is not part of an in-progress
- * WCM workflow and is locked
- *
- * @author Gavin Cornwell
- */
-public class WCMUnlockEvaluator extends BaseActionEvaluator
-{
- /**
- * @see org.alfresco.web.action.ActionEvaluator#evaluate(org.alfresco.web.bean.repository.Node)
- */
- public boolean evaluate(final Node node)
- {
- boolean proceed = false;
-
- FacesContext context = FacesContext.getCurrentInstance();
- AVMService avmService = Repository.getServiceRegistry(context).getAVMService();
- AVMLockingService avmLockingService = Repository.getServiceRegistry(context).getAVMLockingService();
- AVMBrowseBean avmBrowseBean = (AVMBrowseBean)FacesHelper.getManagedBean(context, AVMBrowseBean.BEAN_NAME);
-
- Pair p = AVMNodeConverter.ToAVMVersionPath(node.getNodeRef());
- String path = p.getSecond();
-
- if (avmService.lookup(p.getFirst(), path) != null)
- {
- WebProject webProject = avmBrowseBean.getWebProject();
- if (webProject == null)
- {
- // when in a workflow context, the WebProject may not be accurate on the browsebean
- // so get the web project associated with the path
- webProject = new WebProject(path);
- }
-
- // determine if the item is locked
- String lockOwner = avmLockingService.getLockOwner(webProject.getStoreId(), AVMUtil.getStoreRelativePath(path));
- proceed = (lockOwner != null);
- }
-
- return proceed;
- }
-}
diff --git a/source/java/org/alfresco/web/action/evaluator/WCMWorkflowDeletedEvaluator.java b/source/java/org/alfresco/web/action/evaluator/WCMWorkflowDeletedEvaluator.java
deleted file mode 100644
index dbc3791cff..0000000000
--- a/source/java/org/alfresco/web/action/evaluator/WCMWorkflowDeletedEvaluator.java
+++ /dev/null
@@ -1,69 +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.action.evaluator;
-
-import javax.faces.context.FacesContext;
-
-import org.alfresco.web.app.servlet.FacesHelper;
-import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.wcm.AVMBrowseBean;
-import org.alfresco.web.bean.wcm.AVMNode;
-import org.alfresco.web.bean.wcm.AVMUtil;
-import org.alfresco.web.bean.wcm.WebProject;
-
-/**
- * UI Action Evaluator - return true if the node is not part of an in-progress WCM workflow.
- * No check for deleted items is made in this evaluator. @see WCMWorkflowEvaluator
- *
- * @author Kevin Roast
- */
-public class WCMWorkflowDeletedEvaluator extends WCMLockEvaluator
-{
- private static final long serialVersionUID = -4341942166433855200L;
-
- /**
- * @see org.alfresco.web.action.ActionEvaluator#evaluate(org.alfresco.web.bean.repository.Node)
- */
- public boolean evaluate(final Node node)
- {
- boolean proceed = false;
- if (super.evaluate(node))
- {
- final FacesContext fc = FacesContext.getCurrentInstance();
- final AVMBrowseBean avmBrowseBean = (AVMBrowseBean)FacesHelper.getManagedBean(fc, AVMBrowseBean.BEAN_NAME);
-
- WebProject webProject = avmBrowseBean.getWebProject();
- if (webProject == null || webProject.hasWorkflow())
- {
- String sandbox = AVMUtil.getStoreName(node.getPath());
-
- // evaluate to true if we are within a workflow store (i.e. list of resources in the task
- // dialog) or not part of an already in-progress workflow
- proceed = (AVMUtil.isWorkflowStore(sandbox) ||
- !((AVMNode)node).isInActiveWorkflow(sandbox));
- }
- else
- {
- // if the WebProject has no workflow then we can proceed without checking further
- proceed = true;
- }
- }
- return proceed;
- }
-}
\ No newline at end of file
diff --git a/source/java/org/alfresco/web/action/evaluator/WCMWorkflowEvaluator.java b/source/java/org/alfresco/web/action/evaluator/WCMWorkflowEvaluator.java
deleted file mode 100644
index c1e030f0d7..0000000000
--- a/source/java/org/alfresco/web/action/evaluator/WCMWorkflowEvaluator.java
+++ /dev/null
@@ -1,67 +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.action.evaluator;
-
-import javax.faces.context.FacesContext;
-
-import org.alfresco.web.app.servlet.FacesHelper;
-import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.wcm.AVMBrowseBean;
-import org.alfresco.web.bean.wcm.AVMNode;
-import org.alfresco.web.bean.wcm.AVMUtil;
-import org.alfresco.web.bean.wcm.WebProject;
-
-/**
- * UI Action Evaluator - return true if the node is not part of an in-progress WCM workflow.
- *
- * @author Kevin Roast
- */
-public class WCMWorkflowEvaluator extends WCMLockEvaluator
-{
- private static final long serialVersionUID = -5847066921917855781L;
-
- /**
- * @see org.alfresco.web.action.ActionEvaluator#evaluate(org.alfresco.web.bean.repository.Node)
- */
- public boolean evaluate(final Node node)
- {
- boolean proceed = false;
- if (super.evaluate(node))
- {
- final FacesContext fc = FacesContext.getCurrentInstance();
- final AVMBrowseBean avmBrowseBean = (AVMBrowseBean)FacesHelper.getManagedBean(fc, AVMBrowseBean.BEAN_NAME);
-
- WebProject webProject = avmBrowseBean.getWebProject();
- if (webProject == null || webProject.hasWorkflow())
- {
- String sandbox = AVMUtil.getStoreName(node.getPath());
-
- proceed = ((AVMUtil.isWorkflowStore(sandbox) ||
- !((AVMNode)node).isInActiveWorkflow(sandbox)) &&
- !((AVMNode)node).isDeleted());
- }
- else
- {
- // if the WebProject has no workflow then we can proceed without checking further
- proceed = true;
- }
- }
- return proceed;
- }
-}
\ No newline at end of file
diff --git a/source/java/org/alfresco/web/action/evaluator/WCMWorkflowLayeredFolderEvaluator.java b/source/java/org/alfresco/web/action/evaluator/WCMWorkflowLayeredFolderEvaluator.java
deleted file mode 100644
index 558803c591..0000000000
--- a/source/java/org/alfresco/web/action/evaluator/WCMWorkflowLayeredFolderEvaluator.java
+++ /dev/null
@@ -1,66 +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.action.evaluator;
-
-import javax.faces.context.FacesContext;
-
-import org.alfresco.repo.avm.AVMNodeConverter;
-import org.alfresco.repo.avm.AVMNodeType;
-import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
-import org.alfresco.service.cmr.avm.AVMService;
-import org.alfresco.util.Pair;
-import org.alfresco.web.bean.repository.Node;
-import org.alfresco.web.bean.repository.Repository;
-
-/**
- * UI Action Evaluator - return true if the node is not a layered folder or if
- * the layered folder is not a primary indirection
- *
- * @author Gavin Cornwell
- */
-public class WCMWorkflowLayeredFolderEvaluator extends WCMWorkflowEvaluator
-{
- private static final long serialVersionUID = 8507016785287243649L;
-
- /**
- * @see org.alfresco.web.action.ActionEvaluator#evaluate(org.alfresco.web.bean.repository.Node)
- */
- public boolean evaluate(final Node node)
- {
- boolean proceed = super.evaluate(node);
-
- if (proceed)
- {
- FacesContext facesContext = FacesContext.getCurrentInstance();
- AVMService avmService = Repository.getServiceRegistry(facesContext).getAVMService();
-
- Pair p = AVMNodeConverter.ToAVMVersionPath(node.getNodeRef());
- AVMNodeDescriptor nodeDesc = avmService.lookup(-1, p.getSecond());
- int type = nodeDesc.getType();
-
- // if the node is a 'layeredfolder' and a primary indirection don't allow
- if (type == AVMNodeType.LAYERED_DIRECTORY && nodeDesc.isPrimary())
- {
- proceed = false;
- }
- }
-
- return proceed;
- }
-}
diff --git a/source/java/org/alfresco/web/bean/clipboard/AVMClipboardItem.java b/source/java/org/alfresco/web/bean/clipboard/AVMClipboardItem.java
deleted file mode 100644
index dc88362269..0000000000
--- a/source/java/org/alfresco/web/bean/clipboard/AVMClipboardItem.java
+++ /dev/null
@@ -1,295 +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.clipboard;
-
-import java.util.List;
-import java.util.Map;
-
-import javax.faces.context.FacesContext;
-import javax.transaction.UserTransaction;
-
-import org.alfresco.model.WCMAppModel;
-import org.alfresco.repo.avm.AVMNodeConverter;
-import org.alfresco.service.cmr.avm.AVMExistsException;
-import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
-import org.alfresco.service.cmr.avm.AVMService;
-import org.alfresco.service.cmr.model.FileExistsException;
-import org.alfresco.service.cmr.repository.CrossRepositoryCopyService;
-import org.alfresco.service.cmr.repository.NodeRef;
-import org.alfresco.service.cmr.repository.StoreRef;
-import org.alfresco.wcm.util.WCMUtil;
-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.Repository;
-import org.alfresco.web.bean.wcm.AVMBrowseBean;
-
-/**
- * Class representing an 'avm' store protocol clipboard item
- *
- * @author Kevin Roast
- */
-public class AVMClipboardItem extends AbstractClipboardItem
-{
- private static final long serialVersionUID = 2550867083821268131L;
-
- private static final String AVM_PASTE_VIEW_ID = "/jsp/wcm/browse-sandbox.jsp";
- private static final String WORKSPACE_PASTE_VIEW_ID = "/jsp/browse/browse.jsp";
-
- /**
- * @param ref
- * @param mode
- */
- public AVMClipboardItem(NodeRef ref, ClipboardStatus mode, List customPasteViewIds)
- {
- super(ref, mode, customPasteViewIds);
- }
-
- /**
- * @see org.alfresco.web.bean.clipboard.ClipboardItem#supportsLink()
- */
- public boolean supportsLink()
- {
- return false;
- }
-
- /**
- * @see org.alfresco.web.bean.clipboard.ClipboardItem#canCopyToViewId(java.lang.String)
- */
- public boolean canCopyToViewId(String viewId)
- {
- if (super.canCopyToViewId(viewId) || AVM_PASTE_VIEW_ID.equals(viewId))
- {
- AVMBrowseBean avmBrowseBean = (AVMBrowseBean)FacesHelper.getManagedBean(FacesContext.getCurrentInstance(), AVMBrowseBean.BEAN_NAME);
- String destPath = avmBrowseBean.getCurrentPath();
-
- if (WCMUtil.isStagingStore(WCMUtil.getStoreName(destPath)))
- {
- return false;
- }
-
- return true;
- }
- else
- {
- return (super.canCopyToViewId(viewId) || WORKSPACE_PASTE_VIEW_ID.equals(viewId));
- }
- }
-
- /**
- * @see org.alfresco.web.bean.clipboard.ClipboardItem#canMoveToViewId(java.lang.String)
- */
- public boolean canMoveToViewId(String viewId)
- {
- return (AVM_PASTE_VIEW_ID.equals(viewId));
- }
-
- /**
- * @see org.alfresco.web.bean.clipboard.ClipboardItem#paste(javax.faces.context.FacesContext, java.lang.String, int)
- */
- public boolean paste(FacesContext fc, String viewId, int action) throws Throwable
- {
- if (AVM_PASTE_VIEW_ID.equals(viewId))
- {
- AVMBrowseBean avmBrowseBean = (AVMBrowseBean)FacesHelper.getManagedBean(fc, AVMBrowseBean.BEAN_NAME);
-
- String destPath = avmBrowseBean.getCurrentPath();
- NodeRef destRef = AVMNodeConverter.ToNodeRef(-1, destPath);
- String sourcePath = AVMNodeConverter.ToAVMVersionPath(getNodeRef()).getSecond();
-
- //FileFolderService fileFolderService = getServiceRegistry().getFileFolderService();
-
- // initial name to attempt the copy of the item with
- String name = getName();
-
- boolean operationComplete = false;
- while (operationComplete == false)
- {
- UserTransaction tx = null;
- try
- {
- // attempt each copy/paste in its own transaction
- tx = Repository.getUserTransaction(fc);
- tx.begin();
- if (getMode() == ClipboardStatus.COPY)
- {
- // COPY operation
- if (logger.isDebugEnabled())
- logger.debug("Attempting to copy node path: " + sourcePath + " into path: " + destPath);
-
- // copy the avm path
- // first check that we are not attempting to copy a duplicate into the same parent
- if (AVMNodeConverter.ExtendAVMPath(destPath, name).equals(sourcePath))
- {
- // manually change the name if this occurs
- String copyOf = Application.getMessage(fc, MSG_COPY_OF);
- name = copyOf + ' ' + name;
- }
- /*fileFolderService.copy(
- getNodeRef(),
- destRef,
- name);*/
- getAvmService().copy(-1, sourcePath, destPath, name);
-
- // ETHREEOH-2110
- AVMNodeDescriptor desc = getAvmService().lookup(-1, destPath + "/" + name);
- recursiveFormCheck(desc);
-
- // if we get here without an exception, the clipboard copy operation was successful
- operationComplete = true;
- }
- else
- {
- // MOVE operation
- if (logger.isDebugEnabled())
- logger.debug("Attempting to move node path: " + sourcePath + " into path: " + destRef);
-
- // move the avm path
- /*fileFolderService.move(
- getNodeRef(),
- destRef,
- name);*/
- getAvmService().rename(AVMNodeConverter.SplitBase(sourcePath)[0], getName(),
- destPath, name);
-
- // if we get here without an exception, the clipboard move operation was successful
- operationComplete = true;
- }
- }
- catch (FileExistsException fileExistsErr)
- {
- if (getMode() != ClipboardStatus.COPY)
- {
- // we should not rename an item when it is being moved - so exit
- throw fileExistsErr;
- }
- }
- catch (AVMExistsException avmExistsErr)
- {
- if (getMode() != ClipboardStatus.COPY)
- {
- // we should not rename an item when it is being moved - so exit
- throw avmExistsErr;
- }
- }
- catch (Throwable e)
- {
- // some other type of exception occured - rollback and exit
- throw e;
- }
- finally
- {
- // rollback if the operation didn't complete
- if (operationComplete == false)
- {
- try { if (tx != null) {tx.rollback();} } catch (Exception tex) {}
- String copyOf = Application.getMessage(fc, MSG_COPY_OF);
- name = copyOf + ' ' + name;
- }
- else
- {
- // commit the transaction
- tx.commit();
- }
- }
- }
- return operationComplete;
- }
- else if (WORKSPACE_PASTE_VIEW_ID.equals(viewId))
- {
- NavigationBean navigator = (NavigationBean)FacesHelper.getManagedBean(fc, NavigationBean.BEAN_NAME);
- NodeRef destRef = new NodeRef(Repository.getStoreRef(), navigator.getCurrentNodeId());
-
- CrossRepositoryCopyService crossRepoCopyService = getServiceRegistry().getCrossRepositoryCopyService();
-
- // initial name to attempt the copy of the item with
- String name = getName();
-
- boolean operationComplete = false;
- while (operationComplete == false)
- {
- UserTransaction tx = null;
- try
- {
- // attempt each copy/paste in its own transaction
- tx = Repository.getUserTransaction(fc);
- tx.begin();
- if (getMode() == ClipboardStatus.COPY)
- {
- // COPY operation
- if (logger.isDebugEnabled())
- logger.debug("Attempting to copy node: " + getNodeRef() + " into node ID: " + destRef.toString());
-
- // inter-store copy operation
- crossRepoCopyService.copy(getNodeRef(), destRef, name);
-
- if (destRef.getStoreRef().getProtocol().equals(StoreRef.PROTOCOL_AVM))
- {
- // ETHREEOH-2110
- String destPath = AVMNodeConverter.ToAVMVersionPath(destRef).getSecond();
- AVMNodeDescriptor desc = getAvmService().lookup(-1, destPath + "/" + name);
- recursiveFormCheck(desc);
- }
-
- // if we get here without an exception, the clipboard copy operation was successful
- operationComplete = true;
- }
- else
- {
- // this should not occur as the canMoveToViewId() will return false
- throw new Exception("Move operation not supported between stores.");
- }
- }
- catch (FileExistsException fileExistsErr)
- {
- if (getMode() != ClipboardStatus.COPY)
- {
- // we should not rename an item when it is being moved - so exit
- throw fileExistsErr;
- }
- }
- catch (Throwable e)
- {
- // some other type of exception occured - rollback and exit
- throw e;
- }
- finally
- {
- // rollback if the operation didn't complete
- if (operationComplete == false)
- {
- try { if (tx != null) {tx.rollback();} } catch (Exception tex) {}
- String copyOf = Application.getMessage(fc, MSG_COPY_OF);
- name = copyOf + ' ' + name;
- }
- else
- {
- // commit the transaction
- tx.commit();
- }
- }
- }
- return operationComplete;
- }
- else
- {
- return false;
- }
- }
-}
diff --git a/source/java/org/alfresco/web/bean/wcm/AVMBrowseBean.java b/source/java/org/alfresco/web/bean/wcm/AVMBrowseBean.java
deleted file mode 100644
index 59ed52a7e1..0000000000
--- a/source/java/org/alfresco/web/bean/wcm/AVMBrowseBean.java
+++ /dev/null
@@ -1,2180 +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.wcm;
-
-import java.io.FileNotFoundException;
-import java.text.MessageFormat;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-import java.util.ResourceBundle;
-
-import javax.faces.application.FacesMessage;
-import javax.faces.component.UIParameter;
-import javax.faces.component.html.HtmlCommandButton;
-import javax.faces.context.FacesContext;
-import javax.faces.event.ActionEvent;
-import javax.faces.model.SelectItem;
-import javax.transaction.UserTransaction;
-
-import org.alfresco.config.JNDIConstants;
-import org.alfresco.model.ContentModel;
-import org.alfresco.model.WCMAppModel;
-import org.alfresco.repo.avm.AVMNodeConverter;
-import org.alfresco.repo.avm.AVMNodeType;
-import org.alfresco.repo.web.scripts.FileTypeImageUtils;
-import org.alfresco.service.cmr.action.ActionService;
-import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
-import org.alfresco.service.cmr.avm.AVMService;
-import org.alfresco.service.cmr.avmsync.AVMDifference;
-import org.alfresco.service.cmr.avmsync.AVMSyncService;
-import org.alfresco.service.cmr.repository.FileTypeImageSize;
-import org.alfresco.service.cmr.repository.NodeRef;
-import org.alfresco.service.cmr.repository.NodeService;
-import org.alfresco.service.cmr.repository.StoreRef;
-import org.alfresco.service.cmr.repository.TemplateImageResolver;
-import org.alfresco.service.cmr.repository.TemplateService;
-import org.alfresco.service.cmr.search.LimitBy;
-import org.alfresco.service.cmr.search.ResultSet;
-import org.alfresco.service.cmr.search.ResultSetRow;
-import org.alfresco.service.cmr.search.SearchParameters;
-import org.alfresco.service.cmr.search.SearchService;
-import org.alfresco.service.cmr.security.AccessStatus;
-import org.alfresco.service.cmr.security.PermissionService;
-import org.alfresco.service.cmr.workflow.WorkflowService;
-import org.alfresco.wcm.asset.AssetInfo;
-import org.alfresco.wcm.sandbox.SandboxInfo;
-import org.alfresco.wcm.sandbox.SandboxService;
-import org.alfresco.wcm.util.WCMUtil;
-import org.alfresco.wcm.webproject.WebProjectInfo;
-import org.alfresco.wcm.webproject.WebProjectService;
-import org.alfresco.web.app.Application;
-import org.alfresco.web.app.context.IContextListener;
-import org.alfresco.web.app.context.UIContextService;
-import org.alfresco.web.app.servlet.DownloadContentServlet;
-import org.alfresco.web.app.servlet.FacesHelper;
-import org.alfresco.web.bean.BrowseBean;
-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.repository.User;
-import org.alfresco.web.bean.search.SearchContext;
-import org.alfresco.web.forms.FormInstanceData;
-import org.alfresco.web.forms.FormNotFoundException;
-import org.alfresco.web.forms.FormsService;
-import org.alfresco.web.forms.Rendition;
-import org.alfresco.web.ui.common.Utils;
-import org.alfresco.web.ui.common.component.IBreadcrumbHandler;
-import org.alfresco.web.ui.common.component.UIActionLink;
-import org.alfresco.web.ui.common.component.UIBreadcrumb;
-import org.alfresco.web.ui.common.component.UIModeList;
-import org.alfresco.web.ui.common.component.data.UIRichList;
-import org.alfresco.web.ui.wcm.WebResources;
-import org.alfresco.web.ui.wcm.component.UISandboxSnapshots;
-import org.alfresco.web.ui.wcm.component.UIUserSandboxes;
-import org.apache.commons.lang.StringUtils;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.springframework.extensions.config.ConfigElement;
-import org.springframework.extensions.config.ConfigService;
-
-/**
- * Bean backing up the AVM specific browse screens
- *
- * @author Kevin Roast
- */
-public class AVMBrowseBean implements IContextListener
-{
- private static final long serialVersionUID = -2310105113473561134L;
-
- public static final String BEAN_NAME = "AVMBrowseBean";
-
- private static final Log logger = LogFactory.getLog(AVMBrowseBean.class);
-
- public static final String REQUEST_BEEN_DEPLOYED_RESULT = "_alfBeenDeployedResult";
-
- private static final String MSG_REVERT_SUCCESS = "revert_success";
- private static final String MSG_REVERT_SANDBOX = "revert_sandbox_success";
- private static final String MSG_SANDBOXTITLE = "sandbox_title";
- private static final String MSG_SANDBOXSTAGING = "sandbox_staging";
- private static final String MSG_CREATED_ON = "store_created_on";
- private static final String MSG_CREATED_BY = "store_created_by";
- private static final String MSG_WORKING_USERS = "store_working_users";
- private static final String MSG_SEARCH_FORM_CONTENT = "search_form_content";
- private static final String MSG_TARGET_IS_DELETED ="target_is_deleted";
-
- /** Component id the status messages are tied too */
- static final String COMPONENT_SANDBOXESPANEL = "sandboxes-panel";
-
- /** Top-level JSF form ID */
- static final String FORM_ID = "website";
-
- /** Snapshot date filter selection */
- private String snapshotDateFilter = UISandboxSnapshots.FILTER_DATE_TODAY;
-
- /** Current sandbox store context for actions and sandbox view */
- private String sandbox;
-
- /** Current username context for actions and sandbox view */
- private String username;
-
- /** Current webapp context for actions and sandbox view */
- private String webapp;
-
- /** List of top-level webapp directories for the current web project */
- private List webapps;
-
- /** Sandbox title message */
- private String sandboxTitle = null;
-
- /** Current AVM path and node representing the current path */
- private String currentPath = null;
- private AVMNode currentPathNode = null;
-
- /** flag to indicate that all items in the sandbox are involved in the current action */
- private boolean allItemsAction = false;
-
- /** list of the deployment monitor ids currently executing */
- private List deploymentMonitorIds = new ArrayList();
-
- /** List of expired paths to submit */
- private List nodesForSubmit = Collections.emptyList();
-
- /* component references */
- private UIRichList foldersRichList;
- private UIRichList filesRichList;
- private UIUserSandboxes userSandboxes;
-
- /** transient lists of files/folders for a directory */
- private List