public class HALMConnection extends AbstractDescribableImpl<HALMConnection> implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
HALMConnection.AbstractResult
Abstract base class for results, provides common error handling.
|
static class |
HALMConnection.AuthInfoResult
Authorization information result
|
static class |
HALMConnection.CredentialDetailsResult
Credentials information result
|
static class |
HALMConnection.DescriptorImpl
Used for validating the HALMConnection's config.jelly
|
static class |
HALMConnection.OptionalConnectionProps
Optional connection properties
|
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
acceptSSLCertificates
Deprecated.
See
HALMConnection.OptionalConnectionProps. This is only here to ensure we can upgrade old configurations. |
| Constructor and Description |
|---|
HALMConnection(String connectionUUID,
String connectionName,
String halmAPIAddress,
String credentialsID)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAcceptedSSLCertificates() |
boolean |
getAcceptSSLCertificates()
This is here due to what looks like an odd bug in Jenkins? I would expect
HALMConnection.OptionalConnectionProps to be invoked to retrieve this information, however
the setting did not appear to be populated in the UI until I added this. |
HALMConnection.AuthInfoResult |
getAuthInfo()
We need to check for a variety of conditions while parsing the credentials.
|
protected static HALMConnection.AuthInfoResult |
getAuthInfo(com.perforce.halm.reportingtool.APIAuthType authType,
String credentialsID)
We need to check for a variety of conditions while parsing the credentials.
|
String |
getConnectionName() |
String |
getConnectionUUID() |
HALMConnection.CredentialDetailsResult |
getCredentialDetails()
Retrieves credential info (username // password)
|
static HALMConnection.CredentialDetailsResult |
getCredentialDetails(String credentialsID)
Retrieves credential info (username // password)
|
String |
getCredentialsID() |
com.perforce.halm.reportingtool.APIAuthType |
getCredentialsType() |
String |
getCredentialTypeValue() |
String |
getHalmAPIAddress() |
HALMConnection.OptionalConnectionProps |
getOptionalConnectionProps() |
boolean |
getOptionalConnectionPropsIsSet()
This governs if the 'optional' checkbox is checked or not.
|
protected Object |
readResolve()
This allows upgrading old, saved XML configuration values to the current format.
|
void |
setAcceptedSSLCertificates(List<String> acceptedSSLCertificates) |
void |
setAcceptSSLCertificates(boolean acceptSSLCertificates)
This is left for legacy support when 'AcceptSSLCertificates' was a top-level property.
|
void |
setConnectionName(String connectionName) |
void |
setCredentialsID(String credentialsID) |
void |
setCredentialType(com.perforce.halm.reportingtool.APIAuthType credentialType) |
void |
setCredentialTypeValue(String credentialType) |
void |
setHalmAPIAddress(String halmAPIAddress) |
void |
setOptionalConnectionProps(HALMConnection.OptionalConnectionProps optionalConnectionProps)
Sets the optional connection properties
|
getDescriptorprotected transient Boolean acceptSSLCertificates
HALMConnection.OptionalConnectionProps. This is only here to ensure we can upgrade old configurations.@DataBoundConstructor public HALMConnection(String connectionUUID, String connectionName, String halmAPIAddress, String credentialsID)
connectionUUID - - Unique connection IDconnectionName - - the (hopefully unique) connection name.halmAPIAddress - - Helix ALM API REST API addresscredentialsID - - ID of the credentialspublic String getConnectionUUID()
public String getConnectionName()
@DataBoundSetter public final void setConnectionName(String connectionName)
connectionName - New connection ID to setpublic String getHalmAPIAddress()
@DataBoundSetter public final void setHalmAPIAddress(String halmAPIAddress)
halmAPIAddress - Helix ALM REST API addresspublic String getCredentialTypeValue()
@DataBoundSetter public final void setCredentialTypeValue(String credentialType)
credentialType - Credential type, as set on the global config dropdown.public com.perforce.halm.reportingtool.APIAuthType getCredentialsType()
public void setCredentialType(com.perforce.halm.reportingtool.APIAuthType credentialType)
credentialType - Type of credentials (basic vs API Key)public String getCredentialsID()
@DataBoundSetter public final void setCredentialsID(String credentialsID)
credentialsID - ID of the credentials as stored in the Credentials plugin@DataBoundSetter public final void setAcceptSSLCertificates(boolean acceptSSLCertificates)
acceptSSLCertificates - Are we accepting SSL certificatespublic final boolean getAcceptSSLCertificates()
HALMConnection.OptionalConnectionProps to be invoked to retrieve this information, however
the setting did not appear to be populated in the UI until I added this.public boolean getOptionalConnectionPropsIsSet()
public HALMConnection.OptionalConnectionProps getOptionalConnectionProps()
@DataBoundSetter public void setOptionalConnectionProps(HALMConnection.OptionalConnectionProps optionalConnectionProps)
optionalConnectionProps - Optional connection properties to set.public List<String> getAcceptedSSLCertificates()
@DataBoundSetter public void setAcceptedSSLCertificates(List<String> acceptedSSLCertificates)
acceptedSSLCertificates - Set list of accepted SSL certificatesprotected Object readResolve()
public HALMConnection.CredentialDetailsResult getCredentialDetails()
public static HALMConnection.CredentialDetailsResult getCredentialDetails(String credentialsID)
credentialsID - Jenkins Credentials IDpublic HALMConnection.AuthInfoResult getAuthInfo()
protected static HALMConnection.AuthInfoResult getAuthInfo(com.perforce.halm.reportingtool.APIAuthType authType, String credentialsID)
authType - Authorization type (API Key vs Basic)credentialsID - Jenkins Credentials IDCopyright © 2016–2022. All rights reserved.