Class AdminOfferSyncResource

java.lang.Object
fr.gouv.vitam.storage.engine.server.rest.AdminOfferSyncResource

@Path("/storage/v1") public class AdminOfferSyncResource extends Object
  • Constructor Details

    • AdminOfferSyncResource

      public AdminOfferSyncResource(StorageDistribution distribution, StorageConfiguration storageConfiguration)
      Constructor.
    • AdminOfferSyncResource

      public AdminOfferSyncResource(OfferSyncService offerSyncService)
      Constructor.
      Parameters:
      offerSyncService -
  • Method Details

    • startPartialSynchronization

      @Path("/offerPartialSync") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response startPartialSynchronization(OfferPartialSyncRequest offerPartialSyncRequest)
    • startSynchronization

      @Path("/offerSync") @POST @Consumes("application/json") @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response startSynchronization(OfferSyncRequest offerSyncRequest)
      Start offer synchronization. At most, one synchronization process can be started.
    • isOfferSynchronizationRunning

      @Path("/offerSync") @HEAD @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response isOfferSynchronizationRunning()
      Returns offer synchronization process running status in a "Running" header (true/false).
    • getLastOfferSynchronizationStatus

      @Path("/offerSync") @GET @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public javax.ws.rs.core.Response getLastOfferSynchronizationStatus()
      Returns the offer synchronization status of the last synchronization (synchronization may be done, or still running)