mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-16257: CIFS: Collaborator/editor could not edit file on Mac Os Mountain Lion
For DoubleRenameShuffle scenario for Mac Lion files add moveAsSystem flag to allow Editor to edit files. Add unit tests. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55130 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
28
source/java/org/alfresco/filesys/repo/ClientHelper.java
Normal file
28
source/java/org/alfresco/filesys/repo/ClientHelper.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package org.alfresco.filesys.repo;
|
||||
|
||||
import org.alfresco.jlan.server.SrvSession;
|
||||
import org.alfresco.util.FileFilterMode.Client;
|
||||
|
||||
public class ClientHelper
|
||||
{
|
||||
public static Client getClient(SrvSession srvSession)
|
||||
{
|
||||
String clientStr = srvSession.getServer().getProtocolName().toLowerCase();
|
||||
if(clientStr.equals("cifs"))
|
||||
{
|
||||
return Client.cifs;
|
||||
}
|
||||
else if(clientStr.equals("nfs"))
|
||||
{
|
||||
return Client.nfs;
|
||||
}
|
||||
else if(clientStr.equals("ftp"))
|
||||
{
|
||||
return Client.ftp;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user