@Singleton public class ProjectServiceImpl extends Object implements ProjectService
| Constructor and Description |
|---|
ProjectServiceImpl() |
ProjectServiceImpl(StatusService statusService,
TaskService taskService,
DAOHandler daoHandler) |
| Modifier and Type | Method and Description |
|---|---|
Project |
cloneProject(long id,
boolean cloneTask)
Clone a project with given
projectId. |
Project |
createProject(Project project)
Create a project with given
project model object. |
Project |
createProject(Project project,
long parentId)
Create a sub-project with given
project model object and parent project ID. |
org.exoplatform.commons.utils.ListAccess<Project> |
findProjects(List<String> memberships,
String keyword,
OrderBy order) |
org.exoplatform.commons.utils.ListAccess<Project> |
findProjects(ProjectQuery query) |
Set<String> |
getManager(long projectId) |
Set<String> |
getParticipator(long projectId) |
Project |
getProject(Long id)
Return the project with given
projectId. |
org.exoplatform.commons.utils.ListAccess<Project> |
getSubProjects(long parentId)
Return a list of children of a parent project with given
parentId. |
void |
removeProject(long id,
boolean deleteChild)
Remove the project with given
projectId,
and also its descendants if deleteChild is true. |
Project |
updateProject(Project proj)
Update the project.
|
public ProjectServiceImpl()
public ProjectServiceImpl(StatusService statusService, TaskService taskService, DAOHandler daoHandler)
public Project createProject(Project project)
ProjectServiceproject model object.createProject in interface ProjectServicepublic Project createProject(Project project, long parentId) throws EntityNotFoundException
ProjectServiceproject model object and parent project ID.createProject in interface ProjectServiceproject - the project metadata to create.parentId - parent project IDEntityNotFoundException - the project associated with parentId doesn't exist.public Project updateProject(Project proj)
ProjectServiceupdateProject in interface ProjectServicepublic void removeProject(long id,
boolean deleteChild)
throws EntityNotFoundException
ProjectServiceprojectId,
and also its descendants if deleteChild is true.removeProject in interface ProjectServiceEntityNotFoundExceptionpublic Project cloneProject(long id, boolean cloneTask) throws EntityNotFoundException
ProjectServiceprojectId. If cloneTask is true,
it will also clone all non-completed tasks from the project.cloneProject in interface ProjectServiceid - The id of a project which it copies from.cloneTask - If false, it will clone only project metadata.
Otherwise, it also clones all non-completed tasks from the project.EntityNotFoundExceptionpublic Project getProject(Long id) throws EntityNotFoundException
ProjectServiceprojectId.getProject in interface ProjectServiceEntityNotFoundExceptionpublic org.exoplatform.commons.utils.ListAccess<Project> getSubProjects(long parentId)
ProjectServiceparentId.getSubProjects in interface ProjectServicepublic org.exoplatform.commons.utils.ListAccess<Project> findProjects(ProjectQuery query)
findProjects in interface ProjectServicepublic org.exoplatform.commons.utils.ListAccess<Project> findProjects(List<String> memberships, String keyword, OrderBy order)
findProjects in interface ProjectServicepublic Set<String> getManager(long projectId)
getManager in interface ProjectServicepublic Set<String> getParticipator(long projectId)
getParticipator in interface ProjectServiceCopyright © 2003–2015 eXo Platform SAS. All rights reserved.