public class AssigneeNoteValidationStrategy extends Object implements NoteValidationStrategy
WorkflowActionModel is either a
EmployeeModel or a UserGroup. In
addition it ensures appropriate permissions to PageModel and WorkflowActionModel.| Constructor and Description |
|---|
AssigneeNoteValidationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected PrincipalModel |
getResponsiblePrincipal(NoteInfo ctx) |
void |
setPermissionCheckingService(PermissionCheckingService permissionCheckingService) |
void |
setUserService(UserService userService) |
void |
validate(NoteInfo noteInfo,
CommentModel comment)
Validates
Note against the given CommentModel. |
public void validate(NoteInfo noteInfo, 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.validate in interface NoteValidationStrategynoteInfo - 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 PrincipalModel getResponsiblePrincipal(NoteInfo ctx) throws UnknownIdentifierException
UnknownIdentifierExceptionpublic void setPermissionCheckingService(PermissionCheckingService permissionCheckingService)
public void setUserService(UserService userService)
Copyright © 2017 SAP SE. All Rights Reserved.