use of com.linkedin.restli.common.validation.RestLiDataValidator in project parseq by linkedin.
the class NullGreetingUpdateRequestBuilder method validateInput.
public static ValidationResult validateInput(Greeting input) {
Map<String, List<String>> annotations = new HashMap<String, List<String>>();
RestLiDataValidator validator = new RestLiDataValidator(annotations, Greeting.class, ResourceMethod.UPDATE);
return validator.validateInput(input);
}
use of com.linkedin.restli.common.validation.RestLiDataValidator in project parseq by linkedin.
the class StreamingGreetingsCreateBuilder method validateInput.
public static ValidationResult validateInput(Greeting input) {
Map<String, List<String>> annotations = new HashMap<String, List<String>>();
RestLiDataValidator validator = new RestLiDataValidator(annotations, Greeting.class, ResourceMethod.CREATE);
return validator.validateInput(input);
}
use of com.linkedin.restli.common.validation.RestLiDataValidator in project parseq by linkedin.
the class StreamingGreetingsUpdateBuilder method validateInput.
public static ValidationResult validateInput(Greeting input) {
Map<String, List<String>> annotations = new HashMap<String, List<String>>();
RestLiDataValidator validator = new RestLiDataValidator(annotations, Greeting.class, ResourceMethod.UPDATE);
return validator.validateInput(input);
}
use of com.linkedin.restli.common.validation.RestLiDataValidator in project parseq by linkedin.
the class StringKeysBatchCreateBuilder method validateInput.
public static ValidationResult validateInput(Message input) {
Map<java.lang.String, List<java.lang.String>> annotations = new HashMap<java.lang.String, List<java.lang.String>>();
RestLiDataValidator validator = new RestLiDataValidator(annotations, Message.class, ResourceMethod.BATCH_CREATE);
return validator.validateInput(input);
}
use of com.linkedin.restli.common.validation.RestLiDataValidator in project parseq by linkedin.
the class StringKeysBatchPartialUpdateRequestBuilder method validateInput.
public static ValidationResult validateInput(PatchRequest<Message> patch) {
Map<java.lang.String, List<java.lang.String>> annotations = new HashMap<java.lang.String, List<java.lang.String>>();
RestLiDataValidator validator = new RestLiDataValidator(annotations, Message.class, ResourceMethod.BATCH_PARTIAL_UPDATE);
return validator.validateInput(patch);
}
Aggregations