message: Dev 0.3 fix
  1. fix permission check when create a dashboard
  2. prioritize CustomDataSource configuration
diff: @@ -747,13 +747,13 @@ public class SqlUtils {
  public static String getKeywordPrefix(String jdbcUrl) {
  String keywordPrefix = "";
  - DataTypeEnum dataTypeEnum = DataTypeEnum.urlOf(jdbcUrl);
  - if (null != dataTypeEnum) {
  - keywordPrefix = dataTypeEnum.getKeywordPrefix();
  - } else {
  CustomDataSource customDataSource = CustomDataSourceUtils.getInstance(jdbcUrl);
  if (null != customDataSource) {
  keywordPrefix = customDataSource.getKeyword_prefix();
  + } else {
  + DataTypeEnum dataTypeEnum = DataTypeEnum.urlOf(jdbcUrl);
  + if (null != dataTypeEnum) {
  + keywordPrefix = dataTypeEnum.getKeywordPrefix();
  }
  }
  return StringUtils.isEmpty(keywordPrefix) ? EMPTY : keywordPrefix;
  @@ -761,13 +761,13 @@ public class SqlUtils {
  public static String getKeywordSuffix(String jdbcUrl) {
  String keywordSuffix = "";
  - DataTypeEnum dataTypeEnum = DataTypeEnum.urlOf(jdbcUrl);
  - if (null != dataTypeEnum) {
  - keywordSuffix = dataTypeEnum.getKeywordSuffix();
  - } else {
  CustomDataSource customDataSource = CustomDataSourceUtils.getInstance(jdbcUrl);
  if (null != customDataSource) {
  keywordSuffix = customDataSource.getKeyword_suffix();
  + } else {
  + DataTypeEnum dataTypeEnum = DataTypeEnum.urlOf(jdbcUrl);
  + if (null != dataTypeEnum) {
  + keywordSuffix = dataTypeEnum.getKeywordSuffix();
  }
  }
  return StringUtils.isEmpty(keywordSuffix) ? EMPTY : keywordSuffix;
  @@ -775,13 +775,13 @@ public class SqlUtils {
  public static String getAliasPrefix(String jdbcUrl) {
  String aliasPrefix = "";
  - DataTypeEnum dataTypeEnum = DataTypeEnum.urlOf(jdbcUrl);
  - if (null != dataTypeEnum) {
  - aliasPrefix = dataTypeEnum.getAliasPrefix();
  - } else {
  CustomDataSource customDataSource = CustomDataSourceUtils.getInstance(jdbcUrl);
  if (null != customDataSource) {
  aliasPrefix = customDataSource.getAlias_prefix();
  + } else {
  + DataTypeEnum dataTypeEnum = DataTypeEnum.urlOf(jdbcUrl);
  + if (null != dataTypeEnum) {
  + aliasPrefix = dataTypeEnum.getAliasPrefix();
  }
  }
  return StringUtils.isEmpty(aliasPrefix) ? EMPTY : aliasPrefix;
  @@ -789,13 +789,13 @@ public class SqlUtils {
  public static String getAliasSuffix(String jdbcUrl) {
  String aliasSuffix = "";
  - DataTypeEnum dataTypeEnum = DataTypeEnum.urlOf(jdbcUrl);
  - if (null != dataTypeEnum) {
  - aliasSuffix = dataTypeEnum.getAliasSuffix();
  - } else {
  CustomDataSource customDataSource = CustomDataSourceUtils.getInstance(jdbcUrl);
  if (null != customDataSource) {
  aliasSuffix = customDataSource.getAlias_suffix();
  + } else {
  + DataTypeEnum dataTypeEnum = DataTypeEnum.urlOf(jdbcUrl);
  + if (null != dataTypeEnum) {
  + aliasSuffix = dataTypeEnum.getAliasSuffix();
  }
  }
  return StringUtils.isEmpty(aliasSuffix) ? EMPTY : aliasSuffix;
  