Class DirectClientAuthorizationAPI

    • Constructor Detail

      • DirectClientAuthorizationAPI

        public DirectClientAuthorizationAPI()
    • Method Detail

      • getByInvitationUuid

        public DirectClientAuthorization getByInvitationUuid​(UserContext uc,
                                                             UUID invitationUuid)
        Finds the direct client authorization with the given invitation UUID.
        Parameters:
        uc - User context for database transactions.
        invitationUuid - invitation UUID of the client authorization.
        Returns:
        The direct client authorization with the given invitation UUID.
      • hasUnacceptedClientInvitations

        public boolean hasUnacceptedClientInvitations​(UserContext uc,
                                                      UserProfile userProfile)
        Checks whether the given user profile has unaccepted client invitations.
        Parameters:
        uc - User context for database transactions.
        userProfile - to check
        Returns:
        true if there are unaccepted client invitations and false otherwise.
      • getUnacceptedClientInvitations

        public List<DirectClientAuthorization> getUnacceptedClientInvitations​(UserContext uc,
                                                                              UserProfile userProfile)
        Returns the direct client authorizations for the given user profile that have not yet been accepted.
        Parameters:
        uc - User context for database transactions.
        userProfile - to check
        Returns:
        list of unaccepted direct client authorizations.