Class ProjectInternalResource
java.lang.Object
fr.gouv.vitam.collect.internal.rest.ProjectInternalResource
-
Field Summary
-
Constructor Summary
ConstructorDescriptionProjectInternalResource
(ProjectService projectService, FluxService fluxService, TransactionService transactionService, MetadataService metadataService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
deleteProjectById
(String projectId) javax.ws.rs.core.Response
getAllTransactions
(String projectId) javax.ws.rs.core.Response
getProjectById
(String projectId) javax.ws.rs.core.Response
javax.ws.rs.core.Response
getUnitsByProjectId
(String projectId, com.fasterxml.jackson.databind.JsonNode queryDsl) Deprecated.javax.ws.rs.core.Response
initProject
(ProjectDto projectDto) javax.ws.rs.core.Response
initTransaction
(TransactionDto transactionDto, String projectId) javax.ws.rs.core.Response
searchProject
(CriteriaProjectDto criteriaProjectDto) javax.ws.rs.core.Response
updateProject
(ProjectDto projectDto) javax.ws.rs.core.Response
uploadZipToProject
(String projectId, InputStream inputStreamObject, String encoding)
-
Field Details
-
PROJECT_NOT_FOUND
- See Also:
-
VIRTUAL_TX
- See Also:
-
-
Constructor Details
-
ProjectInternalResource
public ProjectInternalResource(ProjectService projectService, FluxService fluxService, TransactionService transactionService, MetadataService metadataService)
-
-
Method Details
-
getProjects
@GET @Produces("application/json") public javax.ws.rs.core.Response getProjects() -
searchProject
@GET @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response searchProject(CriteriaProjectDto criteriaProjectDto) -
initProject
@POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response initProject(ProjectDto projectDto) -
updateProject
@PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response updateProject(ProjectDto projectDto) -
getProjectById
@Path("/{projectId}") @GET @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getProjectById(@PathParam("projectId") String projectId) -
deleteProjectById
@Path("/{projectId}") @DELETE @Produces("application/json") public javax.ws.rs.core.Response deleteProjectById(@PathParam("projectId") String projectId) -
getUnitsByProjectId
@Path("/{projectId}/units") @GET @Produces("application/json") @Deprecated public javax.ws.rs.core.Response getUnitsByProjectId(@PathParam("projectId") String projectId, com.fasterxml.jackson.databind.JsonNode queryDsl) Deprecated. -
getAllTransactions
@Path("/{projectId}/transactions") @GET @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response getAllTransactions(@PathParam("projectId") String projectId) -
initTransaction
@Path("/{projectId}/transactions") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response initTransaction(TransactionDto transactionDto, @PathParam("projectId") String projectId) -
uploadZipToProject
@Path("/{projectId}/upload") @POST @Consumes("application/zip") @Produces("application/json") public javax.ws.rs.core.Response uploadZipToProject(@PathParam("projectId") String projectId, InputStream inputStreamObject, @HeaderParam("X-Encoding") @Nullable String encoding)
-