Class ProjectService
- java.lang.Object
-
- fr.gouv.vitam.collect.internal.core.service.ProjectService
-
public class ProjectService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ProjectService(ProjectRepository projectRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createProject(ProjectDto projectDto)
create a project modelvoid
deleteProjectById(java.lang.String id)
delete project according to idjava.util.Optional<ProjectDto>
findProject(java.lang.String id)
return project according to idjava.util.List<ProjectDto>
findProjects()
java.util.List<ProjectDto>
searchProject(java.lang.String searchValue)
void
updateProject(ProjectDto projectDto)
-
-
-
Constructor Detail
-
ProjectService
public ProjectService(ProjectRepository projectRepository)
-
-
Method Detail
-
createProject
public void createProject(ProjectDto projectDto) throws CollectInternalException
create a project model- Throws:
CollectInternalException
-
findProject
public java.util.Optional<ProjectDto> findProject(java.lang.String id) throws CollectInternalException
return project according to id- Parameters:
id
- model id to find- Returns:
- Optional
- Throws:
CollectInternalException
-
updateProject
public void updateProject(ProjectDto projectDto) throws CollectInternalException
- Throws:
CollectInternalException
-
findProjects
public java.util.List<ProjectDto> findProjects() throws CollectInternalException
- Throws:
CollectInternalException
-
searchProject
public java.util.List<ProjectDto> searchProject(java.lang.String searchValue) throws CollectInternalException
- Throws:
CollectInternalException
-
deleteProjectById
public void deleteProjectById(java.lang.String id)
delete project according to id- Parameters:
id
- project to delete
-
-