net.nemerosa.ontrack.extension.bitbucket.cloud.configuration.BitbucketCloudConfigurationUserMenuExtension.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-extension-bitbucket-cloud Show documentation
Show all versions of ontrack-extension-bitbucket-cloud Show documentation
Ontrack module: ontrack-extension-bitbucket-cloud
package net.nemerosa.ontrack.extension.bitbucket.cloud.configuration
import net.nemerosa.ontrack.extension.api.UserMenuExtension
import net.nemerosa.ontrack.extension.bitbucket.cloud.BitbucketCloudExtensionFeature
import net.nemerosa.ontrack.extension.support.AbstractExtension
import net.nemerosa.ontrack.model.security.GlobalFunction
import net.nemerosa.ontrack.model.security.GlobalSettings
import net.nemerosa.ontrack.model.support.Action
import net.nemerosa.ontrack.model.support.Action.Companion.of
import org.springframework.stereotype.Component
/**
* Management of Bitbucket Cloud configurations available in the user menu.
*/
@Component
class BitbucketCloudConfigurationUserMenuExtension(
feature: BitbucketCloudExtensionFeature
) : AbstractExtension(feature), UserMenuExtension {
override fun getGlobalFunction(): Class = GlobalSettings::class.java
override fun getAction(): Action =
of("bitbucket-cloud-configurations", "Bitbucket Cloud configurations", "configurations")
}