mirror of
				https://github.com/Alfresco/alfresco-community-repo.git
				synced 2025-10-29 15:21:53 +00:00 
			
		
		
		
	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
		
			
				
	
	
		
			29 lines
		
	
	
		
			643 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			643 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| 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;
 | |
|         }
 | |
|     }
 | |
| }
 |