@PublicApi public interface

ProjectComponentService

com.atlassian.jira.bc.project.component.ProjectComponentService
Known Indirect Subclasses

@PublicApi

This interface is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Summary

Public Methods
@Deprecated ProjectComponent create(ApplicationUser user, ErrorCollection errorCollection, String name, String description, String lead, Long projectId)
This method is deprecated. since 6.3, use #create(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.util.ErrorCollection, String, String, String, Long, Long) instead
ProjectComponent create(ApplicationUser user, ErrorCollection errorCollection, String name, String description, String lead, Long projectId, Long assigneeType)
Create a project component with assignee type set as provided.
void deleteAndSwapComponentForIssues(JiraServiceContext context, Long componentId, Long swapComponentId)
void deleteComponentForIssues(JiraServiceContext context, Long componentId)
ProjectComponent find(ApplicationUser user, ErrorCollection errorCollection, Long id)
Collection<ProjectComponent> findAllForProject(ErrorCollection errorCollection, Long projectId)
ProjectComponent update(ApplicationUser user, ErrorCollection errorCollection, MutableProjectComponent component)

Public Methods

@Deprecated public ProjectComponent create (ApplicationUser user, ErrorCollection errorCollection, String name, String description, String lead, Long projectId)

This method is deprecated.
since 6.3, use #create(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.util.ErrorCollection, String, String, String, Long, Long) instead

Create a project component and use default assignee type (project default).

Returns

public ProjectComponent create (ApplicationUser user, ErrorCollection errorCollection, String name, String description, String lead, Long projectId, Long assigneeType)

Create a project component with assignee type set as provided.

Returns

public void deleteAndSwapComponentForIssues (JiraServiceContext context, Long componentId, Long swapComponentId)

public void deleteComponentForIssues (JiraServiceContext context, Long componentId)

public ProjectComponent find (ApplicationUser user, ErrorCollection errorCollection, Long id)

public Collection<ProjectComponent> findAllForProject (ErrorCollection errorCollection, Long projectId)

public ProjectComponent update (ApplicationUser user, ErrorCollection errorCollection, MutableProjectComponent component)