com.atlassian.confluence.api.impl.service.content
Class ContentServiceImpl.ValidatorImpl
java.lang.Object
com.atlassian.confluence.api.impl.service.content.ContentServiceImpl.ValidatorImpl
- All Implemented Interfaces:
- ContentService.Validator
- Enclosing class:
- ContentServiceImpl
public class ContentServiceImpl.ValidatorImpl
- extends Object
- implements ContentService.Validator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentServiceImpl.ValidatorImpl
public ContentServiceImpl.ValidatorImpl()
validateDelete
public ValidationResult validateDelete(Content content)
- Description copied from interface:
ContentService.Validator
- Validate that a piece of content can be deleted, including permission checks.
"Deletion" here refers to the operation ContentService.delete(Content) which may have different outcomes based
on the type of content being deleted and its current status.
- Specified by:
validateDelete in interface ContentService.Validator
- Parameters:
content - the content to be deleted
- Returns:
- an immutable Validation result.
validateCreate
public ValidationResult validateCreate(Content newContent)
throws ServiceException
- Description copied from interface:
ContentService.Validator
- Validate that a piece of content can be included, including permission checks.
- Specified by:
validateCreate in interface ContentService.Validator
- Parameters:
newContent - the content to be created
- Returns:
- an immutable Validation result.
- Throws:
ServiceException
validateUpdate
protected ValidationResult validateUpdate(Content updatedContent,
ContentEntityObject currentCeo)
Copyright © 2003–2015 Atlassian. All rights reserved.