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

@Service public class ListDocumentsUseCase extends Object
Use case that lists documents: those of one owner, or all of them.
  • Field Details

    • documentRepository

      private final DocumentRepository documentRepository
      Port that provides the documents.
  • Constructor Details

    • ListDocumentsUseCase

      public ListDocumentsUseCase()
  • Method Details

    • listOwn

      public List<Document> listOwn(String owner)
      Lists the documents of one owner.
      Parameters:
      owner - subject of the owner.
      Returns:
      the documents of the owner.
    • listAll

      public List<Document> listAll()
      Lists every document.
      Returns:
      all documents.