public void updatePSQ ( Boolean psq ) throws SecurityException { checkWriteAccess ( ) ; boolean hasAccess = ConfigWebUtil . hasAccess ( config , SecurityManager . TYPE_DATASOURCE ) ; if ( ! hasAccess ) throw new SecurityException ( "no access to update datsource connections" ) ; Element datasources = _getRootElement ( "data-sources" ) ; datasources . setAttribute ( "psq" , Caster . toString ( psq , "" ) ) ; if ( datasources . hasAttribute ( "preserve-single-quote" ) ) datasources . removeAttribute ( "preserve-single-quote" ) ; }
update PSQ State