extensions/net.sf.basedb.ftp/trunk/src/net/sf/basedb/clients/ftp/BaseFileSystemFactory.java

Code
Comments
Other
Rev Date Author Line
716 02 Jun 08 nicklas 1 /**
716 02 Jun 08 nicklas 2   $Id $
716 02 Jun 08 nicklas 3
716 02 Jun 08 nicklas 4   Copyright (C) 2008 Nicklas Nordborg
716 02 Jun 08 nicklas 5
1381 15 Aug 11 martin 6   This file is part of the FTP Server extension for BASE.
716 02 Jun 08 nicklas 7   Available at http://baseplugins.thep.lu.se/
1381 15 Aug 11 martin 8   BASE main site: http://base.thep.lu.se/
1381 15 Aug 11 martin 9   -----------------------------------------------------------
1381 15 Aug 11 martin 10   
1381 15 Aug 11 martin 11   This is free software; you can redistribute it and/or
716 02 Jun 08 nicklas 12   modify it under the terms of the GNU General Public License
1381 15 Aug 11 martin 13   as published by the Free Software Foundation; either version 3
716 02 Jun 08 nicklas 14   of the License, or (at your option) any later version.
1381 15 Aug 11 martin 15   
1381 15 Aug 11 martin 16   The software is distributed in the hope that it will be useful,
716 02 Jun 08 nicklas 17   but WITHOUT ANY WARRANTY; without even the implied warranty of
716 02 Jun 08 nicklas 18   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
716 02 Jun 08 nicklas 19   GNU General Public License for more details.
1381 15 Aug 11 martin 20   
1381 15 Aug 11 martin 21   You should have received a copy of the GNU General Public License
1381 15 Aug 11 martin 22   along with BASE. If not, see <http://www.gnu.org/licenses/>.
716 02 Jun 08 nicklas 23
716 02 Jun 08 nicklas 24 */
714 30 May 08 nicklas 25 package net.sf.basedb.clients.ftp;
714 30 May 08 nicklas 26
915 11 Dec 08 nicklas 27 import org.apache.ftpserver.ftplet.FileSystemFactory;
714 30 May 08 nicklas 28 import org.apache.ftpserver.ftplet.FileSystemView;
714 30 May 08 nicklas 29 import org.apache.ftpserver.ftplet.FtpException;
714 30 May 08 nicklas 30 import org.apache.ftpserver.ftplet.User;
714 30 May 08 nicklas 31
714 30 May 08 nicklas 32 /**
714 30 May 08 nicklas 33   Implements the file system manager for BASE.
716 02 Jun 08 nicklas 34   @author Nicklas
716 02 Jun 08 nicklas 35   @version 1.0
714 30 May 08 nicklas 36 */
915 11 Dec 08 nicklas 37 public class BaseFileSystemFactory 
915 11 Dec 08 nicklas 38   implements FileSystemFactory 
714 30 May 08 nicklas 39 {
714 30 May 08 nicklas 40
716 02 Jun 08 nicklas 41   /**
716 02 Jun 08 nicklas 42     Creates the file system manager.
716 02 Jun 08 nicklas 43   */
915 11 Dec 08 nicklas 44   public BaseFileSystemFactory()
716 02 Jun 08 nicklas 45   {}
716 02 Jun 08 nicklas 46   
716 02 Jun 08 nicklas 47   /*
716 02 Jun 08 nicklas 48     From the FileSystemManager interface
716 02 Jun 08 nicklas 49     ------------------------------------
716 02 Jun 08 nicklas 50   */
714 30 May 08 nicklas 51   @Override
714 30 May 08 nicklas 52   public FileSystemView createFileSystemView(User user) 
714 30 May 08 nicklas 53     throws FtpException 
714 30 May 08 nicklas 54   {
714 30 May 08 nicklas 55     return new BaseFileSystemView((BaseUser)user);
714 30 May 08 nicklas 56   }
716 02 Jun 08 nicklas 57   // ---------------------------------------
714 30 May 08 nicklas 58
714 30 May 08 nicklas 59 }