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

java.lang.Object
  extended by com.atlassian.confluence.api.impl.service.content.SpaceServiceImpl.ValidatorImpl
All Implemented Interfaces:
SpaceService.Validator
Enclosing class:
SpaceServiceImpl

public class SpaceServiceImpl.ValidatorImpl
extends java.lang.Object
implements SpaceService.Validator


Constructor Summary
SpaceServiceImpl.ValidatorImpl()
           
 
Method Summary
 ValidationResult validateCreate(Space space, boolean isPrivate)
          Validate that a Space can be added, including permission checks.
 ValidationResult validateDelete(Space space)
          Validate that a Space can be deleted, including permission checks.
 ValidationResult validateUpdate(Space space)
          Validate that a Space can be updated, including permission checks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceServiceImpl.ValidatorImpl

public SpaceServiceImpl.ValidatorImpl()
Method Detail

validateCreate

public ValidationResult validateCreate(Space space,
                                       boolean isPrivate)
Description copied from interface: SpaceService.Validator
Validate that a Space can be added, including permission checks.

Specified by:
validateCreate in interface SpaceService.Validator
Parameters:
space - the space to be created
isPrivate - whether the space is private (true) or has default permissions (false)
Returns:
an immutable Validation result.

validateUpdate

public ValidationResult validateUpdate(Space space)
Description copied from interface: SpaceService.Validator
Validate that a Space can be updated, including permission checks.

Specified by:
validateUpdate in interface SpaceService.Validator
Parameters:
space - the space to be updated
Returns:
an immutable Validation result.

validateDelete

public ValidationResult validateDelete(Space space)
Description copied from interface: SpaceService.Validator
Validate that a Space can be deleted, including permission checks.

Specified by:
validateDelete in interface SpaceService.Validator
Parameters:
space - the space to be deleted
Returns:
an immutable Validation result.


Copyright © 2003-2014 Atlassian. All Rights Reserved.