Class AdminOfferSyncResource


  • @Path("/storage/v1")
    public class AdminOfferSyncResource
    extends java.lang.Object
    • Constructor Detail

      • 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)