Class AdminMigrationResource
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.rest.AdminMigrationResource
-
@Path("/adminmanagement/v1") @ApplicationPath("webresources") public class AdminMigrationResource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AdminMigrationResource(LogbookOperationsClientFactory logbookOperationsClientFactory, ProcessingManagementClientFactory processingManagementClientFactory, WorkspaceClientFactory workspaceClientFactory, AdminManagementConfiguration configuration, OntologyLoader ontologyLoader, ElasticsearchFunctionalAdminIndexManager indexManager)
AdminMigrationResource
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
check()
Check migration statusjavax.ws.rs.core.Response
migrateCollection(DataMigrationBody dataMigrationBody)
Migrate Collections : To add a new Migration scenary, please add a AUTHORIZED_FIELDS_TO_UPDATE list in the concerned collection to control fields to update.javax.ws.rs.core.Response
start(javax.ws.rs.core.HttpHeaders headers)
Migration Api
-
-
-
Constructor Detail
-
AdminMigrationResource
public AdminMigrationResource(LogbookOperationsClientFactory logbookOperationsClientFactory, ProcessingManagementClientFactory processingManagementClientFactory, WorkspaceClientFactory workspaceClientFactory, AdminManagementConfiguration configuration, OntologyLoader ontologyLoader, ElasticsearchFunctionalAdminIndexManager indexManager)
AdminMigrationResource- Parameters:
logbookOperationsClientFactory
- logbookOperationsClientFactoryprocessingManagementClientFactory
- processingManagementClientFactoryworkspaceClientFactory
- workspaceClientFactory
-
-
Method Detail
-
start
@POST @Path("/startMigration") @Consumes("application/json") @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response start(@Context javax.ws.rs.core.HttpHeaders headers)
Migration Api- Parameters:
headers
- headers- Returns:
- Response
-
check
@HEAD @Path("/migrationStatus") @Consumes("application/json") @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response check()
Check migration status- Returns:
- Response
-
migrateCollection
@Path("collectionMigration") @PUT @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response migrateCollection(DataMigrationBody dataMigrationBody)
Migrate Collections : To add a new Migration scenary, please add a AUTHORIZED_FIELDS_TO_UPDATE list in the concerned collection to control fields to update. Collection should be controled by its enum family ( FunctionalAdminCollections, OfferCollections, LogbookCollections, ... )- Parameters:
dataMigrationBody
-- Returns:
-
-