Tabnine Logo
StreamsEntry$Parameters.inReplyTo
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.atlassian.streams.api.StreamsEntry$Parameters.inReplyTo (Showing top 3 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

  public Option<StreamsEntry> build(JiraActivityItem item, ActivityRequest request)
  {
    for (Comment comment : item.getComment())
    {
      final URI baseUri = request.getContextUri();
      return some(new StreamsEntry(helper.newCommentBuilder(baseUri, item).
        authors(ImmutableNonEmptyList.of(helper.getUserProfile(baseUri)
            .apply(getNameFor(comment.getAuthorApplicationUser())))).
            categories(ImmutableList.of(COMMENT_CATEGORY)).
            inReplyTo(some(new StreamsUriBuilder().setUrl(helper.getIssueUri(baseUri, item).toASCIIString())
                .getUri())).
            verb(post()).
            addActivityObject(helper.buildActivityObject(baseUri, comment)).
            target(some(helper.buildActivityObject(comment.getIssue(), baseUri,
                item.getDisplaySummary()))).
            renderer(rendererFactory.newInstance(item, comment)), i18nResolver));
    }
    return none();
  }
}
origin: com.atlassian.streams/streams-crucible-plugin

.applicationType(CRUCIBLE_APPLICATION_TYPE)
.alternateLinkUri(uri)
.inReplyTo(some(inReplyToUriBuilder.getUri()))
.authors(ImmutableNonEmptyList.of(userProfileAccessor.getUserProfile(baseUri, changeUsername)))
.categories(ImmutableList.of("commented"))
com.atlassian.streams.apiStreamsEntry$ParametersinReplyTo

Popular methods of StreamsEntry$Parameters

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

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top 12 Jupyter Notebook extensions
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