public interface ProjectComponentStore
Modifier and Type | Method and Description |
---|---|
boolean |
containsName(String name,
Long projectId)
Implement this method to check whether component with specified name is stored.
|
void |
delete(Long componentId)
Remove the given component from the persistent storage.
|
void |
deleteAllComponents(Long projectId)
Deletes all components in given project.
|
MutableProjectComponent |
find(Long id)
Implement this method to look up the project component by the given ID and return it.
|
Collection |
findAll()
Retrieve all ProjectComponent objects stored.
|
Collection<MutableProjectComponent> |
findAllForProject(Long projectId)
Implement this method to look up all components that are related to the project with given ID.
|
MutableProjectComponent |
findByComponentName(Long projectId,
String componentName)
Finds the ProjectComponent with the given name (case sensitive) in the project with the
given Id.
|
Collection<MutableProjectComponent> |
findByComponentNameCaseInSensitive(String componentName)
Finds the ProjectComponents with the given name (case insensitive) in all projects.
|
Collection |
findComponentsBylead(String userKey)
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.
|
ProjectComponent |
getProjectComponent(Long projectComponentId)
Returns the ProjectComponent for the given ID, or null.
|
MutableProjectComponent |
store(MutableProjectComponent component)
Implement this method to persist the component.
|
MutableProjectComponent find(Long id) throws EntityNotFoundException
id
- project component IDEntityNotFoundException
- if the component not foundProjectComponent getProjectComponent(Long projectComponentId)
projectComponentId
- the IDCollection<MutableProjectComponent> findAllForProject(Long projectId)
projectId
- project IDLong findProjectIdForComponent(Long componentId) throws EntityNotFoundException
componentId
- component IDEntityNotFoundException
- if component not found for the given component IDMutableProjectComponent store(MutableProjectComponent component) throws EntityNotFoundException
component
- component to persistEntityNotFoundException
- in case of update if the component does not exist (maybe was deleted :-)void delete(Long componentId) throws EntityNotFoundException
componentId
- ID of the component.EntityNotFoundException
- if component does not exist (maybe was removed previously).void 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 IllegalArgumentExceptionMutableProjectComponent findByComponentName(Long projectId, String componentName) throws EntityNotFoundException
projectId
- the id of the component's project.componentName
- the name of the component to find.EntityNotFoundException
Collection<MutableProjectComponent> findByComponentNameCaseInSensitive(String componentName)
componentName
- the name of the component to find.Collection findComponentsBylead(String userKey)
userKey
- the lead user's keyCollection findAll()
Copyright © 2002-2019 Atlassian. All Rights Reserved.