congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EntityIdentifier.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.atlassian.streams.spi.EntityIdentifier
constructor

Best Java code snippets using com.atlassian.streams.spi.EntityIdentifier.<init> (Showing top 7 results out of 315)

origin: com.atlassian.streams/streams-testing

@Test
public void assertThatIdentifierOfUnknownTypeReturnsNoFilterKey()
{
  assertThat(provider.getFilterKey(new EntityIdentifier(UNKNOWN_ENTITY_TYPE, PROJECT_ENTITY_KEY, URI.create(UNKNOWN_BASE_URL))),
        equalTo(none(String.class)));
}

origin: com.atlassian.streams/streams-testing

protected EntityIdentifier getProjectEntityIdentifier(String key)
{
  return new EntityIdentifier(getProjectEntityType(),
                key,
                getProjectUri(key));
}

origin: com.atlassian.streams/streams-testing

protected EntityIdentifier getIssueEntityIdentifier(String key)
{
  return new EntityIdentifier(getIssueEntityType(),
                key,
                getIssueUri(key));
}

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

  private Iterable<EntityIdentifier> matchEntities(String input)
  {
    Matcher matcher = PROJECT_PATTERN.matcher(input);
    //the target URI is of an unknown format
    if (!matcher.matches())
    {
      return ImmutableList.of();
    }

    String repoKey = matcher.group(1);
    RepositoryHandle repo = repositoryManager.getRepository(repoKey);
    if (repo != null)
    {
      URI canonicalUri = URI.create(applicationProperties.getBaseUrl() + PROJECT_URL_PREFIX + repoKey);
      return ImmutableList.of(new EntityIdentifier(repository().iri(),
                             repoKey,
                             canonicalUri));
    }
    else
    {
      return ImmutableList.of();
    }
  }
}
origin: com.atlassian.streams/streams-crucible-plugin

  private Iterable<EntityIdentifier> matchEntities(String input)
  {   
    Matcher matcher = PROJECT_PATTERN.matcher(input);
    //the target URI is of an unknown format
    if (!matcher.matches())
    {
      return ImmutableList.of();
    }

    String projectKey = matcher.group(1);
    ProjectData project = projectService.getProject(projectKey);
    if (project != null)
    {
      URI canonicalUri = URI.create(applicationProperties.getBaseUrl()+ PROJECT_URL_PREFIX + projectKey);
      return ImmutableList.of(new EntityIdentifier(project().iri(),
                             projectKey,
                             canonicalUri));
    }
    else
    {
      return ImmutableList.of();
    }
  }
}
origin: com.atlassian.streams/streams-confluence-plugin

  private Iterable<EntityIdentifier> matchEntities(String input)
  {
    Matcher spaceMatcher = SPACE_PATTERN.matcher(input);
    if (spaceMatcher.matches())
    {
      String spaceKey = spaceMatcher.group(1);
      Space space = spaceManager.getSpace(spaceKey);
      if (space != null)
      {
        URI canonicalUri = URI.create(applicationProperties.getBaseUrl(UrlMode.CANONICAL) + URL_PREFIX + encode(spaceKey));
        return ImmutableList.of(new EntityIdentifier(space().iri(),
                               spaceKey,
                               canonicalUri));
      }
    }

    return ImmutableList.of();
  }
}
origin: com.atlassian.streams/streams-jira-plugin

  identifiers.add(new EntityIdentifier(issue().iri(),
                     issueKey,
                     canonicalUri));
identifiers.add(new EntityIdentifier(project().iri(),
                   projectKey,
                   canonicalUri));
com.atlassian.streams.spiEntityIdentifier<init>

Javadoc

Constructs a new immutable EntityIdentifier.

Popular methods of EntityIdentifier

  • getType
    An IRI describing the type of entity that this identifier refers to.
  • getValue
    The canonical unique identifier of this entity within its type. For instance, for a JIRA issue, this
  • getUri
    The canonical URI for the entity.

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Notification (javax.management)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 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