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
ConstructorDescriptionFeatureDiscoveryServiceImpl
(BambooAuthenticationContext bambooAuthenticationContext, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, DocumentationLinkProvider documentationLinkProvider, com.atlassian.sal.api.message.I18nResolver i18nResolver) -
Method Summary
Modifier and TypeMethodDescription@NotNull com.atlassian.feature.discovery.api.ProductVersion
@NotNull String
@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 Details
-
FeatureDiscoveryServiceImpl
@Inject public FeatureDiscoveryServiceImpl(BambooAuthenticationContext bambooAuthenticationContext, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, DocumentationLinkProvider documentationLinkProvider, com.atlassian.sal.api.message.I18nResolver i18nResolver)
-
-
Method Details
-
getCurrentProductVersion
@NotNull public @NotNull com.atlassian.feature.discovery.api.ProductVersion getCurrentProductVersion()- Specified by:
getCurrentProductVersion
in interfacecom.atlassian.feature.discovery.api.FeatureDiscoveryService
-
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
- Specified by:
getFeaturesSummaryPageUrl
in interfacecom.atlassian.feature.discovery.api.FeatureDiscoveryService
-