Beneficial for both teams.
Boston: Gets a trade exception, 2 picks to add to Danny's stash, a prospect that they're taking a flier on in Dwight Powell, Erik Murphy I've heard is being evaluated by the team and may or may not go to camp, and that John Lucas III and Malcolm Thomas are being waived.
Cleveland: Now have $16 million in unguaranteed contracts next year between Bogans and Haywood which could help them make a major splash. Bogans this year could be the Ray Allen end of the bench role player type they wanted, since they likely went after Bogans due to Allen saying he isn't going to Cleveland. Plus, late 2nds aren't useful to a team like Cleveland, as the cap holds for the picks would get in the way, and they'd have to scramble to deal them on draft night.
Both teams win here imo.