Tabnine Logo
Thumbnail.getAttachmentId
Code IndexAdd Tabnine to your IDE (free)

How to use
getAttachmentId
method
in
com.atlassian.core.util.thumbnail.Thumbnail

Best Java code snippets using com.atlassian.core.util.thumbnail.Thumbnail.getAttachmentId (Showing top 4 results out of 315)

origin: com.atlassian.jira/jira-core

@Override
public long getAttachmentId()
{
  return thumbnail.getAttachmentId();
}
origin: com.atlassian.streams/streams-jira-plugin

public URI getThumbnailUri(URI baseUri, Thumbnail thumbnail)
{
  return URI.create(baseUri.toASCIIString() + "/secure/thumbnail/" +
    thumbnail.getAttachmentId() + "/" + Uris.encode(thumbnail.getFilename()));
}
origin: com.atlassian.core/atlassian-core-thumbnail

  /**
   * Returns a string representing the internal values of this <code>Thumbnail</code> object. This string contains the
   * MIME Media type, width and height of this <code>Thumbnail</code> object.
   *
   * @return a string representation of this <code>Thumbnail</code> object
   */
  @Override
  public String toString() {
    return getClass().getName() + " [MimeType=" + mimeType + ",width=" + getWidth() + ",height=" + getHeight() + ",filename=" + getFilename() + ",attachmentId=" + getAttachmentId() + "]";
  }
}
origin: com.atlassian.jira/jira-core

@Override
@HtmlSafe
public String getImageURL()
{
  if (thumbnail == null)
  {
    return null;
  }
  if (thumbnail instanceof BrokenThumbnail)
  {
    return velocityRequestContext.getCanonicalBaseUrl() + BROKEN_THUMBNAIL_URL;
  }
  return String.format("%s/secure/thumbnail/%s/%s", velocityRequestContext.getCanonicalBaseUrl(), thumbnail.getAttachmentId(), urlEncode(thumbnail.getFilename()));
}
com.atlassian.core.util.thumbnailThumbnailgetAttachmentId

Javadoc

the id of the attachment for which this is a thumbnail of

Popular methods of Thumbnail

  • getHeight
  • getWidth
  • <init>
    Creates an instance of Thumbnail with the provided arguments.
  • getFilename
    Get the filename of the file this thumbnail represents.
  • equals
    Checks whether two Thumbnail objects have equal values.
  • getMimeType
    Return the MIME Media type for thumbnail.
  • hashCode
    Returns the hash code for this Thumbnail.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now