com.atlassian.studio.confluence.importexport.entityvalidation
Class SpacePermissionValidator
java.lang.Object
com.atlassian.studio.confluence.importexport.entityvalidation.SpacePermissionValidator
- All Implemented Interfaces:
- Validator
public class SpacePermissionValidator
- extends Object
- implements Validator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpacePermissionValidator
public SpacePermissionValidator(String spaceKey)
handles
public boolean handles(ImportedObject object)
- Description copied from interface:
Validator
- Tell whether the object will be handled by this validator. At least one validator is required for each object.
There may be several.
- Specified by:
handles
in interface Validator
- Parameters:
object
- the object to import.
- Returns:
- true if the object will be handled, false otherwise.
validate
public void validate(ImportedObject object)
throws ValidationException
- Description copied from interface:
Validator
- Perform a validation on the object to import. Must not be called if
Validator.handles(com.atlassian.confluence.importexport.xmlimport.model.ImportedObject)
returns false.
- Specified by:
validate
in interface Validator
- Parameters:
object
- the object to import.
- Throws:
ValidationException
- if the object to import is not valid.
Copyright © 2003–2015 Atlassian. All rights reserved.