public abstract class AbstractXLReleaseConnector extends java.lang.Object implements XLReleaseServerConnector
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger |
Modifier | Constructor and Description |
---|---|
protected |
AbstractXLReleaseConnector(java.lang.String serverUrl,
java.lang.String proxyUrl,
java.lang.String username,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
protected com.sun.jersey.api.client.WebResource |
buildWebResource() |
protected java.util.List<TemplateVariable> |
convertToVariablesList(java.util.List<NameValuePair> variables) |
protected java.util.Map<java.lang.String,java.lang.Object> |
convertToVariablesMap(java.util.List<NameValuePair> variables,
java.util.Map<java.lang.String,TemplateVariable> templateVariables) |
Release |
createRelease(java.lang.String resolvedTemplate,
java.lang.String resolvedVersion,
java.util.List<NameValuePair> variables) |
protected abstract com.sun.jersey.api.client.ClientResponse |
createReleaseResponse(java.lang.String templateTitle,
java.lang.String releaseTitle,
java.util.List<NameValuePair> variables) |
protected abstract java.util.List<TemplateVariable> |
filterVariables(java.util.List<TemplateVariable> variables) |
java.util.List<Release> |
getAllTemplates() |
java.lang.String |
getServerURL() |
protected java.lang.String |
getTemplateInternalId(java.lang.String templateTitle) |
java.util.List<TemplateVariable> |
getVariables(java.lang.String templateId) |
protected abstract com.sun.jersey.api.client.ClientResponse |
getVariablesResponse(java.lang.String templateId) |
java.lang.String |
getVersion() |
java.util.List<Release> |
searchTemplates(java.lang.String filter) |
void |
startRelease(java.lang.String releaseId) |
protected abstract com.sun.jersey.api.client.ClientResponse |
startReleaseResponse(java.lang.String releaseId) |
void |
testConnection() |
protected AbstractXLReleaseConnector(java.lang.String serverUrl, java.lang.String proxyUrl, java.lang.String username, java.lang.String password)
public java.lang.String getVersion()
getVersion
in interface XLReleaseServerConnector
public void testConnection()
testConnection
in interface XLReleaseServerConnector
public java.util.List<Release> searchTemplates(java.lang.String filter)
searchTemplates
in interface XLReleaseServerConnector
public java.util.List<Release> getAllTemplates()
getAllTemplates
in interface XLReleaseServerConnector
public java.util.List<TemplateVariable> getVariables(java.lang.String templateId)
getVariables
in interface XLReleaseServerConnector
public Release createRelease(java.lang.String resolvedTemplate, java.lang.String resolvedVersion, java.util.List<NameValuePair> variables)
createRelease
in interface XLReleaseServerConnector
public void startRelease(java.lang.String releaseId)
startRelease
in interface XLReleaseServerConnector
protected com.sun.jersey.api.client.WebResource buildWebResource()
protected java.lang.String getTemplateInternalId(java.lang.String templateTitle)
protected java.util.List<TemplateVariable> convertToVariablesList(java.util.List<NameValuePair> variables)
protected java.util.Map<java.lang.String,java.lang.Object> convertToVariablesMap(java.util.List<NameValuePair> variables, java.util.Map<java.lang.String,TemplateVariable> templateVariables)
public java.lang.String getServerURL()
getServerURL
in interface XLReleaseServerConnector
protected abstract com.sun.jersey.api.client.ClientResponse getVariablesResponse(java.lang.String templateId)
protected abstract com.sun.jersey.api.client.ClientResponse createReleaseResponse(java.lang.String templateTitle, java.lang.String releaseTitle, java.util.List<NameValuePair> variables)
protected abstract com.sun.jersey.api.client.ClientResponse startReleaseResponse(java.lang.String releaseId)
protected abstract java.util.List<TemplateVariable> filterVariables(java.util.List<TemplateVariable> variables)