@Path(value="/adminmanagement/v1") @ApplicationPath(value="webresources") public class ProfileResource extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROFILE_URI |
static String |
UPDATE_PROFIL_URI |
Constructor and Description |
---|
ProfileResource(AdminManagementConfiguration configuration,
MongoDbAccessAdminImpl mongoAccess,
VitamCounterService vitamCounterService,
FunctionalBackupService functionalBackupService) |
ProfileResource(WorkspaceClientFactory workspaceClientFactory,
MongoDbAccessAdminImpl mongoAccess,
VitamCounterService vitamCounterService,
FunctionalBackupService functionalBackupService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createProfiles(List<ProfileModel> profileModelList,
javax.ws.rs.core.UriInfo uri)
Import a set of profiles.
|
javax.ws.rs.core.Response |
downloadProfileFile(String profileMetadataId) |
javax.ws.rs.core.Response |
findProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find profiles by queryDsl
|
javax.ws.rs.core.Response |
importProfileFile(javax.ws.rs.core.UriInfo uri,
String profileMetadataId,
InputStream profileFile)
Import a Profile file document (xsd or rng, ...)
|
javax.ws.rs.core.Response |
updateProfileFile(String profileMetadataId,
com.fasterxml.jackson.databind.JsonNode queryDsl)
Update the detail of the profile
|
public static final String PROFILE_URI
public static final String UPDATE_PROFIL_URI
public ProfileResource(AdminManagementConfiguration configuration, MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService, FunctionalBackupService functionalBackupService)
configuration
- mongoAccess
- vitamCounterService
- public ProfileResource(WorkspaceClientFactory workspaceClientFactory, MongoDbAccessAdminImpl mongoAccess, VitamCounterService vitamCounterService, FunctionalBackupService functionalBackupService)
@Path(value="/profiles") @POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createProfiles(List<ProfileModel> profileModelList, @Context javax.ws.rs.core.UriInfo uri)
profileModelList
- as InputStreamuri
- the uri info@Path(value="/profiles/{id}") @PUT @Consumes(value="application/octet-stream") @Produces(value="application/json") public javax.ws.rs.core.Response importProfileFile(@Context javax.ws.rs.core.UriInfo uri, @PathParam(value="id") String profileMetadataId, InputStream profileFile)
uri
- used to construct the created resource and send it back as location in the responseprofileMetadataId
- id of the profile metadataprofileFile
- inputStream representing the data to import@Path(value="/profiles/{id}") @PUT @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response updateProfileFile(@PathParam(value="id") String profileMetadataId, com.fasterxml.jackson.databind.JsonNode queryDsl)
profileMetadataId
- queryDsl
- @GET @Path(value="/profiles/{id}") @Produces(value="application/octet-stream") public javax.ws.rs.core.Response downloadProfileFile(@PathParam(value="id") String profileMetadataId)
@GET @Path(value="/profiles") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response findProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl)
queryDsl
- Copyright © 2018 Vitam. All rights reserved.