Interface CommentDao

    • Method Detail

      • findCommentsByUser

        java.util.List<CommentModel> findCommentsByUser​(UserModel user,
                                                        java.util.Collection<ComponentModel> components,
                                                        int offset,
                                                        int count)
        Searches for all comments in the specified domain components where user is a participant i.e. where the user is either author, assignee or watcher.
        Parameters:
        user - comment participant
        components - domain components
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • findCommentsByType

        java.util.List<CommentModel> findCommentsByType​(UserModel user,
                                                        java.util.Collection<ComponentModel> components,
                                                        java.util.Collection<CommentTypeModel> types,
                                                        int offset,
                                                        int count)
        Searches for all comments of the specified types in the specified domain components where user is a participant.
        Parameters:
        user - comment participant
        components - domain components
        types - comment types
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • findCommentsByItem

        java.util.List<CommentModel> findCommentsByItem​(UserModel user,
                                                        java.util.Collection<ComponentModel> components,
                                                        ItemModel item,
                                                        int offset,
                                                        int count)
        Searches for all item comments related to the specified item, which are in the specified domain components and where user is a participant.
        Parameters:
        user - comment participant
        components - domain components
        item - related item
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • findCommentsByItemAndType

        java.util.List<CommentModel> findCommentsByItemAndType​(UserModel user,
                                                               java.util.Collection<ComponentModel> components,
                                                               ItemModel item,
                                                               java.util.Collection<CommentTypeModel> types,
                                                               int offset,
                                                               int count)
        Searches for all item comments related to the specified item, which are of the specified types, in the specified domain components and where user is a participant.
        Parameters:
        user - comment participant
        components - domain components
        item - related item
        types - comment types
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • findDirectRepliesByComment

        java.util.List<ReplyModel> findDirectRepliesByComment​(CommentModel comment,
                                                              int offset,
                                                              int count)
        Searches for all direct comment replies i.e. all first level replies to the specified comment.
        Parameters:
        comment - the comment
        offset - search offset
        count - max hit count
        Returns:
        all found direct replies in the specified range
      • findUserSettingsByComment

        java.util.List<CommentUserSettingModel> findUserSettingsByComment​(UserModel user,
                                                                          AbstractCommentModel comment)
        Searches for the comments user setting
        Parameters:
        user - comment participant
        comment - the comment item
        Returns:
        the user settings
      • findComponentsByDomainAndCode

        java.util.List<ComponentModel> findComponentsByDomainAndCode​(DomainModel domain,
                                                                     java.lang.String componentCode)
        Searches for components by domain and code.
      • findDomainsByCode

        java.util.List<DomainModel> findDomainsByCode​(java.lang.String domainCode)
        Searches for domains by code.
      • findAll

        @Deprecated(since="ages",
                    forRemoval=true)
        SearchResult<CommentModel> findAll​(UserModel user,
                                           java.util.Collection<ComponentModel> components,
                                           int offset,
                                           int count)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since ages - as of release 4.3, please usefindCommentsByUser(UserModel, Collection, int, int)
        Searches for all comments in the specified domain components where user is a participant i.e. where the user is either author, assignee or watcher.
        Parameters:
        user - comment participant
        components - domain components
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • findAllByType

        @Deprecated(since="ages",
                    forRemoval=true)
        SearchResult<CommentModel> findAllByType​(UserModel user,
                                                 java.util.Collection<ComponentModel> components,
                                                 java.util.Collection<CommentTypeModel> types,
                                                 int offset,
                                                 int count)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since ages - as of release 4.3, please usefindCommentsByType(UserModel, Collection, Collection, int, int)
        Searches for all comments of the specified types in the specified domain components where user is a participant.
        Parameters:
        user - comment participant
        components - domain components
        types - comment types
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • findAllByItem

        @Deprecated(since="ages",
                    forRemoval=true)
        SearchResult<CommentModel> findAllByItem​(UserModel user,
                                                 java.util.Collection<ComponentModel> components,
                                                 ItemModel item,
                                                 int offset,
                                                 int count)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since ages - as of release 4.3, please usefindCommentsByItem(UserModel, Collection, ItemModel, int, int)
        Searches for all item comments related to the specified item, which are in the specified domain components and where user is a participant.
        Parameters:
        user - comment participant
        components - domain components
        item - related item
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • findAllByItemAndType

        @Deprecated(since="ages",
                    forRemoval=true)
        SearchResult<CommentModel> findAllByItemAndType​(UserModel user,
                                                        java.util.Collection<ComponentModel> components,
                                                        ItemModel item,
                                                        java.util.Collection<CommentTypeModel> types,
                                                        int offset,
                                                        int count)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Searches for all item comments related to the specified item, which are of the specified types, in the specified domain components and where user is a participant.
        Parameters:
        user - comment participant
        components - domain components
        item - related item
        types - comment types
        offset - search offset
        count - max hit count
        Returns:
        all found comments in the specified range
      • findAllDirectReplies

        @Deprecated(since="ages",
                    forRemoval=true)
        SearchResult<ReplyModel> findAllDirectReplies​(CommentModel comment,
                                                      int offset,
                                                      int count)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since ages - as of release 4.3, please usefindDirectRepliesByComment(CommentModel, int, int)
        Searches for all direct comment replies i.e. all first level replies to the specified comment.
        Parameters:
        comment - the comment
        offset - search offset
        count - max hit count
        Returns:
        all found direct replies in the specified range