com.atlassian.studio.confluence.importexport.entityvalidation
Class NotImportableEntitiesValidator
java.lang.Object
com.atlassian.studio.confluence.importexport.entityvalidation.NotImportableEntitiesValidator
- All Implemented Interfaces:
- Validator
public class NotImportableEntitiesValidator
- extends Object
- implements Validator
Validator which rejects any entity which shouldn't be imported from a Space backup.
Only the confluence-studio-space-import-plugin uses this validation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotImportableEntitiesValidator
public NotImportableEntitiesValidator()
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.