Interface CommentDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCommentDao
public interface CommentDao extends Dao
CommentModeldata access object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description 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)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)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.since ages - as of release 4.3, please usefindCommentsByItemAndType(UserModel, Collection, ItemModel, Collection, int, int)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)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)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 whereuseris a participant.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 whereuseris a participant.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 whereuseris a participant.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 whereuseris a participant i.e.java.util.List<ComponentModel>findComponentsByDomainAndCode(DomainModel domain, java.lang.String componentCode)Searches for components by domain and code.java.util.List<ReplyModel>findDirectRepliesByComment(CommentModel comment, int offset, int count)Searches for all direct comment replies i.e.java.util.List<DomainModel>findDomainsByCode(java.lang.String domainCode)Searches for domains by code.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)java.util.List<CommentUserSettingModel>findUserSettingsByComment(UserModel user, AbstractCommentModel comment)Searches for the comments user setting
-
-
-
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 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
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 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
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 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
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 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
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 commentoffset- search offsetcount- 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 participantcomment- 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 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, 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 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, 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 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, 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.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
-
-