@PublicApi
public interface ProjectComponentService
Modifier and Type | Method and Description |
---|---|
ProjectComponent |
create(ApplicationUser user,
ErrorCollection errorCollection,
String name,
String description,
String lead,
Long projectId)
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) |
java.util.stream.Stream<ProjectComponent> |
findComponents(ApplicationUser user,
String substring,
List<Long> projectIds)
Returns components whose names start with or fully match given substring.
|
ProjectComponent |
update(ApplicationUser user,
ErrorCollection errorCollection,
MutableProjectComponent component) |
@Deprecated ProjectComponent create(ApplicationUser user, ErrorCollection errorCollection, String name, String description, String lead, Long projectId)
#create(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.util.ErrorCollection, String, String, String, Long, Long)
insteadProjectComponent
ProjectComponent create(ApplicationUser user, ErrorCollection errorCollection, String name, String description, String lead, Long projectId, Long assigneeType)
ProjectComponent
ProjectComponent find(ApplicationUser user, ErrorCollection errorCollection, Long id)
Collection<ProjectComponent> findAllForProject(ErrorCollection errorCollection, Long projectId)
ProjectComponent update(ApplicationUser user, ErrorCollection errorCollection, MutableProjectComponent component)
void deleteComponentForIssues(JiraServiceContext context, Long componentId)
void deleteAndSwapComponentForIssues(JiraServiceContext context, Long componentId, Long swapComponentId)
@ExperimentalApi java.util.stream.Stream<ProjectComponent> findComponents(@Nullable ApplicationUser user, @Nonnull String substring, @Nonnull List<Long> projectIds)
user
- the calling usersubstring
- the string that component names will be matched withprojectIds
- the list of project ids to filter componentsCopyright © 2002-2023 Atlassian. All Rights Reserved.