Hartman-type conditions for multivalued Dirichlet problem in abstract spaces