Class SimpleLinkImpl

java.lang.Object
com.atlassian.jira.plugin.webfragment.model.SimpleLinkSectionImpl
com.atlassian.jira.plugin.webfragment.model.SimpleLinkImpl
All Implemented Interfaces:
SimpleLink, SimpleLinkSection

public class SimpleLinkImpl extends SimpleLinkSectionImpl implements SimpleLink
Default implementation of SimpleLink. Simple bean containing no real logic.
Since:
v4.0
  • Constructor Details

    • SimpleLinkImpl

      public SimpleLinkImpl(String id, String label, String title, String iconUrl, String style, @Nonnull String url, String accessKey)
      Constructor taking all attributes of a link
      Parameters:
      id - The unique id of the link
      label - The optional label to display for the link
      title - The optional title (tooltip) of the link
      iconUrl - The optional url pointing an image for the link
      style - The optional style to apply to the link
      url - The url that the link points to
      accessKey - The optional easy access key for the link
    • SimpleLinkImpl

      public SimpleLinkImpl(String id, String label, String title, String iconUrl, String style, Map<String,String> params, @Nonnull String url, String accessKey)
      Constructor taking all attributes of a link
      Parameters:
      id - The unique id of the link
      label - The optional label to display for the link
      title - The optional title (tooltip) of the link
      iconUrl - The optional url pointing an image for the link
      style - The optional style to apply to the link
      params - map of parameters
      url - The url that the link points to
      accessKey - The optional easy access key for the link
    • SimpleLinkImpl

      public SimpleLinkImpl(String id, String label, String title, String iconUrl, String style, Map<String,String> params, @Nonnull String url, String accessKey, Integer weight)
      Constructor taking all attributes of a link
      Parameters:
      id - The unique id of the link
      label - The optional label to display for the link
      title - The optional title (tooltip) of the link
      iconUrl - The optional url pointing an image for the link
      style - The optional style to apply to the link
      params - map of parameters
      url - The url that the link points to
      accessKey - The optional easy access key for the link
  • Method Details

    • getUrl

      @Nonnull public String getUrl()
      Description copied from interface: SimpleLink
      The URL that the link points to. This should never be null.
      Specified by:
      getUrl in interface SimpleLink
      Returns:
      The URL that the link points to
    • getAccessKey

      public String getAccessKey()
      Description copied from interface: SimpleLink
      The access key used to quickly select link
      Specified by:
      getAccessKey in interface SimpleLink
      Returns:
      The access key used to quickly select link
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object