Interface CommentDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCommentDao
CommentModel data access object.-
Method Summary
Modifier and TypeMethodDescriptionfindAll(UserModel user, Collection<ComponentModel> components, int offset, int count) Deprecated, for removal: This API element is subject to removal in a future version.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)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.since ages - as of release 4.3, please usefindCommentsByItemAndType(UserModel, Collection, ItemModel, Collection, int, int)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)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)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 whereuseris a participant.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 whereuseris a participant.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 whereuseris a participant.findCommentsByUser(UserModel user, Collection<ComponentModel> components, int offset, int count) Searches for all comments in the specified domain components whereuseris a participant i.e.findComponentsByDomainAndCode(DomainModel domain, String componentCode) Searches for components by domain and code.findDirectRepliesByComment(CommentModel comment, int offset, int count) Searches for all direct comment replies i.e.findDomainsByCode(String domainCode) Searches for domains by code.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)findUserSettingsByComment(UserModel user, AbstractCommentModel comment) Searches for the comments user setting
-
Method Details
-
findCommentsByUser
List<CommentModel> findCommentsByUser(UserModel user, Collection<ComponentModel> components, int offset, int count) Searches for all comments in the specified domain components whereuseris a participant i.e. where the user is either author, assignee or watcher.- Parameters:
user- comment participantcomponents- domain componentsoffset- search offsetcount- 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 whereuseris a participant.- Parameters:
user- comment participantcomponents- domain componentstypes- comment typesoffset- search offsetcount- 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 whereuseris a participant.- Parameters:
user- comment participantcomponents- domain componentsitem- related itemoffset- search offsetcount- 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 whereuseris a participant.- Parameters:
user- comment participantcomponents- domain componentsitem- related itemtypes- comment typesoffset- search offsetcount- max hit count- Returns:
- all found comments in the specified range
-
findDirectRepliesByComment
Searches for all direct comment replies i.e. all first level replies to the specified comment.- Parameters:
comment- the commentoffset- search offsetcount- 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 participantcomment- the comment item- Returns:
- the user settings
-
findComponentsByDomainAndCode
Searches for components by domain and code. -
findDomainsByCode
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 whereuseris a participant i.e. where the user is either author, assignee or watcher.- Parameters:
user- comment participantcomponents- domain componentsoffset- search offsetcount- 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 whereuseris a participant.- Parameters:
user- comment participantcomponents- domain componentstypes- comment typesoffset- search offsetcount- 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 whereuseris a participant.- Parameters:
user- comment participantcomponents- domain componentsitem- related itemoffset- search offsetcount- 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.since ages - as of release 4.3, please usefindCommentsByItemAndType(UserModel, Collection, ItemModel, Collection, int, int)Searches for all item comments related to the specified item, which are of the specified types, in the specified domain components and whereuseris a participant.- Parameters:
user- comment participantcomponents- domain componentsitem- related itemtypes- comment typesoffset- search offsetcount- 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 commentoffset- search offsetcount- 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 participantcomment- the comment item- Returns:
- the user setting
-
findCommentsByUser(UserModel, Collection, int, int)