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) |
com.atlassian.util.concurrent.Promise<PluginStatus> |
requestPluginStatus(String pluginKey) |
com.atlassian.util.concurrent.Promise<com.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 com.atlassian.util.concurrent.Promise<PluginStatus> requestPluginStatus(String pluginKey)
public com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<PluginStatus>> requestPluginStatusOption(String pluginKey)
public com.atlassian.httpclient.api.ResponsePromise updatePlugin(String pluginKey, String json)
Copyright © 2002-2015 Atlassian. All Rights Reserved.