com.manywho.sdk.services.validation.social.GetUserValidator Maven / Gradle / Ivy
package com.manywho.sdk.services.validation.social;
import com.manywho.sdk.api.run.elements.config.SocialServiceRequest;
import com.manywho.sdk.services.validation.AbstractConstraintValidator;
import com.manywho.sdk.services.validation.ServiceRequestValidator;
import javax.inject.Inject;
import javax.validation.ConstraintValidatorContext;
public class GetUserValidator extends AbstractConstraintValidator {
private ServiceRequestValidator serviceRequestValidator;
@Inject
public GetUserValidator(ServiceRequestValidator serviceRequestValidator) {
this.serviceRequestValidator = serviceRequestValidator;
}
@Override
public boolean isValid(SocialServiceRequest socialServiceRequest, ConstraintValidatorContext constraintValidatorContext) {
return serviceRequestValidator.isValid(socialServiceRequest, constraintValidatorContext);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy