|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectComponentManager
Implement this interface to validate project component values and to provide methods for accessing and persisting project components.
Method Summary | |
---|---|
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 |
convertToGenericValues(Collection 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. |
ProjectComponent |
find(Long id)
Implement this method to find the component with the specified ID. |
Collection |
findAllForProject(Long projectId)
Implement this method to find all components associated with the project with the ID specified. |
ProjectComponent |
findByComponentName(Long projectId,
String componentName)
Finds the ProjectComponent with the given name in the project with the given id. |
Collection |
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. |
ProjectComponent |
update(MutableProjectComponent component)
Implement this method to update the component specified with the values given. |
Method Detail |
---|
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 componentprojectId
- ID of project that component is associated with
IllegalArgumentException
- if one or more arguments have invalid valuesProjectComponent find(Long id) throws EntityNotFoundException
id
- component ID to search for
EntityNotFoundException
- if the component is not foundCollection findAllForProject(Long projectId)
projectId
- ID of project to search for
ProjectComponent update(MutableProjectComponent component) throws EntityNotFoundException
component
- component to be updated
EntityNotFoundException
- if component is not foundvoid delete(Long componentId) throws EntityNotFoundException
componentId
-
EntityNotFoundException
- if the component is not foundboolean containsName(String name, Long projectId)
name
- component name, null will cause IllegalArgumentExceptionprojectId
- project ID
Long findProjectIdForComponent(Long componentId) throws EntityNotFoundException
componentId
- component ID
EntityNotFoundException
- if component with the specified id cannot be foundorg.ofbiz.core.entity.GenericValue convertToGenericValue(ProjectComponent projectComponent)
projectComponent
-
Collection convertToGenericValues(Collection projectComponents)
projectComponents
-
ProjectComponent findByComponentName(Long projectId, String componentName)
projectId
- id of the project.componentName
- name of the component.
Collection findComponentsByLead(String userName)
userName
- the lead user name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |