Class OpenProjectConnection


  • public class OpenProjectConnection
    extends Object
    Represents the connection configuration for an OpenProject instance.
    Version:
    $Id$
    • Constructor Detail

      • OpenProjectConnection

        public OpenProjectConnection​(String connectionName,
                                     String serverURL,
                                     String clientId,
                                     String clientSecret)
        Constructs a new OpenProjectConnection with the provided values.
        Parameters:
        connectionName - the name of the configuration
        serverURL - the URL of the OpenProject server
        clientId - the client ID used for authentication
        clientSecret - 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