ProjectService
public class ProjectServiceImpl extends Object implements ProjectService
Constructor | Description |
---|---|
ProjectServiceImpl(ComponentDAO componentDAO,
CustomFieldDAO customFieldDAO,
ProjectDAO projectDAO,
ProjectScriptDAO projectScriptDAO,
UserDAO userDAO,
VersionDAO versionDAO,
IssueDAO issueDAO) |
public ProjectServiceImpl(ComponentDAO componentDAO, CustomFieldDAO customFieldDAO, ProjectDAO projectDAO, ProjectScriptDAO projectScriptDAO, UserDAO userDAO, VersionDAO versionDAO, IssueDAO issueDAO)
public Project getProject(Integer projectId)
getProject
in interface ProjectService
public List<Project> getAllProjects()
getAllProjects
in interface ProjectService
public List<Project> getAllAvailableProjects()
getAllAvailableProjects
in interface ProjectService
public Component updateProjectComponent(Component component)
updateProjectComponent
in interface ProjectService
public Component addProjectComponent(Integer projectId, Component component)
addProjectComponent
in interface ProjectService
public boolean removeProjectComponent(Integer projectId, Integer componentId)
removeProjectComponent
in interface ProjectService
public Component getProjectComponent(Integer componentId)
getProjectComponent
in interface ProjectService
public Version addProjectVersion(Integer projectId, Version version)
addProjectVersion
in interface ProjectService
public boolean removeProjectVersion(Integer projectId, Integer versionId)
removeProjectVersion
in interface ProjectService
public Version updateProjectVersion(Version version)
updateProjectVersion
in interface ProjectService
public Version getProjectVersion(Integer versionId)
getProjectVersion
in interface ProjectService
public List<User> getProjectOwners(Integer projectId)
getProjectOwners
in interface ProjectService
public boolean setProjectOwners(Project project, Set<Integer> setOfNewOwnerIds)
setProjectOwners
in interface ProjectService
public List<CustomField> getProjectFields(Integer projectId)
getProjectFields
in interface ProjectService
public List<CustomField> getProjectFields(Integer projectId, Locale locale)
getProjectFields
in interface ProjectService
public boolean setProjectFields(Project project, Set<Integer> setOfNewsFieldIds)
setProjectFields
in interface ProjectService
public ProjectScript getProjectScript(Integer scriptId)
getProjectScript
in interface ProjectService
public List<ProjectScript> getProjectScripts()
getProjectScripts
in interface ProjectService
public ProjectScript addProjectScript(Integer projectId, ProjectScript projectScript)
addProjectScript
in interface ProjectService
public boolean removeProjectScript(Integer projectId, Integer scriptId)
removeProjectScript
in interface ProjectService
public ProjectScript updateProjectScript(ProjectScript projectScript)
updateProjectScript
in interface ProjectService
public Long getTotalNumberIssuesByProject(Integer projectId)
getTotalNumberIssuesByProject
in interface ProjectService
public Long countIssuesByVersion(Integer versionId)
ProjectService
countIssuesByVersion
in interface ProjectService
versionId
- Id of the version to which the issues must be associatedpublic Long countIssuesByComponent(Integer componentId)
ProjectService
countIssuesByComponent
in interface ProjectService
componentId
- Id of the component to which the issues must be associatedpublic Long[] getProjectStats(Integer projectId)
ProjectService
PENDING: should use a class to hold statistics info to improve type- safety.
getProjectStats
in interface ProjectService
public List<CustomField> getListOfProjectFields(Integer projectId)
getListOfProjectFields
in interface ProjectService
public List<User> getListOfProjectOwners(Integer projectId)
getListOfProjectOwners
in interface ProjectService
public Long getTotalNumberOpenIssuesByProject(Integer projectId)
getTotalNumberOpenIssuesByProject
in interface ProjectService
public Long getTotalNumberResolvedIssuesByProject(Integer projectId)
getTotalNumberResolvedIssuesByProject
in interface ProjectService
public Date getLatestIssueUpdatedDateByProjectId(Integer projectId)
getLatestIssueUpdatedDateByProjectId
in interface ProjectService
public Project createProject(Project project, Integer userId)
createProject
in interface ProjectService
public Project updateProject(Project project, Integer userId)
ProjectService
updateProject
in interface ProjectService
public Boolean isUniqueProjectName(String projectName, Integer updatedProjectId)
ProjectService
isUniqueProjectName
in interface ProjectService
updatedProjectId
- The updated project which will be use the new name.Copyright © 2002–2019 itracker. All rights reserved.