Examples of validate()


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

  }

  public synchronized DeleteTableResult deleteTable(DeleteTableRequest request) throws InternalServerErrorException, ResourceNotFoundException {
    // Validate data coming in
    DeleteTableRequestValidator validator = new DeleteTableRequestValidator();
    List<Error> errors = validator.validate(request);
    if (errors.size() != 0) {
      throw new AmazonServiceException(errors.toString());
    }

    // Check existence
View Full Code Here

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

  }

  public synchronized DescribeTableResult describeTable(DescribeTableRequest request) throws InternalServerErrorException, ResourceNotFoundException {
    // Validate data coming in
    DescribeTableRequestValidator validator = new DescribeTableRequestValidator();
    List<Error> errors = validator.validate(request);
    if (errors.size() != 0) {
      throw new AmazonServiceException(errors.toString());
    }

    // get information
View Full Code Here

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

  }

  public synchronized GetItemResult getItem(GetItemRequest request) throws InternalServerErrorException, ResourceNotFoundException {
    // Validate data coming in
    GetItemRequestValidator validator = new GetItemRequestValidator();
    List<Error> errors = validator.validate(request);
    if (errors.size() != 0) {
      throw new AmazonServiceException(errors.toString());
    }

    // get information
View Full Code Here

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

  }

  public synchronized ListTablesResult listTables(ListTablesRequest request) throws InternalServerErrorException, ResourceNotFoundException {
    // Validate data coming in
    ListTablesRequestValidator validator = new ListTablesRequestValidator();
    List<Error> errors = validator.validate(request);
    if (errors.size() != 0) {
      throw createInternalServerException(errors);
    }

    // Create defaults
View Full Code Here

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

  }

  public synchronized PutItemResult putItem(PutItemRequest request) throws InternalServerErrorException, ResourceNotFoundException, ConditionalCheckFailedException {
    // Validate data coming in
    PutItemRequestValidator validator = new PutItemRequestValidator();
    List<Error> errors = validator.validate(request);
    if (errors.size() != 0) {
      throw new AmazonServiceException(errors.toString());

    }
View Full Code Here

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

  }

  public synchronized QueryResult query(QueryRequest request) {
    // Validate data coming in
    QueryRequestValidator validator = new QueryRequestValidator();
    List<Error> errors = validator.validate(request);
    if (errors.size() != 0) {
      throw createInternalServerException(errors);
    }

    // Check existence of table
View Full Code Here

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

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

  }

  public synchronized UpdateTableResult updateTable(UpdateTableRequest request) throws InternalServerErrorException, ResourceNotFoundException {
    // Validate data coming in
    UpdateTableRequestValidator validator = new UpdateTableRequestValidator();
    List<Error> errors = validator.validate(request);
    if (errors.size() != 0) {
      throw new AmazonServiceException(errors.toString());
    }

    // Check existence
View Full Code Here

Examples of com.mongodb.gridfs.GridFSInputFile.validate()

      gridFile.put("uniqueId", UidGenerator.generateUid());


      gridFile.setFilename(renameTo);
      gridFile.save(chunkSize);
      gridFile.validate();
    }
    catch(IOException e)
    {
      throw new DBException("Failed to read input file: "
          +file.getAbsolutePath(), e);
View Full Code Here

Examples of com.mxgraph.view.mxGraphView.validate()

    // Updates the display with the warning icons before any potential
    // alerts are displayed
    if (model.getParent(cell) == null)
    {
      view.validate();
    }

    return (warning.length() > 0 || !isValid) ? warning.toString() : null;
  }
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.