Let me correct that for you - The entire Palestinian resistance is built around the idea of fighting a foreign occupation of their land. Israel is a coloniser state, and the Palestinians are justified in fighting them, even violently, for their land and existence as many other colonial countries have in the past against their oppressors. The denial that some Israelis have about this is the height of political stupidity.
One man's terrorist is another man's freedom fighter.
The problem with Israel is not PLA or Hamas, but the the right-wing religious fundamentalist Israeli-Jews that have captured power in Israel. Right-wing religious fundamentalists around the world thrive by creating a climate of fear and hate. Unless Israeli Jews and Palestinian muslims hate each other, they cannot be in power. And if you look at the history of the Israeli religious fundamentalist Jews, you will find that they have assassinated their own people, Palestinian politicians and ven foreign diplomats and leaders, to ensure that there is no peace and a climate of fear and hatred flourishes.
Why do you think Netanyahu and his predecessor formulated the policy of supporting and financing Hamas when the PLA started exploring diplomatic and non-violent means of peace, and gaining international support? The reality was that that these religious fundamentalist Israeli politicians need some religious fundamentalist violent Palestinian faction to brainwash and radicalise their followers to retain power. So they deliberately create conflict. The Likud party that Netanyahu now heads, was found by religious fundamentalists in Israel who were a jewish terrorist organisation that took please in killing and slaughtering Palestinina men, women and children. Albert Einstein once warned the Israel polity about the dangers of such people capturing power in Israel because of the atrocity them committed against Palestinians in the name of Israel.
It is not a co-incidence that Netanyahu and his other religious fundamentalist buddies allowed Hamas to attack Israel, when he and the right- in Israel are in a very politically precarious situation. The current war allows them to create hatred among the new generation of Israelis and Palestinians, so that they can cling on to power.