Class AdminOfferSyncResource
- java.lang.Object
-
- fr.gouv.vitam.storage.engine.server.rest.AdminOfferSyncResource
-
@Path("/storage/v1") public class AdminOfferSyncResource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AdminOfferSyncResource(StorageDistribution distribution, StorageConfiguration storageConfiguration)
Constructor.AdminOfferSyncResource(OfferSyncService offerSyncService)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getLastOfferSynchronizationStatus()
Returns the offer synchronization status of the last synchronization (synchronization may be done, or still running)javax.ws.rs.core.Response
isOfferSynchronizationRunning()
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 Detail
-
AdminOfferSyncResource
public AdminOfferSyncResource(StorageDistribution distribution, StorageConfiguration storageConfiguration)
Constructor.
-
AdminOfferSyncResource
public AdminOfferSyncResource(OfferSyncService offerSyncService)
Constructor.- Parameters:
offerSyncService
-
-
-
Method Detail
-
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)
-
-