Package com.michelboudreau.alternator.validators

Examples of com.michelboudreau.alternator.validators.UpdateItemRequestValidator.validate()


  public synchronized UpdateItemResult updateItem(UpdateItemRequest request) {
    // Validate data coming in
    // TODO: Look into how we're doing validation, maybe implement better solution
    UpdateItemRequestValidator validator = new UpdateItemRequestValidator();
    List<Error> errors = validator.validate(request);
    if (errors.size() != 0) {
      throw new AmazonServiceException(errors.toString());
    }

    // get information
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.