Interface IDirectClientAuthorizationDao

    • Method Detail

      • getAllByClient

        List<DirectClientAuthorization> getAllByClient​(IEntityContext ec,
                                                       Mandant client,
                                                       boolean acceptedOnly)
        Finds all authorizations for a given client scope.
        Parameters:
        ec - Entity context for accessing the database
        client - Client scope where to look for users.
        acceptedOnly - If true, returns only those users that have accepted the invitation, see DirectClientAuthorization.isInvitationAccepted().
        Returns:
        A list with all authorizations from the given client scope.
      • getByInvitationUuid

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

        boolean hasUnacceptedClientInvitations​(IEntityContext ec,
                                               UserProfile userProfile)
        Checks whether the given user profile has not yet accepted client invitations.
        Parameters:
        ec - entity context for database transactions.
        userProfile - to check
        Returns:
        true if there are not yet accepted client invitations and false otherwise.
      • getUnacceptedClientInvitations

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