Class DeleteDocumentUseCase
java.lang.Object
com.irurueta.authserver.bff.application.documents.DeleteDocumentUseCase
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final DocumentGatewayPort to the documents on the resource server. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
documentGateway
Port to the documents on the resource server.
-
-
Constructor Details
-
DeleteDocumentUseCase
public DeleteDocumentUseCase()
-
-
Method Details
-
execute
Deletes a document.- Parameters:
id- identifier of the document.
-