View Javadoc
1   /**
2    * Copyright 2010-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.util.secure;
17  
18  import java.io.File;
19  import java.io.IOException;
20  import java.io.InputStream;
21  import java.io.OutputStream;
22  
23  /**
24   * @deprecated
25   */
26  @Deprecated
27  public interface SecureChannel {
28  
29  	void open() throws IOException;
30  
31  	void close();
32  
33  	/**
34  	 * @deprecated
35  	 */
36  	@Deprecated
37  	void copyFile(File source, RemoteFile destination);
38  
39  	/**
40  	 * @deprecated
41  	 */
42  	@Deprecated
43  	void copyLocationToFile(String location, RemoteFile destination);
44  
45  	/**
46  	 * @deprecated
47  	 */
48  	@Deprecated
49  	void copyInputStreamToFile(InputStream source, RemoteFile destination);
50  
51  	/**
52  	 * @deprecated
53  	 */
54  	@Deprecated
55  	void copyStringToFile(String string, RemoteFile destination);
56  
57  	/**
58  	 * @deprecated
59  	 */
60  	@Deprecated
61  	void copyLocationToDirectory(String location, RemoteFile destination);
62  
63  	/**
64  	 * @deprecated
65  	 */
66  	@Deprecated
67  	void copyFileToDirectory(File source, RemoteFile destination);
68  
69  	/**
70  	 * @deprecated
71  	 */
72  	@Deprecated
73  	void copyFile(RemoteFile source, File destination);
74  
75  	/**
76  	 * @deprecated
77  	 */
78  	@Deprecated
79  	void copyFileToDirectory(RemoteFile source, File destination);
80  
81  	/**
82  	 * @deprecated
83  	 */
84  	@Deprecated
85  	RemoteFile getMetaData(String absolutePath);
86  
87  	boolean exists(String absolutePath);
88  
89  	boolean isDirectory(String absolutePath);
90  
91  	void deleteFile(String absolutePath);
92  
93  	/**
94  	 * @deprecated
95  	 */
96  	@Deprecated
97  	void createDirectory(RemoteFile dir);
98  
99  	/**
100 	 * @deprecated
101 	 */
102 	@Deprecated
103 	RemoteFile getWorkingDirectory();
104 
105 	/**
106 	 * @deprecated
107 	 */
108 	@Deprecated
109 	Result executeCommand(String command);
110 
111 	/**
112 	 * @deprecated
113 	 */
114 	@Deprecated
115 	Result executeCommand(String command, String stdin);
116 
117 	void executeNoWait(String command);
118 
119 	void copyRemoteFile(String absolutePath, OutputStream out) throws IOException;
120 
121 	/**
122 	 * @deprecated
123 	 */
124 	@Deprecated
125 	void copyFile(RemoteFile source, OutputStream out) throws IOException;
126 
127 	/**
128 	 * @deprecated
129 	 */
130 	@Deprecated
131 	String toString(RemoteFile source);
132 
133 }