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)
ExternalLinkInNewWindow
isEnabled
in interface ExternalLinkInNewWindow
user
- user to check the setting forpublic boolean shouldOpenInNewWindow(@Nullable ApplicationUser user, @Nullable String url)
ExternalLinkInNewWindow
shouldOpenInNewWindow
in interface ExternalLinkInNewWindow
user
- user visiting the linkurl
- address of the linkCopyright © 2002-2023 Atlassian. All Rights Reserved.