adapt getAll