diff options
author | Olivier Lamy <olamy@apache.org> | 2012-12-07 09:27:20 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-12-07 09:27:20 +0000 |
commit | acf3a0bb3fb38d5fcaf5addc415bdb9fd33dae63 (patch) | |
tree | f16a5a70eb79db70ccd7cab214c9adba6ed7e29c /archiva-modules/archiva-web/archiva-webapp-js | |
parent | 5847d76e7adeddcd1ae033c386fe50f494162d63 (diff) | |
download | archiva-acf3a0bb3fb38d5fcaf5addc415bdb9fd33dae63.tar.gz archiva-acf3a0bb3fb38d5fcaf5addc415bdb9fd33dae63.zip |
add new javascript bean properties
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1418231 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp-js')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js index ba6de649b..a5c909c65 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js @@ -1151,9 +1151,16 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout" } - ArchivaRuntimeConfiguration=function(userManagerImpl,archivaLdapConfiguration){ + ArchivaRuntimeConfiguration=function(userManagerImpl,archivaLdapConfiguration,migratedFromRedbackConfiguration,configurationProperties){ this.userManagerImpl=ko.observable(userManagerImpl); this.archivaLdapConfiguration=ko.observable(archivaLdapConfiguration); + this.migratedFromRedbackConfiguration=ko.observable(migratedFromRedbackConfiguration); + this.configurationProperties=ko.observableArray(configurationProperties?configurationProperties:[]); + } + + mapArchivaRuntimeConfiguration=function(data){ + return new ArchivaRuntimeConfiguration(data.userManagerImpl,mapArchivaLdapConfiguration(data.archivaLdapConfiguration,data.migratedFromRedbackConfiguration, + data.configurationProperties)); } ArchivaLdapConfiguration=function(hostName,port,ssl,baseDn,contextFactory,bindDn,password,authenticationMethod, @@ -1186,6 +1193,14 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout" this.extraProperties=ko.observableArray(extraProperties); } + mapArchivaLdapConfiguration=function(data){ + if(data){ + return new ArchivaLdapConfiguration(data.hostName,data.port,data.ssl,data.baseDn,data.contextFactory,data.bindDn,data.password, + data.authenticationMethod,data.extraProperties); + } + return null; + } + ArchivaRuntimeConfigurationViewModel=function(archivaRuntimeConfiguration,userManagerImplementationInformations){ this.archivaRuntimeConfiguration=ko.observable(archivaRuntimeConfiguration); this.userManagerImplementationInformations=ko.observable(userManagerImplementationInformations); @@ -1268,8 +1283,6 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout" } - mapArchivaRuntimeConfiguration=function(data){ - return new ArchivaRuntimeConfiguration(data.userManagerImpl); - } + });
\ No newline at end of file |