If your landlord came into your home without calling you first she violated your rights as a tenant. You should look up tenant rights for your city and see what they're. Your dog was not being aggressive it was protecting you
and that is a good thing. A landlord can't just walk into a tenant apartment in my city unless there is an emergency like a busted water pipe when happen to me.