Class ListDocumentsOnBehalfOfUseCase

java.lang.Object
com.irurueta.authserver.serviceclient.application.documents.ListDocumentsOnBehalfOfUseCase

@Service public class ListDocumentsOnBehalfOfUseCase extends Object
Use case that lists the documents a user may see, on behalf of that user (token exchange).
  • Field Details

    • onBehalfOfDocumentGateway

      private final OnBehalfOfDocumentGateway onBehalfOfDocumentGateway
      Port to the documents on the resource server on behalf of a user.
  • Constructor Details

    • ListDocumentsOnBehalfOfUseCase

      public ListDocumentsOnBehalfOfUseCase()
  • Method Details

    • execute

      public List<Document> execute(String subjectToken)
      Lists the documents the user may see.
      Parameters:
      subjectToken - access token of the user.
      Returns:
      the documents, empty when there are none.
      Throws:
      IllegalArgumentException - if the subject token is null or blank.