public static interface ContentTemplateService.Validator
Modifier and Type | Method and Description |
---|---|
ValidationResult |
validateCreate(ContentTemplate newContentTemplate)
Validate that the specified contentTemplate can be created by the current user.
|
default ValidationResult |
validateCreateInstance(ContentBlueprintInstance instance)
Validate instance is legit to create draft/page instance.
|
ValidationResult |
validateDelete(ContentTemplateId contentTemplateId)
Validate that a piece of contentTemplate can be deleted, including permission checks.
|
ValidationResult |
validateGet(ContentTemplateId contentTemplateId)
Validate that current user has permission to view a particular template.
|
ValidationResult |
validateUpdate(ContentTemplate contentTemplate) |
ValidationResult validateDelete(ContentTemplateId contentTemplateId)
"Deletion" here refers to the operation ContentTemplateService.delete(ContentTemplateId)
contentTemplateId
- the content to be deletedValidationResult validateCreate(ContentTemplate newContentTemplate) throws ServiceException
newContentTemplate
- the content to be createdServiceException
ValidationResult validateUpdate(ContentTemplate contentTemplate)
ValidationResult validateGet(ContentTemplateId contentTemplateId)
contentTemplateId
- default ValidationResult validateCreateInstance(ContentBlueprintInstance instance)
TODO CRA-1266 change default method to interface after Blueprint service in CC plugin implemented this interface.
instance
- Copyright © 2003–2021 Atlassian. All rights reserved.