com.atlassian.jira.bc.project.component
Interface ProjectComponentService

All Known Implementing Classes:
DefaultProjectComponentService

@PublicApi
public interface ProjectComponentService


Method Summary
 ProjectComponent create(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User 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(com.atlassian.crowd.embedded.api.User user, ErrorCollection errorCollection, Long id)
           
 Collection<ProjectComponent> findAllForProject(ErrorCollection errorCollection, Long projectId)
           
 ProjectComponent update(com.atlassian.crowd.embedded.api.User user, ErrorCollection errorCollection, MutableProjectComponent component)
           
 

Method Detail

create

@Deprecated
ProjectComponent create(com.atlassian.crowd.embedded.api.User 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

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

Returns:
A newly created project component ProjectComponent

create

ProjectComponent create(com.atlassian.crowd.embedded.api.User user,
                        ErrorCollection errorCollection,
                        String name,
                        String description,
                        String lead,
                        Long projectId,
                        Long assigneeType)
Create a project component with assignee type set as provided.

Returns:
A newly created project component ProjectComponent

find

ProjectComponent find(com.atlassian.crowd.embedded.api.User user,
                      ErrorCollection errorCollection,
                      Long id)

findAllForProject

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

update

ProjectComponent update(com.atlassian.crowd.embedded.api.User user,
                        ErrorCollection errorCollection,
                        MutableProjectComponent component)

deleteComponentForIssues

void deleteComponentForIssues(JiraServiceContext context,
                              Long componentId)

deleteAndSwapComponentForIssues

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.