"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/rapidminer/repository/internal/remote/RemoteRepository.java" between
rapidminer-studio-9.4.1-src.tar.gz and rapidminer-studio-9.5.0-src.tar.gz

About: RapidMiner Studio is a code-free environment for designing advanced analytic processes with machine learning, data mining, text mining, predictive analytics and business analytics. Java source.

RemoteRepository.java  (rapidminer-studio-9.4.1-src):RemoteRepository.java  (rapidminer-studio-9.5.0-src)
skipping to change at line 18 skipping to change at line 18
* This program is free software: you can redistribute it and/or modify it under the terms of the * This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU Affero General Public License as published by the Free Software Foundatio n, either version 3 * GNU Affero General Public License as published by the Free Software Foundatio n, either version 3
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, but WITHOUT A NY WARRANTY; without * This program is distributed in the hope that it will be useful, but WITHOUT A NY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURP OSE. See the GNU * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURP OSE. See the GNU
* Affero General Public License for more details. * Affero General Public License for more details.
* *
* You should have received a copy of the GNU Affero General Public License alon g with this program. * You should have received a copy of the GNU Affero General Public License alon g with this program.
* If not, see http://www.gnu.org/licenses/. * If not, see http://www.gnu.org/licenses/.
*/ */
package com.rapidminer.repository.internal.remote; package com.rapidminer.repository.internal.remote;
import java.io.IOException; import java.io.IOException;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
import java.net.URL; import java.net.URL;
import java.util.List; import java.util.List;
import com.rapidminer.gui.tools.VersionNumber;
import com.rapidminer.repository.ConnectionRepository; import com.rapidminer.repository.ConnectionRepository;
import com.rapidminer.repository.RepositoryException; import com.rapidminer.repository.RepositoryException;
import com.rapidminer.tools.PasswordInputCanceledException; import com.rapidminer.tools.PasswordInputCanceledException;
import com.rapidminer.tools.usagestats.ActionStatisticsCollector; import com.rapidminer.tools.usagestats.ActionStatisticsCollector;
/** /**
* Interface for a RapidMiner server backed repository. It allows to manupilate * Interface for a RapidMiner server backed repository. It allows to manipulate
the repository the repository content via the
* content via the {@link RemoteContentManager}, to schedule remote processes vi * {@link RemoteContentManager}, to schedule remote processes via the {@link Rem
a the oteScheduler} and to retrieve further
* {@link RemoteScheduler} and to retrieve further server information via the * server information via the {@link RemoteInfoService}.
* {@link RemoteInfoService}.
* *
* @author Nils Woehler * @author Nils Woehler
* @since 6.5.0 * @since 6.5.0
* *
*/ */
public interface RemoteRepository extends RemoteFolder, ConnectionRepository { public interface RemoteRepository extends RemoteFolder, ConnectionRepository {
String TAG_REMOTE_REPOSITORY = "remoteRepository"; String TAG_REMOTE_REPOSITORY = "remoteRepository";
/** Type of object requested from a server. */ /** Type of object requested from a server. */
skipping to change at line 151 skipping to change at line 151
/** /**
* Returns the repository content manager. If getting it fails checks the password and tries * Returns the repository content manager. If getting it fails checks the password and tries
* again. Throws a {@link PasswordInputCanceledException} if the login di alog was canceled. * again. Throws a {@link PasswordInputCanceledException} if the login di alog was canceled.
* *
* @return the remote content manager * @return the remote content manager
* @throws RepositoryException * @throws RepositoryException
* if the connection failed * if the connection failed
* @throws PasswordInputCanceledException * @throws PasswordInputCanceledException
* if the login dialog was canceled * if the login dialog was canceled
* @deprecated @since 9.5.0 use getClient().getContentManager() instead
*/ */
RemoteContentManager getContentManager() throws RepositoryException, Pass wordInputCanceledException; RemoteContentManager getContentManager() throws RepositoryException, Pass wordInputCanceledException;
/** /**
* Deletes the cached {@link RemoteContentManager} and creates a new one. * Deletes the cached {@link RemoteContentManager} and creates a new one.
* *
* @throws RepositoryException * @throws RepositoryException
* in case the content manager could not be created * in case the content manager could not be created
*/ */
void resetContentManager() throws RepositoryException, PasswordInputCance ledException; void resetContentManager() throws RepositoryException, PasswordInputCance ledException;
skipping to change at line 175 skipping to change at line 176
* *
* @param pathInfo * @param pathInfo
* should look like 'RAWS/...' without a '/' in front. Further more the pathInfo * should look like 'RAWS/...' without a '/' in front. Further more the pathInfo
* should NOT be encoded. This will be done by this function. * should NOT be encoded. This will be done by this function.
* @param preAuthHeader * @param preAuthHeader
* if {@code true} the username and password is added to the c onnection if present, * if {@code true} the username and password is added to the c onnection if present,
* if {@code false} it is checked if the RM server is reachabl e * if {@code false} it is checked if the RM server is reachabl e
* @return the connection * @return the connection
* @throws IOException * @throws IOException
* @throws RepositoryException * @throws RepositoryException
* @deprecated @since 9.5.0 implement necessary access in the {@link Base ServerClient} impl VersionedServerClient
*/ */
@Deprecated
HttpURLConnection getHTTPConnection(String pathInfo, boolean preAuthHeade r) throws IOException, RepositoryException; HttpURLConnection getHTTPConnection(String pathInfo, boolean preAuthHeade r) throws IOException, RepositoryException;
/** /**
* Creates a connection to the Server using the arguments. * Creates a connection to the Server using the arguments.
* *
* @param pathInfo * @param pathInfo
* should look like 'RAWS/...' without a '/' in front. Further more the pathInfo * should look like 'RAWS/...' without a '/' in front. Further more the pathInfo
* should NOT be encoded. This will be done by this function. * should NOT be encoded. This will be done by this function.
* @param query * @param query
* should look like this '?format=PARAM1'. The query parameter s should be encoded * should look like this '?format=PARAM1'. The query parameter s should be encoded
skipping to change at line 197 skipping to change at line 200
* (e.g. String query = "?format="+URLEncoder.encode("binmeta" , "UTF-8");). * (e.g. String query = "?format="+URLEncoder.encode("binmeta" , "UTF-8");).
* @param preAuthHeader * @param preAuthHeader
* if {@code true} the username and password is added to the c onnection if present, * if {@code true} the username and password is added to the c onnection if present,
* if {@code false} it is checked if the RM server is reachabl e * if {@code false} it is checked if the RM server is reachabl e
* *
* @return the connection * @return the connection
* @throws IOException * @throws IOException
* @throws RepositoryException * @throws RepositoryException
* if preAuthHeader is {@code false} and checking if the serv er is reachable failed * if preAuthHeader is {@code false} and checking if the serv er is reachable failed
* or if the login dialog was canceled during this check * or if the login dialog was canceled during this check
* @deprecated @since 9.5.0 implement necessary access in the {@link Base ServerClient} impl VersionedServerClient
*/ */
@Deprecated
HttpURLConnection getHTTPConnection(String pathInfo, String query, boolea n preAuthHeader) HttpURLConnection getHTTPConnection(String pathInfo, String query, boolea n preAuthHeader)
throws IOException, RepositoryException; throws IOException, RepositoryException;
/** /**
* @return the allowed connection typeIds of this remote repository * @return the allowed connection typeIds of this remote repository
*/ */
List<String> getTypeIds(); List<String> getTypeIds();
/** Defines which connection type ids are installed at this remote reposi tory */ /** Defines which connection type ids are installed at this remote reposi tory */
void setTypeIds(List<String> typeIds) throws RepositoryException; void setTypeIds(List<String> typeIds) throws RepositoryException;
/** /**
skipping to change at line 237 skipping to change at line 242
void removeConnectionListener(ConnectionListener listener); void removeConnectionListener(ConnectionListener listener);
/** /**
* Checks if the specified file name is blacklisted or not. Will return { @code false} by default. * Checks if the specified file name is blacklisted or not. Will return { @code false} by default.
* @param originalFilename the name of the file to be pushed * @param originalFilename the name of the file to be pushed
* @return {@code true} if the file is blacklisted, {@code false} otherwi se * @return {@code true} if the file is blacklisted, {@code false} otherwi se
* @since 8.1 * @since 8.1
* @throws IOException if a connection error occurs * @throws IOException if a connection error occurs
* @throws RepositoryException if a repository error occurs * @throws RepositoryException if a repository error occurs
*/ */
default boolean isFileExtensionBlacklisted(String originalFilename) throw default boolean isFileExtensionBlacklisted(String originalFilename) throw
s IOException, RepositoryException {return false;} s IOException, RepositoryException {
return false;
}
/** /**
* Return authentication type * Return authentication type
* *
* @return * @return
*/ */
AuthenticationType getAuthenticationType(); AuthenticationType getAuthenticationType();
/** /**
* Sets the authentication type to {@link AuthenticationType#BASIC} or * Sets the authentication type to {@link AuthenticationType#BASIC} or
skipping to change at line 274 skipping to change at line 281
/** /**
* Create a new entry in the vault to add some information to a {@link co m.rapidminer.connection.ConnectionInformation} * Create a new entry in the vault to add some information to a {@link co m.rapidminer.connection.ConnectionInformation}
* object that is already stored in the repository * object that is already stored in the repository
* *
* @param path * @param path
* location of the connection information in the repository * location of the connection information in the repository
* @param entries * @param entries
* to be set created data entries containing group and name for injection reference and the value to be injected * to be set created data entries containing group and name for injection reference and the value to be injected
*/ */
void createVaultEntry(String path, List<RemoteCreateVaultInformation> ent ries) throws IOException, RepositoryException; void createVaultEntry(String path, List<RemoteCreateVaultInformation> ent ries) throws IOException, RepositoryException;
/**
* Cleans up this repository, used in between process executions Does not
hing by default.
*
* @since 9.5
*/
default void cleanup(){}
/*
* Get a client that is compatible with the Server
*
* @return an implementation based on {@link BaseServerClient}, methods m
ay return
* {@link com.rapidminer.repository.internal.remote.exception.NotYetSuppo
rtedServiceException}
* or {@link com.rapidminer.repository.internal.remote.exception.Deprecat
edServiceException}
* to be able to use this information to display it to the user or react
on it.
*/
BaseServerClient getClient();
/**
* Get the version from Server.
*
* @return the servers {@link VersionNumber} or null
*/
VersionNumber getServerVersion();
/**
* Get the version from Server if it is already known, should not connect
to get the version number.
*
* @return the servers {@link VersionNumber} or null
*/
VersionNumber getKnownServerVersion();
} }
 End of changes. 11 change blocks. 
10 lines changed or deleted 54 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)