President Trump's recent executive order temporarily barring nationals of 7 countries from entering the U.S. included those who originated from one of those countries, are not citizens of the U.S., but are lawful permanent residents (aka have the "Green Card").
This appears to be preventing people who already have lives, family and business in the country, and happened to be abroad when the order was issued, from returning home. Likewise, it effectively prevents those in the country from travelling abroad, as their return would be in jeopardy.
Has this ever happened before in history? Have people holding permanent residence in the U.S. ever been subjected to a blanket ban on re-entering the country based on their nationality or other, similar broad criteria?