Class OpenProjectConnection
- java.lang.Object
-
- com.xwiki.projectmanagement.openproject.config.OpenProjectConnection
-
public class OpenProjectConnection extends Object
Represents the connection configuration for an OpenProject instance.- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description OpenProjectConnection(String connectionName, String serverURL, String clientId, String clientSecret)Constructs a newOpenProjectConnectionwith the provided values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClientId()StringgetClientSecret()StringgetConnectionName()StringgetServerURL()voidsetClientId(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 Detail
-
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 Detail
-
getConnectionName
public String getConnectionName()
- Returns:
- the name of this configuration
-
setConnectionName
public void setConnectionName(String connectionName)
Sets the name of this connection configuration.- Parameters:
connectionName- the configuration name
-
getServerURL
public String getServerURL()
- Returns:
- the URL of the OpenProject server
-
setServerURL
public void setServerURL(String serverURL)
Sets the URL of the OpenProject server.- Parameters:
serverURL- the new server URL
-
getClientId
public String getClientId()
- Returns:
- the client ID used for authentication
-
setClientId
public void setClientId(String clientId)
Sets the client ID used for authentication.- Parameters:
clientId- the new client ID
-
getClientSecret
public String getClientSecret()
- Returns:
- the client secret used for authentication
-
setClientSecret
public void setClientSecret(String clientSecret)
Sets the client secret used for authentication.- Parameters:
clientSecret- the new client secret
-
-