public interface ProjectService
| Modifier and Type | Method and Description |
|---|---|
Project |
cloneProject(long projectId,
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 projectId)
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 projectId,
boolean deleteChild)
Remove the project with given
projectId,
and also its descendants if deleteChild is true. |
Project |
updateProject(Project project)
Update the project.
|
Project getProject(Long projectId) throws EntityNotFoundException
projectId.projectId - EntityNotFoundExceptionProject createProject(Project project)
project model object.project - Project createProject(Project project, long parentId) throws EntityNotFoundException
project model object and parent project ID.project - the project metadata to create.parentId - parent project IDEntityNotFoundException - the project associated with parentId doesn't exist.Project updateProject(Project project)
project - void removeProject(long projectId,
boolean deleteChild)
throws EntityNotFoundException
projectId,
and also its descendants if deleteChild is true.projectId - deleteChild - EntityNotFoundExceptionProject cloneProject(long projectId, boolean cloneTask) throws EntityNotFoundException
projectId. If cloneTask is true,
it will also clone all non-completed tasks from the project.projectId - 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.EntityNotFoundExceptionorg.exoplatform.commons.utils.ListAccess<Project> getSubProjects(long parentId)
parentId.parentId - org.exoplatform.commons.utils.ListAccess<Project> findProjects(ProjectQuery query)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.