716 |
02 Jun 08 |
nicklas |
1 |
/** |
716 |
02 Jun 08 |
nicklas |
$Id $ |
716 |
02 Jun 08 |
nicklas |
3 |
|
716 |
02 Jun 08 |
nicklas |
Copyright (C) 2008 Nicklas Nordborg |
716 |
02 Jun 08 |
nicklas |
5 |
|
1381 |
15 Aug 11 |
martin |
This file is part of the FTP Server extension for BASE. |
716 |
02 Jun 08 |
nicklas |
Available at http://baseplugins.thep.lu.se/ |
1381 |
15 Aug 11 |
martin |
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 |
This is free software; you can redistribute it and/or |
716 |
02 Jun 08 |
nicklas |
modify it under the terms of the GNU General Public License |
1381 |
15 Aug 11 |
martin |
as published by the Free Software Foundation; either version 3 |
716 |
02 Jun 08 |
nicklas |
of the License, or (at your option) any later version. |
1381 |
15 Aug 11 |
martin |
15 |
|
1381 |
15 Aug 11 |
martin |
The software is distributed in the hope that it will be useful, |
716 |
02 Jun 08 |
nicklas |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
716 |
02 Jun 08 |
nicklas |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
716 |
02 Jun 08 |
nicklas |
GNU General Public License for more details. |
1381 |
15 Aug 11 |
martin |
20 |
|
1381 |
15 Aug 11 |
martin |
You should have received a copy of the GNU General Public License |
1381 |
15 Aug 11 |
martin |
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 |
Implements the file system manager for BASE. |
716 |
02 Jun 08 |
nicklas |
@author Nicklas |
716 |
02 Jun 08 |
nicklas |
@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 |
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 |
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 |
} |