From 8c40b60e2365d025e596088d4711dc2dc61ca337 Mon Sep 17 00:00:00 2001 From: Gary Spencer Date: Thu, 4 May 2006 15:41:41 +0000 Subject: [PATCH] Removed the folder name prefix check so that the client side drag and drop app will appear in all folders, if enabled in the file-servers.xml config file. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2763 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../repo/pseudo/ContentPseudoFileImpl.java | 32 +++++++------------ 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/source/java/org/alfresco/filesys/smb/server/repo/pseudo/ContentPseudoFileImpl.java b/source/java/org/alfresco/filesys/smb/server/repo/pseudo/ContentPseudoFileImpl.java index 239c21ef11..3d90a835cc 100644 --- a/source/java/org/alfresco/filesys/smb/server/repo/pseudo/ContentPseudoFileImpl.java +++ b/source/java/org/alfresco/filesys/smb/server/repo/pseudo/ContentPseudoFileImpl.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005 Alfresco, Inc. + * Copyright (C) 2005-2006 Alfresco, Inc. * * Licensed under the Mozilla Public License version 1.1 * with a permitted attribution clause. You may obtain a @@ -14,7 +14,6 @@ * language governing permissions and limitations under the * License. */ - package org.alfresco.filesys.smb.server.repo.pseudo; import org.alfresco.filesys.server.SrvSession; @@ -136,27 +135,18 @@ public class ContentPseudoFileImpl implements PseudoFileInterface if ( fstate == null) ctx.getStateTable().findFileState( path, true, true); - // Check if the folder name starts with 'DRAG', if so then enable the drag and drop pseudo file - // for this folder + // Enable the drag and drop pseudo file - String[] allPaths = FileName.splitAllPaths( path); - String lastPath = allPaths[allPaths.length - 1].toUpperCase(); - - if ( lastPath.startsWith("DRAG") && fstate.hasPseudoFiles() == false) - { - // Enable the drag and drop pseudo file - - fstate.addPseudoFile( ctx.getDragAndDropApp()); + fstate.addPseudoFile( ctx.getDragAndDropApp()); - // Update the count of pseudo files added - - pseudoCnt++; - - // DEBUG - - if ( logger.isInfoEnabled()) - logger.info("Added drag/drop pseudo file for " + path); - } + // Update the count of pseudo files added + + pseudoCnt++; + + // DEBUG + + if ( logger.isInfoEnabled()) + logger.info("Added drag/drop pseudo file for " + path); } // Add the URL link pseudo file, if enabled