I asked this same question back in the spring. The answer seemed to be that the party could not keep a candidate off a state-run primary, but if that candidate won the primary, the party was not obliged to recognise delegates for that candidate at the convention (speaking of presidential primaries).