01: /**
02: * $Id: XFileInterface.java,v 1.8 2005/11/30 11:26:36 ss150821 Exp $
03: * Copyright 2003 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.netfile.servlet.java1;
14:
15: import java.io.InputStream;
16: import com.sun.portal.log.common.PortalLogger;
17: import java.io.OutputStream;
18:
19: import com.sun.portal.netfile.servlet.java1.NetFileException;
20: import com.sun.portal.netfile.servlet.java1.NetFileResource;
21:
22: public interface XFileInterface {
23:
24: public String[] verifyHostType(String domain, String server,
25: String userName, String password) throws NetFileException;
26:
27: public String getShares(String username, String password,
28: String machine, String domain, NetFileResource nfRes)
29: throws Exception, NetFileException;
30:
31: public boolean isShareAccessible(String username, String password,
32: String machine, String share, String domain,
33: NetFileResource nfRes);
34:
35: public String[] getDirectory(String username, String password,
36: String machine, String share, String directory,
37: String domain, NetFileResource nfRes)
38: throws NetFileException;
39:
40: public String getFile(String username, String password,
41: String machine, String share, String file,
42: String directory, String domain, String localTempDir,
43: NetFileResource nfRes) throws NetFileException;
44:
45: public String[] doSearch(String usernam, String passwrd,
46: String machnam, String VMSnam, String pattern,
47: String directory, String domainname, int maxsrchdir,
48: NetFileResource nfRes) throws NetFileException;
49:
50: public String doCreateDirectory(String machine, String share,
51: String username, String password, String domain,
52: String parentDir, String dirToCreate, NetFileResource nfRes)
53: throws NetFileException;
54:
55: public String doDeleteDirectory(String username, String password,
56: String machine, String share, String directory,
57: String domain, NetFileResource nfRes)
58: throws NetFileException;
59:
60: public String doDeleteFile(String username, String password,
61: String machine, String share, String file,
62: String directory, String domain, NetFileResource nfRes)
63: throws NetFileException;
64:
65: public void doRenameFile(String username, String password,
66: String machine, String domain, String share,
67: String directory, String oldFileName, String newFileName,
68: NetFileResource nfRes) throws NetFileException;
69:
70: public InputStream getInputStream(String username, String password,
71: String domain, String machine, String share,
72: String directory, String file, NetFileResource nfRes)
73: throws NetFileException;
74:
75: public OutputStream getOutputStream(String username,
76: String password, String domain, String machine,
77: String share, String directory, String file,
78: NetFileResource nfRes) throws NetFileException;
79:
80: public OutputStream getOutputStream(String username,
81: String password, String domain, String machine,
82: String share, String directory, String file,
83: NetFileResource nfRes, boolean append)
84: throws NetFileException;
85:
86: }
|