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 java.lang.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.
- 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
validateCommand
protected ValidationResult validateCommand(ServiceCommand command)
validateCreate
protected void validateCreate(com.atlassian.user.User user,
Space space,
java.lang.Class<?> typeToCreate)
throws ServiceException
- Throws:
ServiceException
Copyright © 2003-2014 Atlassian. All Rights Reserved.