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
This commit is contained in:
Gary Spencer
2006-05-04 15:41:41 +00:00
parent 05cd2c05b9
commit 8c40b60e23

View File

@@ -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();
fstate.addPseudoFile( ctx.getDragAndDropApp());
if ( lastPath.startsWith("DRAG") && fstate.hasPseudoFiles() == false)
{
// Enable the drag and drop pseudo file
// Update the count of pseudo files added
fstate.addPseudoFile( ctx.getDragAndDropApp());
pseudoCnt++;
// Update the count of pseudo files added
// DEBUG
pseudoCnt++;
// DEBUG
if ( logger.isInfoEnabled())
logger.info("Added drag/drop pseudo file for " + path);
}
if ( logger.isInfoEnabled())
logger.info("Added drag/drop pseudo file for " + path);
}
// Add the URL link pseudo file, if enabled