Interface SpaceFeatures

    • Method Detail

      • global

        static SpaceFeatures global()
        Provides access to the feature toggle configuration on a global level, i.e., scoped parameters will not be taken into account.
        Returns:
        global settings accessor
      • forScope

        static <T> SpaceFeatures forScope​(@NotNull
                                          T scope)
        Provides access to the feature toggle configuration in a scoped way. For example, project parameters may be taken into account. The scope should implement InternalParameters, otherwise only fallback values will be used.
        Parameters:
        scope - the scope, for example, an instance of SProject
        Returns:
        scoped settings accessor
      • mergeRequestsEnabled

        default boolean mergeRequestsEnabled()
        Whether the Pull Request build feature is enabled.
        Returns:
        true by default
      • commitStatusEnabled

        default boolean commitStatusEnabled()
        Whether the Commit Status Publisher build feature is enabled.
        Returns:
        true by default
      • enhancedIntegrationFeatureSetEnabled

        default boolean enhancedIntegrationFeatureSetEnabled()
        Whether the whole feature set for Enhanced Space Integration is enabled. If this setting is disabled, all the dependent features will be disabled as well irregardles of their individual values.
        Returns:
        false by default
      • useRefreshableTokens

        default boolean useRefreshableTokens()
        Whether refreshable user tokens should be used instead of permanent user tokens.
        Returns:
        false by default
      • verifyPayloads

        default boolean verifyPayloads()
        Whether Space payloads should be verified before processing.
        Returns:
        true by default
      • onDemandEnabled

        default boolean onDemandEnabled()
        Whether to suggest on-demand creation of Space connections.
        Returns:
        false by default
      • projectLevelConnectionEnabled

        default boolean projectLevelConnectionEnabled()
        Whether the project level Space connection feature is enabled. Synonym for enhancedIntegrationFeatureSetEnabled().
        Returns:
        false by default
      • useTabForCreateApp

        default boolean useTabForCreateApp()
        Whether a browser tab should be used for creating Space applications instead of a popup.
        Returns:
        false by default
      • hideReposForPendingConnections

        default boolean hideReposForPendingConnections()
        Whether repository listings for pending connections should be hidden.
        Returns:
        true by default
      • capabilitiesEnabled

        default boolean capabilitiesEnabled()
        Whether the connection capability feature is enabled. Synonym for enhancedIntegrationFeatureSetEnabled().
        Returns:
        false by default
      • forceCloseSpaceWindow

        default boolean forceCloseSpaceWindow()
        Whether to skip sanity checks before closing the Space popup window.
        Returns:
        false by default
      • publishCommitStatusUnconditionally

        default boolean publishCommitStatusUnconditionally()
        Whether to publish commit statuses even if no Commit Status Publisher build feature is configured.
        Returns:
        true by default
      • publishMergeRequestCommentsUnconditionally

        default boolean publishMergeRequestCommentsUnconditionally()
        Whether to publish comments about build statuses to the merge request timeline even if no Commit Status Publisher build feature is configured.
        Returns:
        false by default
      • reportUnconditionalPublishing

        default boolean reportUnconditionalPublishing()
        Whether the health report about unconditional status publishing should be generated.
        Returns:
        false by default
      • publishMergeRequestComments

        default boolean publishMergeRequestComments()
        Whether to publish comments about build status to the merge request timeline. This feature only applies if CSP and PR build features are active on a build type.
        Returns:
        true by default
      • allowNonSecureConnection

        default boolean allowNonSecureConnection()
        Whether to allow connections in the SpaceClient to non-HTTPS endpoints. This should only be activated for testing purposes.
        Returns:
        false by default
      • linkHostOverride

        @Nullable
        default String linkHostOverride​(@NotNull
                                        String connectionId)
        Overrides the host part of user-facing URLs (links) by this value. This value is just the host part without any other parts like scheme or path. If this value is misconfigured, the resulting URLs might be constructed wrongly.
        Parameters:
        connectionId - ID of the Space connection
        Returns:
        the host to use for link construction or null if no override is configured
        Since:
        2024.12
      • resolveValue

        @NotNull
        <T> T resolveValue​(@NotNull
                           String property,
                           @NotNull
                           Function<String,​T> convertFun,
                           @NotNull
                           String defaultValue)
      • resolveOptionalValue

        @Nullable
        <T> T resolveOptionalValue​(@NotNull
                                   String property,
                                   @NotNull
                                   Function<String,​T> convertFun)