public class UpmRestClient extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE_PLUGIN_JSON |
Constructor and Description |
---|
UpmRestClient(String baseUrl,
org.apache.http.auth.UsernamePasswordCredentials credentials) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
PluginStatus |
getPluginStatus(String pluginKey) |
boolean |
isPluginEnabled(String pluginKey) |
boolean |
isPluginUserInstalled(String pluginKey) |
io.atlassian.util.concurrent.Promise<PluginStatus> |
requestPluginStatus(String pluginKey) |
io.atlassian.util.concurrent.Promise<io.atlassian.fugue.Option<PluginStatus>> |
requestPluginStatusOption(String pluginKey) |
com.atlassian.httpclient.api.ResponsePromise |
updatePlugin(String pluginKey,
String json) |
static UpmRestClient |
withDefaultAdminCredentials(String baseUrl) |
public static final String CONTENT_TYPE_PLUGIN_JSON
public UpmRestClient(String baseUrl, org.apache.http.auth.UsernamePasswordCredentials credentials)
public static UpmRestClient withDefaultAdminCredentials(String baseUrl)
public boolean isPluginEnabled(String pluginKey)
public boolean isPluginUserInstalled(String pluginKey)
public PluginStatus getPluginStatus(String pluginKey)
public io.atlassian.util.concurrent.Promise<PluginStatus> requestPluginStatus(String pluginKey)
public io.atlassian.util.concurrent.Promise<io.atlassian.fugue.Option<PluginStatus>> requestPluginStatusOption(String pluginKey)
public com.atlassian.httpclient.api.ResponsePromise updatePlugin(String pluginKey, String json)
Copyright © 2002-2024 Atlassian. All Rights Reserved.