public interface PrintCommentService
CommentModels.| Modifier and Type | Interface and Description |
|---|---|
static class |
PrintCommentService.CommentType
An enumeration which identifies the four different comment/job types in InDesign.
|
| Modifier and Type | Method and Description |
|---|---|
CommentModel |
createComment(UserModel author,
String text)
|
void |
deleteComment(CommentModel comment)
This method should delete the given
CommentModel. |
Collection<CommentModel> |
filterComments(Collection<FilterCondition> filterConditions,
Collection<CommentModel> comments)
This method should filter the given collection of
CommentModel by the provided FilterConditions. |
ReplyModel |
getLastChange(CommentModel comment)
This method should return the last modified
ReplyModel if there are any. |
List<CommentModel> |
sortComments(List<SortCondition> sortConditions,
List<CommentModel> comments)
This method should be used for sorting the given list of
CommentModels by the provided
SortConditions. |
CommentModel createComment(UserModel author, String text)
author - the UserModel which should be set as the author of the CommentModeltext - the String which should be set for the CommentModelCommentModelvoid deleteComment(CommentModel comment)
CommentModel. After deletion additionally the comment group should be
checked
for emptiness. Empty comment groups should be deleted then.comment - the CommentModel which should be deleted.Collection<CommentModel> filterComments(Collection<FilterCondition> filterConditions, Collection<CommentModel> comments)
CommentModel by the provided FilterConditions.filterConditions - a collection of FilterConditions which should be used for filtering the commentscomments - a collection of CommentModels including their
WorkflowModel should be filtered by the given
FilterConditionsCommentModel or a empty collection if no CommentModel were
given or all
were filtered.ReplyModel getLastChange(CommentModel comment)
ReplyModel if there are any.comment - the CommentModel where the last change should be taken fromReplyModelList<CommentModel> sortComments(List<SortCondition> sortConditions, List<CommentModel> comments)
CommentModels by the provided
SortConditions.sortConditions - a list of SortConditions which should be used for sorting. Higher priorised
conditions should
be set first.comments - the list of CommentModels which should be sorted with SortConditionsCommentModels list or empty list if no CommentModels were given.Copyright © 2017 SAP SE. All Rights Reserved.