Class OpenProjectConnection
java.lang.Object
com.xwiki.projectmanagement.openproject.config.OpenProjectConnection
Represents the connection configuration for an OpenProject instance.
- Version:
- $Id$
-
Constructor Summary
ConstructorsConstructorDescriptionOpenProjectConnection(String connectionName, String serverURL, String clientId, String clientSecret) Constructs a newOpenProjectConnectionwith the provided values. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetClientId(String clientId) Sets the client ID used for authentication.voidsetClientSecret(String clientSecret) Sets the client secret used for authentication.voidsetConnectionName(String connectionName) Sets the name of this connection configuration.voidsetServerURL(String serverURL) Sets the URL of the OpenProject server.
-
Constructor Details
-
OpenProjectConnection
public OpenProjectConnection(String connectionName, String serverURL, String clientId, String clientSecret) Constructs a newOpenProjectConnectionwith the provided values.- Parameters:
connectionName- the name of the configurationserverURL- the URL of the OpenProject serverclientId- the client ID used for authenticationclientSecret- the client secret used for authentication
-
-
Method Details
-
getConnectionName
- Returns:
- the name of this configuration
-
setConnectionName
Sets the name of this connection configuration.- Parameters:
connectionName- the configuration name
-
getServerURL
- Returns:
- the URL of the OpenProject server
-
setServerURL
Sets the URL of the OpenProject server.- Parameters:
serverURL- the new server URL
-
getClientId
- Returns:
- the client ID used for authentication
-
setClientId
Sets the client ID used for authentication.- Parameters:
clientId- the new client ID
-
getClientSecret
- Returns:
- the client secret used for authentication
-
setClientSecret
Sets the client secret used for authentication.- Parameters:
clientSecret- the new client secret
-