Class ListDocumentsUseCase

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

@Service public class ListDocumentsUseCase extends Object
Use case that lists the documents of the signed-in user. Which documents the user sees (their own, or every document for an administrator) is decided by the resource server.
  • Field Details

    • documentGateway

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

    • ListDocumentsUseCase

      public ListDocumentsUseCase()
  • Method Details

    • execute

      public List<Document> execute()
      Lists the documents of the signed-in user.
      Returns:
      the documents, empty when there are none.