SONAR-4453 Added a logical key in the permission_templates table and rearranged permission-related classes