Class ExternalLinkInNewWindowImpl

java.lang.Object
com.atlassian.jira.user.ExternalLinkInNewWindowImpl
All Implemented Interfaces:
ExternalLinkInNewWindow

public class ExternalLinkInNewWindowImpl extends Object implements ExternalLinkInNewWindow
  • Constructor Details

  • Method Details

    • isEnabled

      public boolean isEnabled(@Nullable ApplicationUser user)
      Description copied from interface: ExternalLinkInNewWindow
      Tells whether the opening external links in new tabs/windows is enabled for the given user. When the feature is disabled globally, returns false for all users
      Specified by:
      isEnabled in interface ExternalLinkInNewWindow
      Parameters:
      user - user to check the setting for
      Returns:
      true if the setting is enabled
    • shouldOpenInNewWindow

      public boolean shouldOpenInNewWindow(@Nullable ApplicationUser user, @Nullable String url)
      Description copied from interface: ExternalLinkInNewWindow
      Tells whether a link with given URL should open in a new tab/window when clicked by the given user. Takes user preference into consideration.
      Specified by:
      shouldOpenInNewWindow in interface ExternalLinkInNewWindow
      Parameters:
      user - user visiting the link
      url - address of the link
      Returns:
      true if the link should be opened in a separate tab/window