public class FeatureDiscoveryServiceImpl extends Object implements com.atlassian.feature.discovery.api.FeatureDiscoveryService
Constructor and Description |
---|
FeatureDiscoveryServiceImpl(BambooAuthenticationContext bambooAuthenticationContext,
BambooPermissionManager bambooPermissionManager,
BambooUserManager bambooUserManager,
DocumentationLinkProvider documentationLinkProvider,
com.atlassian.sal.api.message.I18nResolver i18nResolver) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.feature.discovery.api.ProductVersion |
getCurrentProductVersion() |
Optional<String> |
getCurrentUser() |
String |
getFeaturesSummaryPageUrl() |
Optional<com.atlassian.feature.discovery.api.ProductVersion> |
getLastProductVersionForUser(String username) |
Collection<? extends com.atlassian.feature.discovery.api.FeatureDiscoveryNotification> |
getNotificationsForUser(String username) |
void |
setLastProductVersionForUser(String username,
com.atlassian.feature.discovery.api.ProductVersion productVersion) |
@Inject public FeatureDiscoveryServiceImpl(BambooAuthenticationContext bambooAuthenticationContext, BambooPermissionManager bambooPermissionManager, BambooUserManager bambooUserManager, DocumentationLinkProvider documentationLinkProvider, com.atlassian.sal.api.message.I18nResolver i18nResolver)
@NotNull public com.atlassian.feature.discovery.api.ProductVersion getCurrentProductVersion()
getCurrentProductVersion
in interface com.atlassian.feature.discovery.api.FeatureDiscoveryService
@Nonnull public Optional<String> getCurrentUser()
getCurrentUser
in interface com.atlassian.feature.discovery.api.FeatureDiscoveryService
@NotNull public Optional<com.atlassian.feature.discovery.api.ProductVersion> getLastProductVersionForUser(@NotNull String username) throws com.atlassian.feature.discovery.api.UserNotFoundException
getLastProductVersionForUser
in interface com.atlassian.feature.discovery.api.FeatureDiscoveryService
com.atlassian.feature.discovery.api.UserNotFoundException
public void setLastProductVersionForUser(@NotNull String username, @NotNull com.atlassian.feature.discovery.api.ProductVersion productVersion) throws com.atlassian.feature.discovery.api.UserNotFoundException
setLastProductVersionForUser
in interface com.atlassian.feature.discovery.api.FeatureDiscoveryService
com.atlassian.feature.discovery.api.UserNotFoundException
@NotNull public Collection<? extends com.atlassian.feature.discovery.api.FeatureDiscoveryNotification> getNotificationsForUser(@NotNull String username)
getNotificationsForUser
in interface com.atlassian.feature.discovery.api.FeatureDiscoveryService
@NotNull public String getFeaturesSummaryPageUrl()
getFeaturesSummaryPageUrl
in interface com.atlassian.feature.discovery.api.FeatureDiscoveryService
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.