Package com.esri.gpt.control.webharvest.validator

Examples of com.esri.gpt.control.webharvest.validator.IValidator


* @param mb message broker
* @return <code>true</code> if data is valid
*/
public boolean validate(MessageBroker mb) {
  ValidatorFactory factory = ValidatorFactory.getInstance();
  IValidator validator = factory.getValidator(_harvestRepository);
  return validator!=null? validator.validate(new MessageCollectorAdaptor(mb)): true;
}
View Full Code Here


      authorizeAction(context);
     
      // perform check through the validator
      HrRecord repository = getEditor().getRepository();
      ValidatorFactory validatorFactory = ValidatorFactory.getInstance();
      IValidator validator = validatorFactory.getValidator(repository);
      if (validator!=null && validator.checkConnection(new MessageCollectorAdaptor(extractMessageBroker()))) {
        extractMessageBroker().addSuccessMessage("catalog.harvest.manage.test.success");
      }
     
    } catch (Throwable t) {
      handleException(t);
View Full Code Here

      authorizeAction(context);
     
      // perform check through the validator
      HrRecord repository = getEditor().getRepository();
      ValidatorFactory validatorFactory = ValidatorFactory.getInstance();
      IValidator validator = validatorFactory.getValidator(repository);
      IConnectionChecker destinationChecker = validator.listConnectionCheckers().get("destination");
     
      if (destinationChecker!=null && destinationChecker.checkConnection(new MessageCollectorAdaptor(extractMessageBroker()))) {
        extractMessageBroker().addSuccessMessage("catalog.harvest.manage.test.success");
      }
     
View Full Code Here

TOP

Related Classes of com.esri.gpt.control.webharvest.validator.IValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.