congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
StreamsEntry$Parameters.addActivityObjects
Code IndexAdd Tabnine to your IDE (free)

How to use
addActivityObjects
method
in
com.atlassian.streams.api.StreamsEntry$Parameters

Best Java code snippets using com.atlassian.streams.api.StreamsEntry$Parameters.addActivityObjects (Showing top 2 results out of 315)

origin: com.atlassian.streams/streams-confluence-plugin

public StreamsEntry buildStreamsEntry(final URI baseUri, final ActivityItem activityItem)
{
  URI url = URI.create(baseUri.toASCIIString() + activityItem.getUrlPath());
  return new StreamsEntry(StreamsEntry.params()
      .id(url)
      .postedDate(new DateTime(activityItem.getModified()))
      .applicationType(CONFLUENCE_APPLICATION_TYPE)
      .alternateLinkUri(url)
      .inReplyTo(buildReplyTo(activityItem))
      .addLink(buildReplyTo(activityItem), REPLY_TO_LINK_REL, none(String.class))
      .addLink(buildIconUrl(activityItem), ICON_LINK_REL, some(i18nResolver.getText("streams.item.confluence.tooltip." + activityItem.getContentType())))
      .addLinks(getWatchLink(activityItem))
      .addLinks(transform(uriProvider.getContentCssUris(), toLink(CSS_LINK_REL)))
      .addLinks(transform(uriProvider.getPanelCssUris(), toLink(CSS_LINK_REL)))
      .addLinks(transform(uriProvider.getIconCssUris(), toLink(CSS_LINK_REL)))
      .categories(buildCategory(activityItem))
      .addActivityObjects(activityItem.getActivityObjects())
      .verb(activityItem.getVerb())
      .target(activityItem.getTarget())
      .renderer(activityItem.getRenderer())
      .baseUri(baseUri)
      .authors(ImmutableNonEmptyList.of(userProfileAccessor.getUserProfile(baseUri, activityItem.getChangedBy()))), i18nResolver);
}
origin: com.atlassian.streams/streams-jira-plugin

private Option<StreamsEntry> buildAttachments(JiraActivityItem item, URI baseUri, Iterable<GenericValue> changeItems)
{
  Iterable<Attachment> attachments = helper.extractAttachments(changeItems);
  if (!isEmpty(attachments))
  {
    return some(new StreamsEntry(helper.newBuilder(item, baseUri).
        authors(helper.getUserProfiles(baseUri, item)).
        verb(post()).
        addActivityObjects(helper.buildActivityObjects(baseUri, attachments)).
        target(some(helper.buildActivityObject(item.getIssue(), baseUri, item.getDisplaySummary()))).
        renderer(attachmentRendererFactory.newAttachmentsEntryRenderer(item, baseUri, attachments)),
          i18nResolver));
  }
  else
  {
    // If attachment has been deleted, we shouldn't display any streams entry (STRM-913)
    return none();
  }
}
com.atlassian.streams.apiStreamsEntry$ParametersaddActivityObjects

Popular methods of StreamsEntry$Parameters

  • alternateLinkUri
  • applicationType
  • authors
  • id
  • postedDate
  • renderer
  • verb
  • addActivityObject
  • baseUri
  • categories
  • target
  • addLink
  • target,
  • addLink,
  • inReplyTo,
  • addLinks

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JTextField (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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