class QuestionPriorityOrderService {

    @Transactional
    @NotSecured("Must be secured by other services.")
    public void reprioritiseQuestionsAfterDeletion(Question deletedQuestion) {
        QuestionSection questionSection = QuestionSection.findByName(deletedQuestion.getSection().getName());
        updateFollowingQuestionsPrioritiesByDelta(-1, deletedQuestion.getPriority(), deletedQuestion.getCompetition().getId(), questionSection);
    }

}