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.ProductVersion
getCurrentProductVersion()
Optional<String>
getCurrentUser()
@NotNull String
getFeaturesSummaryPageUrl()
@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)
void
setLastProductVersionForUser(@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:
getCurrentProductVersion
in interfacecom.atlassian.feature.discovery.api.FeatureDiscoveryService
-
getCurrentUser
@Nonnull public Optional<String> getCurrentUser()
- Specified by:
getCurrentUser
in 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:
getLastProductVersionForUser
in 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:
setLastProductVersionForUser
in 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:
getNotificationsForUser
in interfacecom.atlassian.feature.discovery.api.FeatureDiscoveryService
-
getFeaturesSummaryPageUrl
@NotNull public @NotNull String getFeaturesSummaryPageUrl()
- Specified by:
getFeaturesSummaryPageUrl
in interfacecom.atlassian.feature.discovery.api.FeatureDiscoveryService
-
-