Class AdministrationControl

    • Constructor Detail

      • AdministrationControl

        public AdministrationControl​(@NotNull
                                     @NotNull BambooEnvironmentData environmentData)
    • Method Detail

      • isAuditLogEnabled

        public boolean isAuditLogEnabled()
      • getDashboardPageSize

        public int getDashboardPageSize()
      • setDashboardPageSize

        public void setDashboardPageSize​(int dashboardPageSize)
      • setRestrictedAdminRole

        public void setRestrictedAdminRole​(boolean enableRestrictedAdminRole)
      • setSoxComplianceModeEnabled

        public void setSoxComplianceModeEnabled​(boolean enableSoxComplianceMode)
      • setAgentAssignmentModificationByUsersAllowed

        public void setAgentAssignmentModificationByUsersAllowed​(boolean agentAssignmentModificationByUsersAllowed)
      • setMailServerSettings

        public void setMailServerSettings​(@NotNull
                                          @NotNull MailServerSettings mailServerSettings)
      • removeMailServerSettings

        public void removeMailServerSettings()
      • getBuildConcurrencySettings

        @NotNull
        public @NotNull RestBuildConcurrency getBuildConcurrencySettings()
                                                                  throws Exception
        Returns current global build concurrency settings. Requires experimental REST admin API to be enabled.
        Throws:
        Exception
      • deleteTrustedSshKey

        public void deleteTrustedSshKey​(@NotNull
                                        @NotNull String host,
                                        @NotNull
                                        @NotNull String key)
        Remove Trusted SSH key
        Parameters:
        host -
        key -
      • setBuildConcurrencySettings

        public void setBuildConcurrencySettings​(boolean enabledBuildConcurrency,
                                                Integer defaultConcurrentBuilds)
        Sets current global build concurrency settings to the given primitives. Requires experimental REST admin API to be enabled.
      • setBuildMonitoringSettings

        public void setBuildMonitoringSettings​(int logQuietTime,
                                               int buildQueueTimeout)
        Sets plan monitoring settings for hung builds
        Parameters:
        logQuietTime - minutes
        buildQueueTimeout - minutes
      • setLicense

        public void setLicense​(String license)
      • setGlobalExpiryConfiguration

        public void setGlobalExpiryConfiguration​(@NotNull
                                                 @NotNull RestCombinedExpiryConfiguration configuration)
        Turn on instance expiration policy for build and deployment results.
      • setManualEncryptionConfiguration

        public void setManualEncryptionConfiguration​(boolean enabled,
                                                     int invocationLimit,
                                                     TimeUnit invocationLimitUnit)