Class CleanupItemRest
java.lang.Object
org.exoplatform.addons.documents.cleanup.rest.CleanupItemRest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidkeepItem(jakarta.servlet.http.HttpServletRequest request, long id) keepItems(jakarta.servlet.http.HttpServletRequest request, KeepItemsRestEntity keepItemsEntity) Answers 200 with the per-item outcomes, NEVER a blanket 204: a bulk keep continues past individual failures, so the UI has to be able to warn instead of reporting a success when nothing was actually kept.voidunkeepItem(jakarta.servlet.http.HttpServletRequest request, long id) unkeepItems(jakarta.servlet.http.HttpServletRequest request, KeepItemsRestEntity keepItemsEntity) Answers 200 with the per-item outcomes, mirroringkeepItems(HttpServletRequest, KeepItemsRestEntity).
-
Constructor Details
-
CleanupItemRest
public CleanupItemRest()
-
-
Method Details
-
keepItem
@Secured("users") @PostMapping("{id}/keep") @ResponseStatus(NO_CONTENT) public void keepItem(jakarta.servlet.http.HttpServletRequest request, @PathVariable("id") long id) -
keepItems
@Secured("users") @PostMapping(path="keep", consumes="application/json", produces="application/json") public KeepItemsResultRestEntity keepItems(jakarta.servlet.http.HttpServletRequest request, @RequestBody KeepItemsRestEntity keepItemsEntity) Answers 200 with the per-item outcomes, NEVER a blanket 204: a bulk keep continues past individual failures, so the UI has to be able to warn instead of reporting a success when nothing was actually kept. -
unkeepItem
@Secured("users") @PostMapping("{id}/unkeep") @ResponseStatus(NO_CONTENT) public void unkeepItem(jakarta.servlet.http.HttpServletRequest request, @PathVariable("id") long id) -
unkeepItems
@Secured("users") @PostMapping(path="unkeep", consumes="application/json", produces="application/json") public KeepItemsResultRestEntity unkeepItems(jakarta.servlet.http.HttpServletRequest request, @RequestBody KeepItemsRestEntity keepItemsEntity) Answers 200 with the per-item outcomes, mirroringkeepItems(HttpServletRequest, KeepItemsRestEntity).
-