Package org.pentaho.di.repository
Class RepositoryConnectionUtils
- java.lang.Object
-
- org.pentaho.di.repository.RepositoryConnectionUtils
-
public class RepositoryConnectionUtils extends Object
Provides a utility method to connect to repository and return the repository object
-
-
Constructor Summary
Constructors Constructor Description RepositoryConnectionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Repository
connectToRepository(String repositoryName, boolean isSingleDiServerInstance, String userName, String fullyQualifiedServerUrl, org.pentaho.di.core.logging.LoggingBuffer logBuffer)
Connects to the PDI repository.
-
-
-
Method Detail
-
connectToRepository
public static Repository connectToRepository(String repositoryName, boolean isSingleDiServerInstance, String userName, String fullyQualifiedServerUrl, org.pentaho.di.core.logging.LoggingBuffer logBuffer) throws org.pentaho.di.core.exception.KettleSecurityException, org.pentaho.di.core.exception.KettleException
Connects to the PDI repository. If the system settings "SINGLE_DI_SERVER_INSTANCE" is set, it will connect to repository using the embedded repository.xml otherwise it will connect to repository with the given name.- Parameters:
repositoryName
- RepositoryNameisSingleDiServerInstance
- Checking if the property "singleDiServerInstance" in PentahoSystems is setuserName
- Repo user namefullyQualifiedServerUrl
- Fully qualified server Url used for connecting to the repositorylogBuffer
-- Returns:
- Repository
- Throws:
org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleSecurityException
-
-