Interface CommentDao

All Superinterfaces:
Dao
All Known Implementing Classes:
DefaultCommentDao

public interface CommentDao extends Dao
CommentModel data access object.
  • Method Details

    • findCommentsByUser

      List<CommentModel> findCommentsByUser(UserModel user, 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

      List<CommentModel> findCommentsByType(UserModel user, Collection<ComponentModel> components, 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

      List<CommentModel> findCommentsByItem(UserModel user, 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

      List<CommentModel> findCommentsByItemAndType(UserModel user, Collection<ComponentModel> components, ItemModel item, 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

      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

      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

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

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

      @Deprecated(since="ages", forRemoval=true) SearchResult<CommentModel> findAll(UserModel user, 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, Collection<ComponentModel> components, 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, 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, Collection<ComponentModel> components, ItemModel item, 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
    • findUserSettingByComment

      @Deprecated(since="ages", forRemoval=true) SearchResult<CommentUserSettingModel> findUserSettingByComment(UserModel user, AbstractCommentModel comment)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since ages - as of release 4.3, please usefindUserSettingsByComment(UserModel, AbstractCommentModel)
      Searches for the comments user setting
      Parameters:
      user - comment participant
      comment - the comment item
      Returns:
      the user setting