public class CommentEditingValidationStrategy extends AbstractNoteValidationStrategy
comment's text. If changes were made the strategy
checks that there are no replies and the author and the user who made the change are actually the same.| Constructor and Description |
|---|
CommentEditingValidationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected PrintTranslatorService |
getPrintTranslatorService() |
void |
setPrintTranslatorService(PrintTranslatorService printTranslatorService) |
void |
setUserService(UserService userService) |
void |
validate(NoteInfo ctx,
CommentModel comment)
Validates
Note against the given CommentModel. |
protected void |
validateDescriptionChange(NoteInfo ctx,
CommentModel comment) |
translateDescriptionpublic void validate(NoteInfo ctx, CommentModel comment) throws CometException, CometValidationException
NoteValidationStrategyNote against the given CommentModel. NoteInfo may contain various information about the
conversion context including the Note. If validation fails, a CometException will be thrown.ctx - The NoteInfo containing all required information for validation and conversion.comment - The CommentModel where the note should be converted to.CometException - whenever a validation violation occurres.CometValidationException - if validation failed.protected void validateDescriptionChange(NoteInfo ctx, CommentModel comment) throws CometValidationException
CometValidationExceptionprotected PrintTranslatorService getPrintTranslatorService()
getPrintTranslatorService in class AbstractNoteValidationStrategypublic void setPrintTranslatorService(PrintTranslatorService printTranslatorService)
setPrintTranslatorService in class AbstractNoteValidationStrategypublic void setUserService(UserService userService)
Copyright © 2017 SAP SE. All Rights Reserved.