public class AdministrationControl extends BackdoorControl<AdministrationControl>
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
Constructor and Description |
---|
AdministrationControl(@NotNull BambooEnvironmentData environmentData) |
Modifier and Type | Method and Description |
---|---|
File |
addLogo() |
AdministrationControl |
addWebhookTemplate(@NotNull String name,
@NotNull String payload,
@NotNull String headers,
@NotNull UUID uuid) |
AdministrationControl |
createGlobalVariable(@NotNull String key,
@NotNull String value) |
protected com.sun.jersey.api.client.WebResource |
createResource()
Creates the resource that corresponds to the root of the TestKit REST API, using the values returned by
BackdoorControl.getRestModulePath() . |
AdministrationControl |
createTemporaryGlobalVariable(@NotNull String key,
@NotNull String value) |
RestTrustedKey |
createTrustedSshKey(String host,
String key) |
AdministrationControl |
deleteGlobalVariable(@NotNull String key) |
void |
deleteTrustedSshKey(@NotNull String host,
@NotNull String key)
Remove Trusted SSH key
|
AdministrationControl |
deleteWebhookTemplate(@NotNull UUID uuid) |
void |
disableAuditLog() |
void |
enableAuditLog() |
@NotNull RestBuildConcurrency |
getBuildConcurrencySettings()
Returns current global build concurrency settings.
|
int |
getDashboardPageSize() |
@NotNull List<RestVariableDefinition> |
getGlobalVariables() |
RestSecuritySettings |
getSecuritySettings() |
RestStorageConfiguration |
getStorageConfiguration() |
Map<String,String> |
getSystemInfo() |
List<RestTrustedKey> |
getTrustedSshKeys() |
boolean |
isAuditLogEnabled() |
LogSettingsControl |
logSettings() |
void |
removeMailServerSettings() |
void |
setAgentAssignmentModificationByUsersAllowed(boolean agentAssignmentModificationByUsersAllowed) |
void |
setBuildConcurrencySettings(boolean enabledBuildConcurrency,
Integer defaultConcurrentBuilds)
Sets current global build concurrency settings to the given primitives.
|
void |
setBuildMonitoringSettings(int logQuietTime,
int buildQueueTimeout)
Sets plan monitoring settings for hung builds
|
void |
setDashboardPageSize(int dashboardPageSize) |
void |
setGlobalExpiryConfiguration(@NotNull RestCombinedExpiryConfiguration configuration)
Turn on instance expiration policy for build and deployment results.
|
void |
setLicense(String license) |
void |
setMailServerSettings(@NotNull MailServerSettings mailServerSettings) |
void |
setManualEncryptionConfiguration(boolean enabled,
int invocationLimit,
TimeUnit invocationLimitUnit) |
void |
setRestrictedAdminRole(boolean enableRestrictedAdminRole) |
void |
setSecuritySettings(RestSecuritySettings settings) |
void |
setSoxComplianceModeEnabled(boolean enableSoxComplianceMode) |
AdministrationControl |
setStorageConfiguration(RestStorageConfiguration storageConfiguration) |
void |
tearDown()
Cleanup resources
|
client, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot
public AdministrationControl(@NotNull @NotNull BambooEnvironmentData environmentData)
public void tearDown()
BackdoorControl
tearDown
in class BackdoorControl<AdministrationControl>
protected com.sun.jersey.api.client.WebResource createResource()
BackdoorControl
BackdoorControl.getRestModulePath()
. Note that the created WebResource
has the following properties: Content-Type: application/json
by
default (override with WebResource.type(javax.ws.rs.core.MediaType)
)BackdoorControl.createResourceForPath(java.lang.String)
createResource
in class BackdoorControl<AdministrationControl>
BackdoorControl.createResource()
,
BackdoorControl.getRestModulePath()
public LogSettingsControl logSettings()
public boolean isAuditLogEnabled()
public int getDashboardPageSize()
public void setDashboardPageSize(int dashboardPageSize)
public AdministrationControl createGlobalVariable(@NotNull @NotNull String key, @NotNull @NotNull String value)
public AdministrationControl addWebhookTemplate(@NotNull @NotNull String name, @NotNull @NotNull String payload, @NotNull @NotNull String headers, @NotNull @NotNull UUID uuid)
public AdministrationControl deleteWebhookTemplate(@NotNull @NotNull UUID uuid)
public AdministrationControl deleteGlobalVariable(@NotNull @NotNull String key)
public AdministrationControl createTemporaryGlobalVariable(@NotNull @NotNull String key, @NotNull @NotNull String value)
@NotNull public @NotNull List<RestVariableDefinition> getGlobalVariables()
public AdministrationControl setStorageConfiguration(RestStorageConfiguration storageConfiguration)
public RestStorageConfiguration getStorageConfiguration()
public RestSecuritySettings getSecuritySettings()
public void setSecuritySettings(RestSecuritySettings settings)
public void setRestrictedAdminRole(boolean enableRestrictedAdminRole)
public void setSoxComplianceModeEnabled(boolean enableSoxComplianceMode)
public void setAgentAssignmentModificationByUsersAllowed(boolean agentAssignmentModificationByUsersAllowed)
public void setMailServerSettings(@NotNull @NotNull MailServerSettings mailServerSettings)
public void removeMailServerSettings()
@NotNull public @NotNull RestBuildConcurrency getBuildConcurrencySettings() throws Exception
Exception
public RestTrustedKey createTrustedSshKey(String host, String key) throws Exception
Exception
public List<RestTrustedKey> getTrustedSshKeys()
public void deleteTrustedSshKey(@NotNull @NotNull String host, @NotNull @NotNull String key)
host
- key
- public void setBuildConcurrencySettings(boolean enabledBuildConcurrency, Integer defaultConcurrentBuilds)
public void setBuildMonitoringSettings(int logQuietTime, int buildQueueTimeout)
logQuietTime
- minutesbuildQueueTimeout
- minutespublic void setLicense(String license)
public void setGlobalExpiryConfiguration(@NotNull @NotNull RestCombinedExpiryConfiguration configuration)
public void setManualEncryptionConfiguration(boolean enabled, int invocationLimit, TimeUnit invocationLimitUnit)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.