congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EntityLinkService.getEntityLinks
Code IndexAdd Tabnine to your IDE (free)

How to use
getEntityLinks
method
in
com.atlassian.applinks.api.EntityLinkService

Best Java code snippets using com.atlassian.applinks.api.EntityLinkService.getEntityLinks (Showing top 7 results out of 315)

origin: com.atlassian.jira/jira-core

@Override
public Iterable<EntityLink> getEntityLinks(Object entity, Class<? extends EntityType> type)
{
  return entityLinkService.getEntityLinks(entity, type);
}
origin: com.atlassian.jira/jira-core

@Override
public Iterable<EntityLink> getEntityLinks(Object entity)
{
  return entityLinkService.getEntityLinks(entity);
}
origin: com.marvelution.atlassian.suite.plugins/atlassian-sonarqube-common

@Override
public Iterable<EntityLink> getEntityLinks(String localKey, @Nullable final ApplicationId applicationId) {
  Iterable<EntityLink> links = entityLinkService.getEntityLinks(getRawEntity(localKey), SonarQubeResourceEntityLinkType.class);
  if (applicationId == null) {
    return links;
  } else {
    return Iterables.filter(links, new Predicate<EntityLink>() {
      @Override
      public boolean apply(@Nullable EntityLink entityLink) {
        return entityLink != null && entityLink.getApplicationLink().getId().equals(applicationId);
      }
    });
  }
}
origin: com.atlassian.jira.plugins/jira-fisheye-plugin

/**
 * Get all the FishEye repositories which have been linked to the given JIRA project. Protected for testing only.
 *
 * @param jiraProjectKey the key of the JIRA project
 * @return the repositories
 */
@VisibleForTesting
protected Iterable<FishEyeRepository> getAllLinkedRepositoriesForJiraProjectKey(String jiraProjectKey) {
  Project project = projectManager.getProjectObjByKey(jiraProjectKey);
  if (project != null) {
    return Iterables.transform(entityLinkService.getEntityLinks(project, FishEyeRepositoryEntityType.class), new Function<EntityLink, FishEyeRepository>() {
      public FishEyeRepository apply(final EntityLink entityLink) {
        return createRepository(entityLink);
      }
    });
  } else {
    return Collections.emptyList();
  }
}
origin: com.atlassian.streams/streams-fisheye-plugin

  private Iterable<String> getJiraEntityLinkKeys(ApplicationLink appLink, Object entity)
  {
    List<String> keys = new LinkedList<>();
    Iterable<EntityLink> entityLinks = entityLinkService.getEntityLinks(entity, JiraProjectEntityType.class);
    for (EntityLink link : entityLinks)
    {
      if (link.getApplicationLink().equals(appLink))
      {
        keys.add(link.getKey());
      }
    }
    return keys;
  }
}
origin: com.marvelution.atlassian.suite.plugins/atlassian-sonarqube-common

@Override
public EntityLink getEntityLink(String localKey, final @Nullable ApplicationId applicationId, final @Nullable String remoteKey) {
  Iterable<EntityLink> links = entityLinkService.getEntityLinks(getRawEntity(localKey), SonarQubeResourceEntityLinkType.class);
  Predicate<EntityLink> predicate;
  if ((applicationId == null || remoteKey == null) && Iterables.size(links) == 1) {
    return links.iterator().next();
  } else if (applicationId == null || remoteKey == null) {
    predicate = new Predicate<EntityLink>() {
      @Override
      public boolean apply(@Nullable EntityLink entityLink) {
        return entityLink != null && entityLink.isPrimary();
      }
    };
  } else {
    predicate = new Predicate<EntityLink>() {
      @Override
      public boolean apply(@Nullable EntityLink entityLink) {
        return entityLink != null && applicationId.equals(entityLink.getApplicationLink().getId()) && remoteKey.equals
            (entityLink.getKey());
      }
    };
  }
  try {
    return Iterables.find(links, predicate);
  } catch (Exception e) {
    return null;
  }
}
origin: com.atlassian.jira.plugins/jira-fisheye-plugin

for (EntityLink entityLink : entityLinkService.getEntityLinks(jiraProject, FishEyeRepositoryEntityType.class)) {
  repositoryNamesFromEntityLinks.add(entityLink.getKey());
for (EntityLink entityLink : entityLinkService.getEntityLinks(jiraProject, FishEyeCrucibleProjectEntityType.class)) {
  String key = entityLink.getApplicationLink().getId().get() + "." + entityLink.getKey();
  if (!jiraCrucibleEntityLinks.containsKey(key)) {
com.atlassian.applinks.apiEntityLinkServicegetEntityLinks

Javadoc

Returns the EntityLinks that are visible to the context user.

Popular methods of EntityLinkService

  • getPrimaryEntityLink
    There are exactly zero or one primary EntityLinks of each type configured for each local entity. If

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JButton (javax.swing)
  • Github Copilot alternatives
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