Class AdminOfferSyncResource
java.lang.Object
fr.gouv.vitam.storage.engine.server.rest.AdminOfferSyncResource
-
Constructor Summary
ConstructorDescriptionAdminOfferSyncResource
(StorageDistribution distribution, StorageConfiguration storageConfiguration) Constructor.AdminOfferSyncResource
(OfferSyncService offerSyncService) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
Returns the offer synchronization status of the last synchronization (synchronization may be done, or still running)javax.ws.rs.core.Response
Returns offer synchronization process running status in a "Running" header (true/false).javax.ws.rs.core.Response
startPartialSynchronization
(OfferPartialSyncRequest offerPartialSyncRequest) javax.ws.rs.core.Response
startSynchronization
(OfferSyncRequest offerSyncRequest) Start offer synchronization.
-
Constructor Details
-
AdminOfferSyncResource
public AdminOfferSyncResource(StorageDistribution distribution, StorageConfiguration storageConfiguration) Constructor. -
AdminOfferSyncResource
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)
-