Class FeatureDiscoveryServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.feature.discovery.FeatureDiscoveryServiceImpl
-
- All Implemented Interfaces:
com.atlassian.feature.discovery.api.FeatureDiscoveryService
public class FeatureDiscoveryServiceImpl extends Object implements com.atlassian.feature.discovery.api.FeatureDiscoveryService
Feature discovery SPI implementation.
-
-
Constructor Summary
Constructors Constructor Description FeatureDiscoveryServiceImpl(BambooAuthenticationContext bambooAuthenticationContext, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, DocumentationLinkProvider documentationLinkProvider, com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull com.atlassian.feature.discovery.api.ProductVersiongetCurrentProductVersion()@NotNull Optional<String>getCurrentUser()@NotNull StringgetFeaturesSummaryPageUrl()@NotNull Optional<com.atlassian.feature.discovery.api.ProductVersion>getLastProductVersionForUser(@NotNull String username)@NotNull Collection<? extends com.atlassian.feature.discovery.api.FeatureDiscoveryNotification>getNotificationsForUser(@NotNull String username)voidsetLastProductVersionForUser(@NotNull String username, @NotNull com.atlassian.feature.discovery.api.ProductVersion productVersion)
-
-
-
Constructor Detail
-
FeatureDiscoveryServiceImpl
@Inject public FeatureDiscoveryServiceImpl(BambooAuthenticationContext bambooAuthenticationContext, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, DocumentationLinkProvider documentationLinkProvider, com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
-
Method Detail
-
getCurrentProductVersion
@NotNull public @NotNull com.atlassian.feature.discovery.api.ProductVersion getCurrentProductVersion()
- Specified by:
getCurrentProductVersionin interfacecom.atlassian.feature.discovery.api.FeatureDiscoveryService
-
getCurrentUser
@NotNull public @NotNull Optional<String> getCurrentUser()
- Specified by:
getCurrentUserin interfacecom.atlassian.feature.discovery.api.FeatureDiscoveryService
-
getLastProductVersionForUser
@NotNull public @NotNull Optional<com.atlassian.feature.discovery.api.ProductVersion> getLastProductVersionForUser(@NotNull @NotNull String username) throws com.atlassian.feature.discovery.api.UserNotFoundException
- Specified by:
getLastProductVersionForUserin interfacecom.atlassian.feature.discovery.api.FeatureDiscoveryService- Throws:
com.atlassian.feature.discovery.api.UserNotFoundException
-
setLastProductVersionForUser
public void setLastProductVersionForUser(@NotNull @NotNull String username, @NotNull @NotNull com.atlassian.feature.discovery.api.ProductVersion productVersion) throws com.atlassian.feature.discovery.api.UserNotFoundException- Specified by:
setLastProductVersionForUserin interfacecom.atlassian.feature.discovery.api.FeatureDiscoveryService- Throws:
com.atlassian.feature.discovery.api.UserNotFoundException
-
getNotificationsForUser
@NotNull public @NotNull Collection<? extends com.atlassian.feature.discovery.api.FeatureDiscoveryNotification> getNotificationsForUser(@NotNull @NotNull String username)
- Specified by:
getNotificationsForUserin interfacecom.atlassian.feature.discovery.api.FeatureDiscoveryService
-
getFeaturesSummaryPageUrl
@NotNull public @NotNull String getFeaturesSummaryPageUrl()
- Specified by:
getFeaturesSummaryPageUrlin interfacecom.atlassian.feature.discovery.api.FeatureDiscoveryService
-
-