Class ArchiveUnitProfileResource
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.rest.ArchiveUnitProfileResource
-
@Path("/adminmanagement/v1") @ApplicationPath("webresources") public class ArchiveUnitProfileResource extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ARCHIVE_UNIT_PROFILE_URI
-
Constructor Summary
Constructors Constructor Description ArchiveUnitProfileResource(ArchiveUnitProfileService archiveUnitProfileService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createProfiles(java.util.List<ArchiveUnitProfileModel> archiveUnitProfileModelList, javax.ws.rs.core.UriInfo uri)
Import a set of DocumentTypes.javax.ws.rs.core.Response
findProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find archive unit profiles by queryDsljavax.ws.rs.core.Response
updateProfileFile(java.lang.String profileMetadataId, com.fasterxml.jackson.databind.JsonNode queryDsl)
Update metadata of the archive unit profile
-
-
-
Field Detail
-
ARCHIVE_UNIT_PROFILE_URI
public static final java.lang.String ARCHIVE_UNIT_PROFILE_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ArchiveUnitProfileResource
public ArchiveUnitProfileResource(ArchiveUnitProfileService archiveUnitProfileService)
- Parameters:
archiveUnitProfileService
-
-
-
Method Detail
-
createProfiles
@Path("/archiveunitprofiles") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response createProfiles(java.util.List<ArchiveUnitProfileModel> archiveUnitProfileModelList, @Context javax.ws.rs.core.UriInfo uri)
Import a set of DocumentTypes. If all the DocumentTypes are valid, they will be stored in the collection and indexed. The input is invalid in the following situations :- The json is invalid
- The json contains 2 ore many document types having the same identifier
- One or more mandatory field is missing
- A field has an invalid format
- One or many document type already exist in the database
- Parameters:
archiveUnitProfileModelList
- as InputStreamuri
- the uri info- Returns:
- Response
-
updateProfileFile
@Path("/archiveunitprofiles/{id}") @PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response updateProfileFile(@PathParam("id") java.lang.String profileMetadataId, com.fasterxml.jackson.databind.JsonNode queryDsl)
Update metadata of the archive unit profile- Parameters:
profileMetadataId
- profile ID to updatequeryDsl
- update query- Returns:
- Response
-
findProfiles
@GET @Path("/archiveunitprofiles") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response findProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find archive unit profiles by queryDsl- Parameters:
queryDsl
-- Returns:
- Response
-
-