public class AdministrationControl extends BackdoorControl<AdministrationControl>
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
Constructor and Description |
---|
AdministrationControl(BambooEnvironmentData environmentData) |
client, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot
public AdministrationControl(@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.createResource()
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 String key, @NotNull String value)
public AdministrationControl deleteGlobalVariable(@NotNull String key)
public AdministrationControl createTemporaryGlobalVariable(@NotNull String key, @NotNull String value)
@NotNull public 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 setMailServerSettings(@NotNull MailServerSettings mailServerSettings)
public void removeMailServerSettings()
@NotNull public RestBuildConcurrency getBuildConcurrencySettings() throws Exception
Exception
DarkFeatureService.isExperimentalRestAdminApiEnabled()
public RestTrustedKey createTrustedSshKey(String host, String key) throws Exception
Exception
public List<RestTrustedKey> getTrustedSshKeys()
public void deleteTrustedSshKey(@NotNull String host, @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)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.