Interface IFormRecordChatHandler

    • Method Detail

      • getByUuid

        FormRecordChat getByUuid​(UserContext uc,
                                 UUID uuid)
        Finds the chat for the given UUID.
        Parameters:
        uc - user context for accessing the database
        uuid - the UUID of the chat
        Returns:
        The chat with the given UUID
      • getByUuidAndUser

        FormRecordChat getByUuidAndUser​(UserContext uc,
                                        UUID uuid,
                                        IUser user)
        Finds the chat for the given UUID if the given user can access the chat.
        Parameters:
        uc - user context for database transactions.
        uuid - the UUID of the chat
        user - user to get the chat for.
        Returns:
        The chat with the given UUID if it exists and the user can access it. null otherwise.
        See Also:
        getByUser(UserContext, IUser)
      • getByUser

        PagedResult<FormRecordChat> getByUser​(UserContext uc,
                                              IUser user,
                                              int page,
                                              int pageSize)
        Finds all form record chats the given user has access to via the public REST API.
        Parameters:
        uc - user context for database transactions.
        user - user to get the chats for.
        page - to get.
        pageSize - size of the page to get.
        Returns:
        a list of the user's form record chats ordered by their creation instant (desc).
        See Also:
        getByUser(UserContext, IUser)
      • getByRecordAndUser

        PagedResult<FormRecordChat> getByRecordAndUser​(UserContext uc,
                                                       UUID recordUuid,
                                                       IUser user,
                                                       int page,
                                                       int pageSize)
        Finds the chats for the form record given by its UUID if the given user can access the chat.
        Parameters:
        uc - user context for accessing the database.
        recordUuid - the UUID of the form record
        user - to get the form record chats for.
        page - to get.
        pageSize - size of the page to get.
        Returns:
        a list of form record chats the user has access to ordered by their creation instant (desc). null if the form record given by the UUID could not be found.
        See Also:
        getByUser(UserContext, IUser)
      • getAllByRecord

        List<FormRecordChat> getAllByRecord​(UserContext uc,
                                            String recordUuid)
        Finds all chats for the form record given by its UUID.
        Parameters:
        uc - user context for accessing the database.
        recordUuid - the UUID of the form record
        Returns:
        a list of form record chats ordered by their creation instant (desc). null if the form record given by the UUID could not be found.