Class DeleteDocumentUseCase

java.lang.Object
com.irurueta.authserver.bff.application.documents.DeleteDocumentUseCase

@Service public class DeleteDocumentUseCase extends Object
Use case that deletes one document of the signed-in user. Whether the user may delete it (their own, or any document for an administrator) is decided by the resource server, which reports someone else's document as missing.
  • Field Details

    • documentGateway

      private final DocumentGateway documentGateway
      Port to the documents on the resource server.
  • Constructor Details

    • DeleteDocumentUseCase

      public DeleteDocumentUseCase()
  • Method Details

    • execute

      public void execute(String id)
      Deletes a document.
      Parameters:
      id - identifier of the document.