@ExperimentalApi
public interface ExternalLinkInNewWindow
target="_blank"
attribute to the corresponding <a>
tag.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.
|
boolean isEnabled(@Nullable ApplicationUser user)
user
- user to check the setting forboolean shouldOpenInNewWindow(@Nullable ApplicationUser user, @Nullable String url)
user
- user visiting the linkurl
- address of the linkCopyright © 2002-2022 Atlassian. All Rights Reserved.