Tabnine Logo
ProjectComponentManager.findAllForProject
Code IndexAdd Tabnine to your IDE (free)

How to use
findAllForProject
method
in
com.atlassian.jira.bc.project.component.ProjectComponentManager

Best Java code snippets using com.atlassian.jira.bc.project.component.ProjectComponentManager.findAllForProject (Showing top 11 results out of 315)

origin: com.atlassian.jira/jira-core

@Override
void executeOnSuccess()
{
  result = projectComponentManager.findAllForProject(projectId);
}
origin: com.atlassian.jira/jira-core

private Collection<ProjectComponent> getComponents(Long id)
{
  return projectComponentManager.findAllForProject(id);
}
origin: com.atlassian.cpji/cpji-jira-plugin

private Long findProjectComponent(final String name, final long projectId)
{
  Collection<ProjectComponent> projectComponents = projectComponentManager.findAllForProject(projectId);
  try
  {
    ProjectComponent projectComponent = Iterables.find(projectComponents, new Predicate<ProjectComponent>()
    {
      public boolean apply(final ProjectComponent input)
      {
        return (name.equals(input.getName()));
      }
    });
    return projectComponent.getId();
  }
  catch (NoSuchElementException e)
  {
    return null;
  }
}
origin: com.atlassian.jira/jira-core

public Collection<ProjectComponent> getComponents()
{
  try
  {
    return projectComponentManager.findAllForProject(getProject().getId());
  }
  catch (GenericEntityException e)
  {
    return Collections.EMPTY_LIST;
  }
}
origin: com.atlassian.jira/jira-core

public Collection<ProjectComponent> getComponents()
{
  return ComponentAccessor.getProjectComponentManager().findAllForProject(getId());
}
origin: com.atlassian.jira/jira-core

private void getComponentsByName(final Project project, final String word, final MultiValueMap/*<String, String>*/components,
    boolean hasProjectInSearch, List<String> projectsWithComponents)
{
  Collection<ProjectComponent> projectComponents = projectComponentManager.findAllForProject(project.getId());
  Set<String> matchingComponents = getAllNamesMatchingSubstring(projectComponents, word);
  for (String component : matchingComponents)
  {
    if (!components.containsValue("component", component))
    {
      components.put("component", component);
    }
  }
  if (!hasProjectInSearch && !matchingComponents.isEmpty())
  {
    projectsWithComponents.add(project.getId().toString());
  }
}
origin: com.atlassian.jira/jira-core

public Collection<ProjectComponent> getPossibleComponents() throws Exception
{
  return ComponentAccessor.getProjectComponentManager().findAllForProject(getProjectObject() != null ? getProjectObject().getId() : null);
}
origin: com.atlassian.jira.plugins/atlassian-jira-rpc-plugin

public RemoteComponent[] getComponents(User user, String projectKey) throws RemoteException
{
  try
  {
    Project project = retrieveProjectByKey(projectKey, user);
    Collection components = projectComponentManager.findAllForProject(project.getId());
    return SoapUtils.convertComponentsToRemoteObject(components);
  }
  catch (DataAccessException e)
  {
    throw new RemoteException("Error retrieving components: " + e, e);
  }
}
origin: com.atlassian.jira/jira-core

componentNames.addAll(CollectionUtil.transform(projectComponentManager.findAllForProject(projectID),
  new Function<ProjectComponent, String>()
origin: com.atlassian.jira/jira-core

final long componentCount = projectComponentManager.findAllForProject(existingProject.getId()).size();
if (componentCount != 0)
origin: com.atlassian.jira/jira-core

final Iterable<ProjectComponent> components = projectComponentManager.findAllForProject(project.getId());
for (final ProjectComponent component : components)
com.atlassian.jira.bc.project.componentProjectComponentManagerfindAllForProject

Javadoc

Implement this method to find all components associated with the project with the ID specified.

Popular methods of ProjectComponentManager

  • find
    Implement this method to find the component with the specified ID.
  • getIssueIdsWithComponent
    Returns a list of all Issue IDs with the given component.
  • containsName
    Implement this method in order to check whether component with specified name is stored.
  • create
    Implement this method to create a new ProjectComponent object associated with the project with the I
  • delete
    Implement this method to delete the component.
  • findAll
    Implement this method to find all components.
  • findAllUniqueNamesForProjectObjects
    Returns all unique names of the components that belong to the passed projects.
  • findAllUniqueNamesForProjects
    Returns all unique names of components associated with all the projects with the ID-s specified.
  • findByComponentName
    Finds the ProjectComponent with the given name in the project with the given id.
  • findByComponentNameCaseInSensitive
    Finds all ProjectComponents with the given name with comparisons case insenstive.
  • findComponentsByIssue
  • findComponentsByLead
    Retrieve a collection of ProjectComponents - where the lead of each component is the specified user.
  • findComponentsByIssue,
  • findComponentsByLead,
  • findProjectIdForComponent,
  • getComponents,
  • update,
  • updateIssueProjectComponents

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • 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
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • CodeWhisperer 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