public class ExternalLinkInNewWindowImpl extends Object implements ExternalLinkInNewWindow
| Constructor and Description |
|---|
ExternalLinkInNewWindowImpl(UserPreferencesManager userPreferencesManager,
FeatureManager featureManager,
BaseUrl baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled(ApplicationUser user)
Tells whether the opening external links in new tabs/windows is enabled for the given user.
|
boolean |
shouldOpenInNewWindow(ApplicationUser user,
String url)
Tells whether a link with given URL should open in a new tab/window when clicked by the given user.
|
public ExternalLinkInNewWindowImpl(UserPreferencesManager userPreferencesManager, FeatureManager featureManager, BaseUrl baseUrl)
public boolean isEnabled(@Nullable ApplicationUser user)
ExternalLinkInNewWindowisEnabled in interface ExternalLinkInNewWindowuser - user to check the setting forpublic boolean shouldOpenInNewWindow(@Nullable ApplicationUser user, @Nullable String url)
ExternalLinkInNewWindowshouldOpenInNewWindow in interface ExternalLinkInNewWindowuser - user visiting the linkurl - address of the linkCopyright © 2002-2021 Atlassian. All Rights Reserved.