Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2016

SQLDataSource widget: the allowed dbtypes should be read from validator configuration

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • None
    • None
    • None
    • 1 - Middle term
    • 2 - Normal

      For now, we have to duplicate the allowed database types as a widget parameters

      <param id="xxx">
             <widget>edition.datasource-sql</widget>
             <widget-params>
                      <param name="allowCreation">true</param>
                      <param name="allowPrivate">true</param>
                      <param name="allowInternal">true</param>
                      <param name="allowedDbTypes">derby,mysql,oracle,postgresql,hsql</param>
             </widget-params>
             <validation>
                  	<custom-validator class="org.ametys.core.datasource.SQLDatabaseTypeValidator">
      			       <mandatory/>
      			       <allowed-dbtypes>derby,mysql,oracle,postgresql,hsql</allowed-dbtypes>
      	       </custom-validator>
             </validation>
      </param>
      

      When RUNTIME-2015 will be fixed, the parameter "allowedDbTypes" could be removed.

            Unassigned Unassigned
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: