@PublicApi
public interface ProjectComponentManager
Modifier and Type | Field and Description |
---|---|
static String |
NO_COMPONENTS
Used to represent empty component fields.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsName(String name,
Long projectId)
Implement this method in order to check whether component with specified name is stored.
|
org.ofbiz.core.entity.GenericValue |
convertToGenericValue(ProjectComponent projectComponent)
Deprecated.
don't use GenericValue use the ProjectComponent instead.
|
Collection<org.ofbiz.core.entity.GenericValue> |
convertToGenericValues(Collection<ProjectComponent> projectComponents)
Deprecated.
don't use GenericValue use the ProjectComponent instead.
|
ProjectComponent |
create(String name,
String description,
String lead,
long assigneeType,
Long projectId)
Implement this method to create a new ProjectComponent object associated with the project with the ID specified
and with the values given.
|
void |
delete(Long componentId)
Implement this method to delete the component.
|
void |
deleteAllComponents(Long projectId)
Deletes all components in given project.
|
ProjectComponent |
find(Long id)
Implement this method to find the component with the specified ID.
|
Collection<ProjectComponent> |
findAll()
Implement this method to find all components.
|
Collection<ProjectComponent> |
findAllActiveForProject(Long projectId)
Returns all active components for given project.
|
Collection<ProjectComponent> |
findAllArchivedForProject(Long projectId)
Returns all archived components for given project.
|
Collection<ProjectComponent> |
findAllForProject(Long projectId)
Implement this method to find all components associated with the project with the ID specified.
|
Collection<String> |
findAllUniqueNamesForProjectObjects(Collection<Project> projects)
Returns all unique names of the components that belong to the passed projects.
|
Collection<String> |
findAllUniqueNamesForProjects(Collection<Long> projectIds)
Returns all unique names of components associated with all the projects with the ID-s specified.
|
ProjectComponent |
findByComponentName(Long projectId,
String componentName)
Finds the ProjectComponent with the given name in the project with the given id.
|
Collection<ProjectComponent> |
findByComponentNameCaseInSensitive(String componentName)
Finds all ProjectComponents with the given name with comparisons case insenstive.
|
Collection<ProjectComponent> |
findComponentsByIssue(Issue issue) |
Collection<org.ofbiz.core.entity.GenericValue> |
findComponentsByIssueGV(Issue issue)
Deprecated.
use findComponentsByIssue that returns a Collection
|
Collection<ProjectComponent> |
findComponentsByLead(String userName)
Retrieve a collection of ProjectComponents - where the lead of each component is the specified user.
|
Long |
findProjectIdForComponent(Long componentId)
Implement this method to look up the project ID for the given component ID.
|
List<ProjectComponent> |
getComponents(List<Long> ids)
Creates a list of ProjectComponent objects from the given list of IDs.
|
Collection<Long> |
getIssueIdsWithComponent(ProjectComponent component)
Returns a list of all Issue IDs with the given component.
|
ProjectComponent |
getProjectComponent(Long projectComponentId)
Returns the component with the given ID or null if not found.
|
int |
getTotalComponentCount() |
ProjectComponent |
update(MutableProjectComponent component)
Implement this method to update the component specified with the values given.
|
List<ChangeItemBean> |
updateIssueProjectComponents(Issue issue,
Collection<ProjectComponent> newValue)
Updates the list of components in issue
|
static final String NO_COMPONENTS
ProjectComponent create(String name, String description, String lead, long assigneeType, Long projectId) throws IllegalArgumentException
ValidationErrorsException
.name
- name of componentdescription
- description of componentlead
- user name associated with componentassigneeType
- assignee typeprojectId
- ID of project that component is associated withIllegalArgumentException
- if one or more arguments have invalid valuesProjectComponent find(Long id) throws EntityNotFoundException
id
- component ID to search forEntityNotFoundException
- if the component is not foundProjectComponent getProjectComponent(Long projectComponentId)
projectComponentId
- component IDCollection<ProjectComponent> findAllForProject(Long projectId)
projectId
- ID of project to search forCollection<ProjectComponent> findAllActiveForProject(Long projectId)
projectId
- id of the projectCollection<ProjectComponent> findAllArchivedForProject(Long projectId)
projectId
- id of the projectCollection<String> findAllUniqueNamesForProjects(Collection<Long> projectIds)
projectIds
- ID-s of project to search forCollection<ProjectComponent> findAll()
int getTotalComponentCount()
Collection<String> findAllUniqueNamesForProjectObjects(Collection<Project> projects)
projects
- projects to search inList<ProjectComponent> getComponents(List<Long> ids) throws EntityNotFoundException
ids
- The List of ProjectComponent IDs.EntityNotFoundException
- if no ProjectComponent exists for any of the given IDs.ProjectComponent update(MutableProjectComponent component) throws EntityNotFoundException
component
- component to be updatedEntityNotFoundException
- if component is not foundList<ChangeItemBean> updateIssueProjectComponents(Issue issue, Collection<ProjectComponent> newValue)
issue
- updated issuenewValue
- list of componentsvoid delete(Long componentId) throws EntityNotFoundException
componentId
- component idEntityNotFoundException
- if the component is not foundvoid deleteAllComponents(@Nonnull Long projectId)
projectId
- id of the project in which components will be deleted.boolean containsName(String name, Long projectId)
name
- component name, null will cause IllegalArgumentExceptionprojectId
- project IDLong findProjectIdForComponent(Long componentId) throws EntityNotFoundException
componentId
- component IDEntityNotFoundException
- if component with the specified id cannot be foundorg.ofbiz.core.entity.GenericValue convertToGenericValue(ProjectComponent projectComponent)
projectComponent
- project componentCollection<org.ofbiz.core.entity.GenericValue> convertToGenericValues(Collection<ProjectComponent> projectComponents)
projectComponents
- a collection of project componentsProjectComponent findByComponentName(Long projectId, String componentName)
projectId
- id of the project.componentName
- name of the component.Collection<ProjectComponent> findByComponentNameCaseInSensitive(String componentName)
componentName
- name of the component.Collection<ProjectComponent> findComponentsByLead(String userName)
userName
- the lead user nameCollection<ProjectComponent> findComponentsByIssue(Issue issue)
issue
- find components on this issue@Nonnull Collection<Long> getIssueIdsWithComponent(@Nonnull ProjectComponent component)
component
- the componentCollection<org.ofbiz.core.entity.GenericValue> findComponentsByIssueGV(Issue issue)
issue
- find components for this issueCopyright © 2002-2022 Atlassian. All Rights Reserved.