ProjectServiceImpl
public interface ProjectService
Modifier and Type | Method | Description |
---|---|---|
org.itracker.model.Component |
addProjectComponent(Integer projectId,
org.itracker.model.Component component) |
|
org.itracker.model.ProjectScript |
addProjectScript(Integer projectId,
org.itracker.model.ProjectScript projectScript) |
|
org.itracker.model.Version |
addProjectVersion(Integer projectId,
org.itracker.model.Version version) |
|
Long |
countIssuesByComponent(Integer componentId) |
Counts the number of issues for a given component.
|
Long |
countIssuesByVersion(Integer versionId) |
Counts the number of issues for a given version.
|
org.itracker.model.Project |
createProject(org.itracker.model.Project project,
Integer userId) |
|
List<org.itracker.model.Project> |
getAllAvailableProjects() |
|
List<org.itracker.model.Project> |
getAllProjects() |
|
Date |
getLatestIssueUpdatedDateByProjectId(Integer projectId) |
|
List<org.itracker.model.CustomField> |
getListOfProjectFields(Integer projectId) |
|
List<org.itracker.model.User> |
getListOfProjectOwners(Integer projectId) |
|
org.itracker.model.Project |
getProject(Integer projectId) |
|
org.itracker.model.Component |
getProjectComponent(Integer componentId) |
|
List<org.itracker.model.CustomField> |
getProjectFields(Integer projectId) |
|
List<org.itracker.model.CustomField> |
getProjectFields(Integer projectId,
Locale locale) |
|
List<org.itracker.model.User> |
getProjectOwners(Integer projectId) |
|
org.itracker.model.ProjectScript |
getProjectScript(Integer scriptId) |
|
List<org.itracker.model.ProjectScript> |
getProjectScripts() |
|
Long[] |
getProjectStats(Integer projectId) |
Deprecated.
count open/closed issues with new methods: getTotalNumberOpenIssuesByProject, getTotalNumberResolvedIssuesByProject
|
org.itracker.model.Version |
getProjectVersion(Integer versionId) |
|
Long |
getTotalNumberIssuesByProject(Integer projectId) |
|
Long |
getTotalNumberOpenIssuesByProject(Integer projectId) |
|
Long |
getTotalNumberResolvedIssuesByProject(Integer projectId) |
|
Boolean |
isUniqueProjectName(String projectName,
Integer updatedProjectId) |
Check if this project name is used by any of the projects which already exist in the database.
|
boolean |
removeProjectComponent(Integer projectId,
Integer componentId) |
|
boolean |
removeProjectScript(Integer projectId,
Integer scriptId) |
|
boolean |
removeProjectVersion(Integer projectId,
Integer versionId) |
|
boolean |
setProjectFields(org.itracker.model.Project project,
Set<Integer> newFields) |
|
boolean |
setProjectOwners(org.itracker.model.Project project,
Set<Integer> newOwners) |
|
org.itracker.model.Project |
updateProject(org.itracker.model.Project project,
Integer userId) |
update a project, as the user with userId
|
org.itracker.model.Component |
updateProjectComponent(org.itracker.model.Component component) |
|
org.itracker.model.ProjectScript |
updateProjectScript(org.itracker.model.ProjectScript projectScript) |
|
org.itracker.model.Version |
updateProjectVersion(org.itracker.model.Version version) |
org.itracker.model.Project getProject(Integer projectId)
List<org.itracker.model.Project> getAllProjects()
List<org.itracker.model.Project> getAllAvailableProjects()
org.itracker.model.Component getProjectComponent(Integer componentId)
org.itracker.model.Component updateProjectComponent(org.itracker.model.Component component)
org.itracker.model.Component addProjectComponent(Integer projectId, org.itracker.model.Component component)
org.itracker.model.Version getProjectVersion(Integer versionId)
org.itracker.model.Version updateProjectVersion(org.itracker.model.Version version)
org.itracker.model.Version addProjectVersion(Integer projectId, org.itracker.model.Version version)
boolean setProjectOwners(org.itracker.model.Project project, Set<Integer> newOwners)
List<org.itracker.model.CustomField> getListOfProjectFields(Integer projectId)
List<org.itracker.model.CustomField> getProjectFields(Integer projectId, Locale locale)
boolean setProjectFields(org.itracker.model.Project project, Set<Integer> newFields)
org.itracker.model.ProjectScript getProjectScript(Integer scriptId)
List<org.itracker.model.ProjectScript> getProjectScripts()
org.itracker.model.ProjectScript updateProjectScript(org.itracker.model.ProjectScript projectScript)
org.itracker.model.ProjectScript addProjectScript(Integer projectId, org.itracker.model.ProjectScript projectScript)
Long countIssuesByComponent(Integer componentId)
componentId
- Id of the component to which the issues must be associatedLong getTotalNumberResolvedIssuesByProject(Integer projectId)
Long countIssuesByVersion(Integer versionId)
versionId
- Id of the version to which the issues must be associatedLong[] getProjectStats(Integer projectId)
PENDING: should use a class to hold statistics info to improve type- safety.
org.itracker.model.Project createProject(org.itracker.model.Project project, Integer userId)
org.itracker.model.Project updateProject(org.itracker.model.Project project, Integer userId)
Boolean isUniqueProjectName(String projectName, Integer updatedProjectId)
updatedProjectId
- The updated project which will be use the new name.Copyright © 2002–2022 itracker. All rights reserved.