mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2005 Alfresco, Inc.
|
* Copyright (C) 2005-2006 Alfresco, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Mozilla Public License version 1.1
|
* Licensed under the Mozilla Public License version 1.1
|
||||||
* with a permitted attribution clause. You may obtain a
|
* with a permitted attribution clause. You may obtain a
|
||||||
@@ -14,7 +14,6 @@
|
|||||||
* language governing permissions and limitations under the
|
* language governing permissions and limitations under the
|
||||||
* License.
|
* License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.alfresco.filesys.smb.server.repo.pseudo;
|
package org.alfresco.filesys.smb.server.repo.pseudo;
|
||||||
|
|
||||||
import org.alfresco.filesys.server.SrvSession;
|
import org.alfresco.filesys.server.SrvSession;
|
||||||
@@ -136,27 +135,18 @@ public class ContentPseudoFileImpl implements PseudoFileInterface
|
|||||||
if ( fstate == null)
|
if ( fstate == null)
|
||||||
ctx.getStateTable().findFileState( path, true, true);
|
ctx.getStateTable().findFileState( path, true, true);
|
||||||
|
|
||||||
// Check if the folder name starts with 'DRAG', if so then enable the drag and drop pseudo file
|
// Enable the drag and drop pseudo file
|
||||||
// for this folder
|
|
||||||
|
|
||||||
String[] allPaths = FileName.splitAllPaths( path);
|
fstate.addPseudoFile( ctx.getDragAndDropApp());
|
||||||
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());
|
|
||||||
|
|
||||||
// Update the count of pseudo files added
|
// Update the count of pseudo files added
|
||||||
|
|
||||||
pseudoCnt++;
|
pseudoCnt++;
|
||||||
|
|
||||||
// DEBUG
|
// DEBUG
|
||||||
|
|
||||||
if ( logger.isInfoEnabled())
|
if ( logger.isInfoEnabled())
|
||||||
logger.info("Added drag/drop pseudo file for " + path);
|
logger.info("Added drag/drop pseudo file for " + path);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the URL link pseudo file, if enabled
|
// Add the URL link pseudo file, if enabled
|
||||||
|
Reference in New Issue
Block a user