Class DummyOwnershipIssues

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<IssueId> confirmOwnership​(java.util.Optional<IssueId> issueId, ApplicationSummary summary, User assignee, Contact contact)
      Ensure ownership of the given application has been recently confirmed by the given user.
      void ensureResponse​(IssueId issueId, java.util.Optional<Contact> contact)
      Make sure the given ownership confirmation request is acted upon, unless it is already acknowledged.
      java.util.Optional<User> getConfirmedOwner​(IssueId issueId)
      Get the owner of an application, given its ownership issue ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DummyOwnershipIssues

        public DummyOwnershipIssues()
    • Method Detail

      • confirmOwnership

        public java.util.Optional<IssueId> confirmOwnership​(java.util.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,
                                   java.util.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 java.util.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.