public class DefaultNoteValidationService extends Object implements NoteValidationService
| Constructor and Description |
|---|
DefaultNoteValidationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
setValidationStrategies(List<NoteValidationStrategy> validationStrategies) |
void |
validate(NoteInfo ctx,
CommentModel comment)
|
public void validate(NoteInfo ctx, CommentModel comment) throws CometException, CometValidationException
NoteValidationServiceNote within the NoteInfo
against the given CommentModel. If validation fails, a CometValidationException will be thrown.validate in interface NoteValidationServicectx - The given validation context which contains the required
Note and
PageModel.comment - The comment to validate the given Note
against.CometException - whenever a severe error occurred.CometValidationException - if validation failed.public void setValidationStrategies(List<NoteValidationStrategy> validationStrategies)
Copyright © 2017 SAP SE. All Rights Reserved.