Class DummyOwnershipIssues

    • Constructor Detail

      • DummyOwnershipIssues

        public DummyOwnershipIssues()
    • Method Detail

      • confirmOwnership

        public Optional<IssueId> confirmOwnership​(Optional<IssueId> issueId,
                                                  ApplicationSummary summary,
                                                  User assignee,
                                                  Contact contact)
        Description copied from interface: OwnershipIssues
        Ensure ownership of the given application has been recently confirmed by the given user.
        Specified by:
        confirmOwnership in interface OwnershipIssues
        Parameters:
        issueId - ID of the previous ownership issue filed for the given application.
        summary - Summary of an application for which to file an issue.
        assignee - Issue assignee
        contact - Contact info for the application tenant
        Returns:
        ID of the created issue, if one was created.
      • ensureResponse

        public void ensureResponse​(IssueId issueId,
                                   Optional<Contact> contact)
        Description copied from interface: OwnershipIssues
        Make sure the given ownership confirmation request is acted upon, unless it is already acknowledged.
        Specified by:
        ensureResponse in interface OwnershipIssues
        Parameters:
        issueId - ID of the ownership issue to escalate.
        contact - Contact information of application tenant
      • getConfirmedOwner

        public Optional<User> getConfirmedOwner​(IssueId issueId)
        Description copied from interface: OwnershipIssues
        Get the owner of an application, given its ownership issue ID.
        Specified by:
        getConfirmedOwner in interface OwnershipIssues
        Parameters:
        issueId - ID of the ownership issue.
        Returns:
        The owner of the application, if it has been confirmed.