Package fr.gouv.vitam.storage.engine.server.rest

# Class AdminOfferDiffResource

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

@Path("/storage/v1") public class AdminOfferDiffResource extends Object
Offer diff resource.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AdminOfferDiffResource(OfferDiffService offerDiffService)`
  Constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `jakarta.ws.rs.core.Response`
  `getLastOfferDiffStatus()`
  Returns the offer diff status of the last diff process (diff process may be done, or still running)
  `jakarta.ws.rs.core.Response`
  `isOfferDiffRunning()`
  Returns offer diff process running status in a "Running" header (true/false).
  `jakarta.ws.rs.core.Response`
  `startOfferDiff(OfferDiffRequest offerDiffRequest)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AdminOfferDiffResource

    public AdminOfferDiffResource(OfferDiffService offerDiffService)
    Constructor.

- ## Method Details

  - ### startOfferDiff

    @Path("/diff") @POST @Consumes("application/json") @Produces("application/json") @VitamAuthentication(authentLevel=BASIC_AUTHENT) public jakarta.ws.rs.core.Response startOfferDiff(OfferDiffRequest offerDiffRequest)

  - ### isOfferDiffRunning

    @Path("/diff") @HEAD @VitamAuthentication(authentLevel=BASIC_AUTHENT) public jakarta.ws.rs.core.Response isOfferDiffRunning()
    Returns offer diff process running status in a "Running" header (true/false).

  - ### getLastOfferDiffStatus

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