SONAR-4465 Reworked the ResourcePermission implementation to rely on the permission templates to get the default permissions for a resource