The four were involved in the aggravated burglary of a 35-year-old man at a Bluewater Hotel unit in Ahuriri on February 6, 2014.
Police alleged the four attacked the victim with a pistol, which resulted in serious head injuries.
At the time, the police officer in charge of the case, Detective Sergeant Heath Jones, said it was a particularly violent assault and the victim needed a short stay in hospital.
Yesterday, Mr Jones said police were pleased with the jail terms and investigators had received a lot of help from the public in their search for the offenders.
"This was one case where the public was very forthcoming with information.
"Several people were very helpful, which made our job a lot easier.
"These people had gang connections, which also played a part in their offending," Mr Jones said.