getAll method.