com.atlassian.studio.confluence.com.atlassian.studio.confluence.importexport.entityvalidation
Interface Validator

All Known Implementing Classes:
NotImportableEntitiesValidator, SpacePermissionValidator

public interface Validator

Validates objects which are expected to be imported in Confluence.

Since:
4.1.8

Method Summary
 boolean handles(ImportedObject importedObject)
          Tell whether the object will be handled by this validator.
 void validate(ImportedObject importedObject)
          Perform a validation on the object to import.
 

Method Detail

handles

boolean handles(ImportedObject importedObject)
Tell whether the object will be handled by this validator. At least one validator is required for each object. There may be several.

Parameters:
importedObject - the object to import.
Returns:
true if the object will be handled, false otherwise.

validate

void validate(ImportedObject importedObject)
              throws ValidationException
Perform a validation on the object to import. Must not be called if handles(com.atlassian.confluence.importexport.xmlimport.model.ImportedObject) returns false.

Parameters:
importedObject - the object to import.
Throws:
ValidationException - if the object to import is not valid.


Copyright © 2003-2014 Atlassian. All Rights Reserved.