public class DefaultCommentDao extends java.lang.Object implements CommentDao
| Constructor and Description |
|---|
DefaultCommentDao() |
| Modifier and Type | Method and Description |
|---|---|
SearchResult<CommentModel> |
findAll(UserModel user,
java.util.Collection<ComponentModel> components,
int offset,
int count)
Deprecated.
since ages
|
SearchResult<CommentModel> |
findAllByItem(UserModel user,
java.util.Collection<ComponentModel> components,
ItemModel item,
int offset,
int count)
Deprecated.
since ages
|
SearchResult<CommentModel> |
findAllByItemAndType(UserModel user,
java.util.Collection<ComponentModel> components,
ItemModel item,
java.util.Collection<CommentTypeModel> types,
int offset,
int count)
Deprecated.
since ages
|
SearchResult<CommentModel> |
findAllByType(UserModel user,
java.util.Collection<ComponentModel> components,
java.util.Collection<CommentTypeModel> types,
int offset,
int count)
Deprecated.
since ages
|
SearchResult<ReplyModel> |
findAllDirectReplies(CommentModel comment,
int offset,
int count)
Deprecated.
since ages
|
protected SearchResult<CommentModel> |
findAllInternal(UserModel user,
java.util.Collection<ComponentModel> components,
java.util.Collection<CommentTypeModel> types,
ItemModel item,
int offset,
int count) |
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. |
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. |
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. |
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. |
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 commentItem)
Deprecated.
since ages
|
java.util.List<CommentUserSettingModel> |
findUserSettingsByComment(UserModel user,
AbstractCommentModel comment)
Searches for the comments user setting
|
protected <T extends AbstractItemModel> |
searchInternal(java.lang.String query,
java.util.Map<java.lang.String,java.lang.Object> params,
int offset,
int count) |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
@Deprecated public SearchResult<CommentModel> findAll(UserModel user, java.util.Collection<ComponentModel> components, int offset, int count)
CommentDaouser is a participant i.e. where
the user is either author, assignee or watcher.findAll in interface CommentDaouser - comment participantcomponents - domain componentsoffset - search offsetcount - max hit count@Deprecated public SearchResult<CommentModel> findAllByItem(UserModel user, java.util.Collection<ComponentModel> components, ItemModel item, int offset, int count)
CommentDaouser is a participant.findAllByItem in interface CommentDaouser - comment participantcomponents - domain componentsitem - related itemoffset - search offsetcount - max hit count@Deprecated public SearchResult<CommentModel> findAllByItemAndType(UserModel user, java.util.Collection<ComponentModel> components, ItemModel item, java.util.Collection<CommentTypeModel> types, int offset, int count)
CommentDaouser is a participant.findAllByItemAndType in interface CommentDaouser - comment participantcomponents - domain componentsitem - related itemtypes - comment typesoffset - search offsetcount - max hit count@Deprecated public SearchResult<CommentModel> findAllByType(UserModel user, java.util.Collection<ComponentModel> components, java.util.Collection<CommentTypeModel> types, int offset, int count)
CommentDaouser is a
participant.findAllByType in interface CommentDaouser - comment participantcomponents - domain componentstypes - comment typesoffset - search offsetcount - max hit count@Deprecated public SearchResult<ReplyModel> findAllDirectReplies(CommentModel comment, int offset, int count)
CommentDaofindAllDirectReplies in interface CommentDaocomment - the commentoffset - search offsetcount - max hit countprotected SearchResult<CommentModel> findAllInternal(UserModel user, java.util.Collection<ComponentModel> components, java.util.Collection<CommentTypeModel> types, ItemModel item, int offset, int count)
@Deprecated public SearchResult<CommentUserSettingModel> findUserSettingByComment(UserModel user, AbstractCommentModel commentItem)
CommentDaofindUserSettingByComment in interface CommentDaouser - comment participantcommentItem - the comment itemprotected <T extends AbstractItemModel> SearchResult<T> searchInternal(java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> params, int offset, int count)
public java.util.List<CommentModel> findCommentsByItem(UserModel user, java.util.Collection<ComponentModel> components, ItemModel item, int offset, int count)
CommentDaouser is a participant.findCommentsByItem in interface CommentDaouser - comment participantcomponents - domain componentsitem - related itemoffset - search offsetcount - max hit countpublic java.util.List<CommentModel> findCommentsByItemAndType(UserModel user, java.util.Collection<ComponentModel> components, ItemModel item, java.util.Collection<CommentTypeModel> types, int offset, int count)
CommentDaouser is a participant.findCommentsByItemAndType in interface CommentDaouser - comment participantcomponents - domain componentsitem - related itemtypes - comment typesoffset - search offsetcount - max hit countpublic java.util.List<CommentModel> findCommentsByType(UserModel user, java.util.Collection<ComponentModel> components, java.util.Collection<CommentTypeModel> types, int offset, int count)
CommentDaouser is a
participant.findCommentsByType in interface CommentDaouser - comment participantcomponents - domain componentstypes - comment typesoffset - search offsetcount - max hit countpublic java.util.List<CommentModel> findCommentsByUser(UserModel user, java.util.Collection<ComponentModel> components, int offset, int count)
CommentDaouser is a participant i.e. where
the user is either author, assignee or watcher.findCommentsByUser in interface CommentDaouser - comment participantcomponents - domain componentsoffset - search offsetcount - max hit countpublic java.util.List<ReplyModel> findDirectRepliesByComment(CommentModel comment, int offset, int count)
CommentDaofindDirectRepliesByComment in interface CommentDaocomment - the commentoffset - search offsetcount - max hit countpublic java.util.List<CommentUserSettingModel> findUserSettingsByComment(UserModel user, AbstractCommentModel comment)
CommentDaofindUserSettingsByComment in interface CommentDaouser - comment participantcomment - the comment itempublic void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
public java.util.List<ComponentModel> findComponentsByDomainAndCode(DomainModel domain, java.lang.String componentCode)
CommentDaofindComponentsByDomainAndCode in interface CommentDaopublic java.util.List<DomainModel> findDomainsByCode(java.lang.String domainCode)
CommentDaofindDomainsByCode in interface CommentDaoCopyright © 2018 SAP SE. All Rights Reserved.