public class DescriptorHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DescriptorHelper.InstanceFilterByBox |
static class |
DescriptorHelper.InstanceFilterByTags |
static class |
DescriptorHelper.JsonArrayResponse |
Modifier and Type | Field and Description |
---|---|
static String |
ANY_BOX |
static String |
LATEST_BOX_VERSION |
Constructor and Description |
---|
DescriptorHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
anyOfThemIsBlank(String... inputParameters) |
static hudson.util.FormValidation |
checkCloud(String cloud) |
static hudson.util.FormValidation |
checkSlaveBox(Client client,
String box) |
static void |
fixDeploymentPolicyFormData(net.sf.json.JSONObject formData) |
static String |
fixVariables(String variables,
net.sf.json.JSONArray boxStack) |
static hudson.util.ListBoxModel |
getBoxes(Client client,
String workspace) |
static hudson.util.ListBoxModel |
getBoxes(String cloud,
String workspace) |
static DescriptorHelper.JsonArrayResponse |
getBoxStack(Client client,
String workspace,
String boxId,
String boxVersion) |
static DescriptorHelper.JsonArrayResponse |
getBoxStack(String cloud,
String workspace,
String boxId,
String boxVersion) |
static hudson.util.ListBoxModel |
getBoxVersions(Client client,
String workspace,
String box) |
static hudson.util.ListBoxModel |
getBoxVersions(String cloud,
String workspace,
String box) |
static hudson.util.ListBoxModel |
getCloudFormationLocations(Client client,
String provider) |
static hudson.util.ListBoxModel |
getCloudFormationProviders(Client client,
String workspace) |
static hudson.util.ListBoxModel |
getClouds() |
static hudson.util.ListBoxModel |
getEmptyListBoxModel() |
static hudson.util.ListBoxModel |
getEmptyListBoxModel(String emptyName,
String emptyValue) |
static DescriptorHelper.JsonArrayResponse |
getInstanceBoxStack(Client client,
String instance) |
static DescriptorHelper.JsonArrayResponse |
getInstanceBoxStack(String cloud,
String instance) |
static net.sf.json.JSONArray |
getInstances(Client client,
String workspace,
ObjectFilter filter) |
static hudson.util.ListBoxModel |
getInstances(Client client,
String workspace,
String box) |
static net.sf.json.JSONArray |
getInstances(Set<String> tags,
String cloud,
String workspace,
boolean excludeInaccessible) |
static net.sf.json.JSONArray |
getInstances(Set<String> tags,
String cloud,
String workspace,
String boxVersion) |
static hudson.util.ListBoxModel |
getInstances(String cloud,
String workspace,
String box) |
static DescriptorHelper.JsonArrayResponse |
getInstancesAsJsonArrayResponse(Client client,
String workspace,
String box) |
static DescriptorHelper.JsonArrayResponse |
getInstancesAsJsonArrayResponse(String cloud,
String workspace,
String box) |
static hudson.util.ListBoxModel |
getProfiles(Client client,
String workspace,
String box) |
static hudson.util.ListBoxModel |
getProfiles(String cloud,
String workspace,
String box) |
static String |
getResolvedBoxVersion(Client client,
String workspace,
String box,
String boxVersion) |
static String |
getToken(String endpointUrl,
String username,
String password) |
static hudson.util.ListBoxModel |
getWorkspaces(Client client) |
static hudson.util.ListBoxModel |
getWorkspaces(String cloud) |
static net.sf.json.JSONArray |
removeInvalidVariables(net.sf.json.JSONArray variableArray,
net.sf.json.JSONArray boxStack) |
static net.sf.json.JSONArray |
removeInvalidVariables(net.sf.json.JSONArray variableArray,
String instanceId,
Client client) |
static String |
resolveDeploymentPolicy(Client client,
String workspaceId,
String policy,
String commaSeparateClaims) |
public static final String ANY_BOX
public static final String LATEST_BOX_VERSION
public static hudson.util.ListBoxModel getCloudFormationProviders(Client client, String workspace)
public static hudson.util.ListBoxModel getCloudFormationLocations(Client client, String provider)
public static hudson.util.ListBoxModel getClouds()
public static String getToken(String endpointUrl, String username, String password) throws IOException
IOException
public static hudson.util.ListBoxModel getWorkspaces(String cloud)
public static hudson.util.ListBoxModel getWorkspaces(Client client)
public static hudson.util.ListBoxModel getBoxVersions(Client client, String workspace, String box)
public static hudson.util.ListBoxModel getBoxVersions(String cloud, String workspace, String box)
public static String getResolvedBoxVersion(Client client, String workspace, String box, String boxVersion) throws IOException
IOException
public static hudson.util.ListBoxModel getProfiles(Client client, String workspace, String box)
public static hudson.util.ListBoxModel getProfiles(String cloud, String workspace, String box)
public static DescriptorHelper.JsonArrayResponse getBoxStack(Client client, String workspace, String boxId, String boxVersion)
public static DescriptorHelper.JsonArrayResponse getBoxStack(String cloud, String workspace, String boxId, String boxVersion)
public static DescriptorHelper.JsonArrayResponse getInstanceBoxStack(Client client, String instance)
public static DescriptorHelper.JsonArrayResponse getInstanceBoxStack(String cloud, String instance)
public static hudson.util.ListBoxModel getInstances(String cloud, String workspace, String box)
public static hudson.util.ListBoxModel getInstances(Client client, String workspace, String box)
public static net.sf.json.JSONArray getInstances(Set<String> tags, String cloud, String workspace, boolean excludeInaccessible)
public static net.sf.json.JSONArray getInstances(Set<String> tags, String cloud, String workspace, String boxVersion)
public static net.sf.json.JSONArray getInstances(Client client, String workspace, ObjectFilter filter)
public static DescriptorHelper.JsonArrayResponse getInstancesAsJsonArrayResponse(Client client, String workspace, String box)
public static DescriptorHelper.JsonArrayResponse getInstancesAsJsonArrayResponse(String cloud, String workspace, String box)
public static hudson.util.FormValidation checkCloud(String cloud)
public static net.sf.json.JSONArray removeInvalidVariables(net.sf.json.JSONArray variableArray, net.sf.json.JSONArray boxStack)
public static net.sf.json.JSONArray removeInvalidVariables(net.sf.json.JSONArray variableArray, String instanceId, Client client)
public static final String resolveDeploymentPolicy(Client client, String workspaceId, String policy, String commaSeparateClaims) throws IOException
IOException
public static void fixDeploymentPolicyFormData(net.sf.json.JSONObject formData)
public static hudson.util.ListBoxModel getEmptyListBoxModel()
public static hudson.util.ListBoxModel getEmptyListBoxModel(String emptyName, String emptyValue)
public static boolean anyOfThemIsBlank(String... inputParameters)
Copyright © 2016–2019. All rights reserved.