private void validateFind(final Application application, final User user) throws RequiredException { this.serviceValidator.validateRequired("application", application); this.serviceValidator.validateRequired("application.id", application.getId()); this.serviceValidator.validateRequired("user", user); this.serviceValidator.validateRequired("user.username", user.getName()); }
public List<Authorization> find(final Application application) throws RequiredException { this.serviceValidator.validateRequired("application", application); this.serviceValidator.validateRequired("application.id", application.getId()); return this.authorizationManager.find(application); }