com.atlassian.studio.confluence.com.atlassian.studio.confluence.importexport.entityvalidation
Class NotImportableEntitiesValidator

java.lang.Object
  extended by com.atlassian.studio.confluence.com.atlassian.studio.confluence.importexport.entityvalidation.NotImportableEntitiesValidator
All Implemented Interfaces:
Validator

public class NotImportableEntitiesValidator
extends java.lang.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.


Constructor Summary
NotImportableEntitiesValidator()
           
 
Method Summary
 boolean handles(ImportedObject object)
          Tell whether the object will be handled by this validator.
 void validate(ImportedObject object)
          Perform a validation on the object to import.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotImportableEntitiesValidator

public NotImportableEntitiesValidator()
Method Detail

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-2014 Atlassian. All Rights Reserved.