|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Implementations of this interface are responsible for all management of project entities within JIRA.
| Method Summary | |
List |
convertToProjects(Collection projectIds)
Converts a collection of projectIds to a collection of projects. |
org.ofbiz.core.entity.GenericValue |
getComponent(org.ofbiz.core.entity.GenericValue project,
String name)
Get a component from within this project, based on the project and the component name. |
org.ofbiz.core.entity.GenericValue |
getComponent(Long id)
Get a component from within this project, by it's id. |
Collection |
getComponents(org.ofbiz.core.entity.GenericValue project)
Returns a collection of components in a project. |
Collection |
getComponents(List ids)
Get a list of components from their IDs |
User |
getDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue component)
Gets the default assignee for a project and/or component depending on if a component was specified. |
long |
getNextId(org.ofbiz.core.entity.GenericValue project)
Get the next issue ID from this project (transactional). |
org.ofbiz.core.entity.GenericValue |
getProject(org.ofbiz.core.entity.GenericValue issue)
Returns a project GenericValue that an issue is in. |
org.ofbiz.core.entity.GenericValue |
getProject(Long id)
Deprecated. please use getProjectObj(java.lang.Long) |
org.ofbiz.core.entity.GenericValue |
getProjectByKey(String key)
Deprecated. please use the getProjectObjByKey(java.lang.String) method to return a Project object |
org.ofbiz.core.entity.GenericValue |
getProjectByName(String name)
Retrieve a single project by it's project name. |
Collection |
getProjectCategories()
Get all ProjectCategories. |
org.ofbiz.core.entity.GenericValue |
getProjectCategory(Long id)
Returns a single project category by id. |
org.ofbiz.core.entity.GenericValue |
getProjectCategoryByName(String projectCategoryName)
Find a project category by name. |
org.ofbiz.core.entity.GenericValue |
getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project)
Returns a project's category. |
Project |
getProjectObj(Long id)
Retrieves a single Project by its id. |
Project |
getProjectObjByKey(String projectKey)
Returns a Project object based on the passed in project key. |
Collection |
getProjects()
Return all project GenericValues. |
Collection |
getProjectsByLead(User leadUser)
Returns all the projects that leadUser is the project lead for. |
Collection |
getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCategory)
Returns a list of projects in a particular category. |
Collection |
getProjectsWithNoCategory()
Returns a list of projects without project category, sorted by project name |
boolean |
isDefaultAssignee(org.ofbiz.core.entity.GenericValue project)
Checks if there is a valid default assignee for a given project. |
boolean |
isDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue component)
This function checks if there is a valid default assignee set in the system If this returns false then the getDefaultAssignee(GenericValue, GenericValue) will throw an exception |
void |
refresh()
Causes a full refresh of the project cache. |
void |
refreshProjectDependencies(org.ofbiz.core.entity.GenericValue project)
This will refresh the dependencies of a project. |
void |
setProjectCategory(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue category)
Sets a projects category. |
void |
updateProject(org.ofbiz.core.entity.GenericValue updatedProject)
Persists a project GenericValue to the database. |
void |
updateProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)
Persist an updated project category. |
| Method Detail |
public void updateProject(org.ofbiz.core.entity.GenericValue updatedProject)
throws DataAccessException
GenericValue to the database.
updatedProject -
DataAccessException
public org.ofbiz.core.entity.GenericValue getProject(org.ofbiz.core.entity.GenericValue issue)
throws DataAccessException
GenericValue that an issue is in.
issue -
DataAccessException
public org.ofbiz.core.entity.GenericValue getProject(Long id)
throws DataAccessException
getProjectObj(java.lang.Long)
DataAccessException
public Project getProjectObj(Long id)
throws DataAccessException
Project by its id.
id -
DataAccessException
public org.ofbiz.core.entity.GenericValue getProjectByName(String name)
throws DataAccessException
DataAccessException
public org.ofbiz.core.entity.GenericValue getProjectByKey(String key)
throws DataAccessException
getProjectObjByKey(java.lang.String) method to return a Project object
DataAccessExceptionpublic Project getProjectObjByKey(String projectKey)
Project object based on the passed in project key.
projectKey -
Project object specified by the key or null
public org.ofbiz.core.entity.GenericValue getComponent(Long id)
throws DataAccessException
id -
GenericValue.
DataAccessException
public org.ofbiz.core.entity.GenericValue getComponent(org.ofbiz.core.entity.GenericValue project,
String name)
throws DataAccessException
project - name -
GenericValue.
DataAccessException
public Collection getComponents(org.ofbiz.core.entity.GenericValue project)
throws DataAccessException
project -
GenericValues.
DataAccessException
public Collection getComponents(List ids)
throws DataAccessException
ids -
GenericValues
DataAccessException
public Collection getProjects()
throws DataAccessException
GenericValues.
DataAccessException
public long getNextId(org.ofbiz.core.entity.GenericValue project)
throws DataAccessException
project -
DataAccessException
public void refreshProjectDependencies(org.ofbiz.core.entity.GenericValue project)
throws DataAccessException
refresh()
project -
DataAccessExceptionpublic void refresh()
public Collection getProjectCategories()
throws DataAccessException
GenericValues
DataAccessException
public org.ofbiz.core.entity.GenericValue getProjectCategory(Long id)
throws DataAccessException
id -
GenericValue
DataAccessException
public org.ofbiz.core.entity.GenericValue getProjectCategoryByName(String projectCategoryName)
throws DataAccessException
projectCategoryName -
GenericValue
DataAccessException
public void updateProjectCategory(org.ofbiz.core.entity.GenericValue projectCat)
throws DataAccessException
projectCat -
DataAccessException
public Collection getProjectsFromProjectCategory(org.ofbiz.core.entity.GenericValue projectCategory)
throws DataAccessException
projectCategory -
GenericValues sorted by name. Returns null if the projectCategory param is null
DataAccessException
public Collection getProjectsWithNoCategory()
throws DataAccessException
GenericValues sorted by name
DataAccessException
public org.ofbiz.core.entity.GenericValue getProjectCategoryFromProject(org.ofbiz.core.entity.GenericValue project)
throws DataAccessException
project -
GenericValue or null if no category exists.
DataAccessException
public void setProjectCategory(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue category)
throws DataAccessException
project - category -
DataAccessException
IllegalArgumentException - if the project provided is null
public boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue component)
getDefaultAssignee(GenericValue, GenericValue) will throw an exception
project - component -
isDefaultAssignee(org.ofbiz.core.entity.GenericValue) is true
public User getDefaultAssignee(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue component)
project - component -
User
DefaultAssigneeException - If the default assignee does NOT have ASSIGNABLE permission OR Unassigned issues are turned off.public boolean isDefaultAssignee(org.ofbiz.core.entity.GenericValue project)
project -
public Collection getProjectsByLead(User leadUser)
leadUser -
GenericValuespublic List convertToProjects(Collection projectIds)
projectIds -
GenericValues. Null if input is empty
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||