public interface CommentService
| Modifier and Type | Method and Description |
|---|---|
ReplyModel |
createReply(UserModel author,
AbstractCommentModel comment,
java.lang.String text)
Creates and returns a new comment reply.
|
java.util.Collection<CommentTypeModel> |
getAvailableCommentTypes(ComponentModel component)
Returns the available comment types for a given component.
|
java.util.List<CommentModel> |
getComments(UserModel user,
java.util.Collection<ComponentModel> components,
java.util.Collection<CommentTypeModel> types,
int offset,
int count)
Returns all comments in the specified domain components which are of the specified types and where
user is a participant. |
java.util.List<CommentModel> |
getComments(UserModel user,
java.util.Collection<ComponentModel> components,
int offset,
int count)
Returns all comments in the specified domain components where
user is a participant. |
java.util.List<CommentModel> |
getComments(UserModel user,
DomainModel domain,
java.util.Collection<CommentTypeModel> types,
int offset,
int count)
Returns all comments in the specified domain which are of the specified types and where
user is a
participant. |
java.util.List<CommentModel> |
getComments(UserModel user,
DomainModel domain,
int offset,
int count)
Returns all comments in the specified domain where
user is a participant. |
CommentTypeModel |
getCommentTypeByCode(ComponentModel component,
java.lang.String commentTypeCode)
Deprecated.
since ages - Use
getCommentTypeForCode(ComponentModel, String) instead. |
CommentTypeModel |
getCommentTypeForCode(ComponentModel component,
java.lang.String commentTypeCode)
Returns the comment type with the specified code.
|
ComponentModel |
getComponentByCode(DomainModel domain,
java.lang.String componentCode)
Deprecated.
since ages - Use
getComponentForCode(DomainModel, String) instead. |
ComponentModel |
getComponentForCode(DomainModel domain,
java.lang.String componentCode)
Returns the domain component with the specified code.
|
java.util.List<ReplyModel> |
getDirectReplies(CommentModel comment,
int offset,
int count)
Returns all direct comment replies for the specified comment.
|
DomainModel |
getDomainByCode(java.lang.String domainCode)
Deprecated.
since ages - Use
getDomainForCode(String) instead. |
DomainModel |
getDomainForCode(java.lang.String domainCode)
Returns the domain with specified code.
|
java.util.List<CommentModel> |
getItemComments(ItemModel item,
UserModel user,
java.util.Collection<ComponentModel> components,
java.util.Collection<CommentTypeModel> types,
int offset,
int count)
Returns all item comments for the specified item, which are in the specified domain components, of the specified
types and where
user is a participant. |
java.util.List<CommentModel> |
getItemComments(ItemModel item,
UserModel user,
java.util.Collection<ComponentModel> components,
int offset,
int count)
Returns all item comments for the specified item, which are in the specified domain components and where
user is a participant. |
java.util.List<CommentModel> |
getItemComments(ItemModel item,
UserModel user,
DomainModel domain,
java.util.Collection<CommentTypeModel> types,
int offset,
int count)
Returns all item comments for the specified item, which are in the specified domain, of the specified types and
where
user is a participant. |
java.util.List<CommentModel> |
getItemComments(ItemModel item,
UserModel user,
DomainModel domain,
int offset,
int count)
Returns all item comments for the specified item, which are in the specified domain and where
user is
a participant. |
CommentUserSettingModel |
getUserSetting(UserModel user,
AbstractCommentModel commentItem)
Returns the CommentUserSettingModel attached to the comment for the given user.
|
java.util.List<CommentModel> getComments(UserModel user, DomainModel domain, int offset, int count)
user is a participant.user - comment participantdomain - comment domainoffset - search offsetcount - max hit countjava.util.List<CommentModel> getComments(UserModel user, java.util.Collection<ComponentModel> components, int offset, int count)
user is a participant.user - comment participantcomponents - domain componentsoffset - search offsetcount - max hit countjava.util.List<CommentModel> getComments(UserModel user, DomainModel domain, java.util.Collection<CommentTypeModel> types, int offset, int count)
user is a
participant.user - comment participantdomain - comment domaintypes - comment typesoffset - search offsetcount - max hit countjava.util.List<CommentModel> getComments(UserModel user, java.util.Collection<ComponentModel> components, java.util.Collection<CommentTypeModel> types, int offset, int count)
user is a participant.user - comment participantcomponents - domain componentstypes - comment typesoffset - search offsetcount - max hit countjava.util.List<CommentModel> getItemComments(ItemModel item, UserModel user, DomainModel domain, int offset, int count)
user is
a participant.item - related itemuser - comment participantdomain - comment domainoffset - search offsetcount - max hit countjava.util.List<CommentModel> getItemComments(ItemModel item, UserModel user, java.util.Collection<ComponentModel> components, int offset, int count)
user is a participant.item - related itemuser - comment participantcomponents - domain componentsoffset - search offsetcount - max hit countjava.util.List<CommentModel> getItemComments(ItemModel item, UserModel user, DomainModel domain, java.util.Collection<CommentTypeModel> types, int offset, int count)
user is a participant.item - related itemuser - comment participantdomain - comment domaintypes - comment typesoffset - search offsetcount - max hit countjava.util.List<CommentModel> getItemComments(ItemModel item, UserModel user, java.util.Collection<ComponentModel> components, java.util.Collection<CommentTypeModel> types, int offset, int count)
user is a participant.item - related itemuser - comment participantcomponents - domain componentstypes - comment typesoffset - search offsetcount - max hit countjava.util.List<ReplyModel> getDirectReplies(CommentModel comment, int offset, int count)
comment - the commentoffset - search offsetcount - max hit countDomainModel getDomainForCode(java.lang.String domainCode)
domainCode - domain codenull if no domain with the code could be foundComponentModel getComponentForCode(DomainModel domain, java.lang.String componentCode)
domain - domaincomponentCode - domain component codenull if component could not be
foundCommentTypeModel getCommentTypeForCode(ComponentModel component, java.lang.String commentTypeCode)
component - domain componentcommentTypeCode - comment type codenull if type could
not be found@Deprecated DomainModel getDomainByCode(java.lang.String domainCode)
getDomainForCode(String) instead.@Deprecated ComponentModel getComponentByCode(DomainModel domain, java.lang.String componentCode)
getComponentForCode(DomainModel, String) instead.@Deprecated CommentTypeModel getCommentTypeByCode(ComponentModel component, java.lang.String commentTypeCode)
getCommentTypeForCode(ComponentModel, String) instead.CommentUserSettingModel getUserSetting(UserModel user, AbstractCommentModel commentItem)
ReplyModel createReply(UserModel author, AbstractCommentModel comment, java.lang.String text)
author - reply authorcomment - comment to reply totext - reply contentjava.util.Collection<CommentTypeModel> getAvailableCommentTypes(ComponentModel component)
Copyright © 2018 SAP SE. All Rights Reserved.