001/** 002 * Copyright 2010-2014 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.common.util.secure; 017 018import java.io.File; 019import java.io.IOException; 020import java.io.InputStream; 021import java.io.OutputStream; 022 023/** 024 * @deprecated 025 */ 026@Deprecated 027public interface SecureChannel { 028 029 void open() throws IOException; 030 031 void close(); 032 033 /** 034 * @deprecated 035 */ 036 @Deprecated 037 void copyFile(File source, RemoteFile destination); 038 039 /** 040 * @deprecated 041 */ 042 @Deprecated 043 void copyLocationToFile(String location, RemoteFile destination); 044 045 /** 046 * @deprecated 047 */ 048 @Deprecated 049 void copyInputStreamToFile(InputStream source, RemoteFile destination); 050 051 /** 052 * @deprecated 053 */ 054 @Deprecated 055 void copyStringToFile(String string, RemoteFile destination); 056 057 /** 058 * @deprecated 059 */ 060 @Deprecated 061 void copyLocationToDirectory(String location, RemoteFile destination); 062 063 /** 064 * @deprecated 065 */ 066 @Deprecated 067 void copyFileToDirectory(File source, RemoteFile destination); 068 069 /** 070 * @deprecated 071 */ 072 @Deprecated 073 void copyFile(RemoteFile source, File destination); 074 075 /** 076 * @deprecated 077 */ 078 @Deprecated 079 void copyFileToDirectory(RemoteFile source, File destination); 080 081 /** 082 * @deprecated 083 */ 084 @Deprecated 085 RemoteFile getMetaData(String absolutePath); 086 087 boolean exists(String absolutePath); 088 089 boolean isDirectory(String absolutePath); 090 091 void deleteFile(String absolutePath); 092 093 /** 094 * @deprecated 095 */ 096 @Deprecated 097 void createDirectory(RemoteFile dir); 098 099 /** 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}