com.atlassian.confluence.api.impl.service.content
Class ContentServiceImpl.ValidatorImpl

java.lang.Object
  extended by 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


Constructor Summary
ContentServiceImpl.ValidatorImpl()
           
 
Method Summary
protected  ValidationResult validateCommand(ServiceCommand command)
           
 ValidationResult validateCreate(Content newContent)
          Validate that a piece of content can be included, including permission checks.
protected  void validateCreate(com.atlassian.user.User user, Space space, java.lang.Class<?> typeToCreate)
           
 ValidationResult validateDelete(Content content)
          Validate that a piece of content can be deleted, including permission checks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentServiceImpl.ValidatorImpl

public ContentServiceImpl.ValidatorImpl()
Method Detail

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.