Class ListDocumentsUseCase
java.lang.Object
com.irurueta.authserver.resourceserver.application.documents.ListDocumentsUseCase
Use case that lists documents: those of one owner, or all of them.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DocumentRepositoryPort that provides the documents. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
documentRepository
Port that provides the documents.
-
-
Constructor Details
-
ListDocumentsUseCase
public ListDocumentsUseCase()
-
-
Method Details
-
listOwn
Lists the documents of one owner.- Parameters:
owner- subject of the owner.- Returns:
- the documents of the owner.
-
listAll
Lists every document.- Returns:
- all documents.
-