diff options
author | Olivier Lamy <olamy@apache.org> | 2012-12-07 15:04:08 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-12-07 15:04:08 +0000 |
commit | 37612ad4f90067beb591cab6d5aa51954838f3f5 (patch) | |
tree | 706c369e8e13b7b22be05aa035d994605f01866b /archiva-modules/archiva-web | |
parent | 69f428af71ea154eafc935700a635592987a6e44 (diff) | |
download | archiva-37612ad4f90067beb591cab6d5aa51954838f3f5.tar.gz archiva-37612ad4f90067beb591cab6d5aa51954838f3f5.zip |
fix bean mapping BeanReplicator does not replicate automatically object field
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1418347 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js | 29 |
1 files changed, 14 insertions, 15 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 77cc9282b..652c7e3fa 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,28 +1151,28 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout" } - ArchivaRuntimeConfiguration=function(userManagerImpl,archivaLdapConfiguration,migratedFromRedbackConfiguration,configurationProperties){ + ArchivaRuntimeConfiguration=function(userManagerImpl,ldapConfiguration,migratedFromRedbackConfiguration,configurationPropertiesEntries){ this.userManagerImpl=ko.observable(userManagerImpl); - this.archivaLdapConfiguration=ko.observable(archivaLdapConfiguration); + this.ldapConfiguration=ko.observable(ldapConfiguration); this.migratedFromRedbackConfiguration=ko.observable(migratedFromRedbackConfiguration); - this.configurationProperties=ko.observableArray(configurationProperties?configurationProperties:[]); + this.configurationPropertiesEntries=ko.observableArray(configurationPropertiesEntries?configurationPropertiesEntries:[]); } mapArchivaRuntimeConfiguration=function(data){ - var configurationProperties = data.configurationProperties == null ? []: $.each(data.configurationProperties,function(item){ + var configurationPropertiesEntries = data.configurationPropertiesEntries == null ? []: $.each(data.configurationPropertiesEntries,function(item){ return new Entry(item.key, item.value); }); - if (!$.isArray(configurationProperties)){ - configurationProperties=[]; + if (!$.isArray(configurationPropertiesEntries)){ + configurationPropertiesEntries=[]; } return new ArchivaRuntimeConfiguration(data.userManagerImpl,mapLdapConfiguration(data.ldapConfiguration),data.migratedFromRedbackConfiguration, - configurationProperties); + configurationPropertiesEntries); } LdapConfiguration=function(hostName,port,ssl,baseDn,contextFactory,bindDn,password,authenticationMethod, - extraProperties){ + extraPropertiesEntries){ //private String hostName; this.hostName=ko.observable(hostName); @@ -1197,20 +1197,19 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout" //private String authenticationMethod; this.authenticationMethod=ko.observable(authenticationMethod); - //private Map<String, String> extraProperties = new HashMap<String, String>(); - this.extraProperties=ko.observableArray(extraProperties); + this.extraPropertiesEntries=ko.observableArray(extraPropertiesEntries); } mapLdapConfiguration=function(data){ if(data){ - var extraProperties = data.extraProperties == null ? []: $.each(data.extraProperties,function(item){ + var extraPropertiesEntries = data.extraPropertiesEntries == null ? []: $.each(data.extraPropertiesEntries,function(item){ return new Entry(item.key, item.value); }); - if (!$.isArray(extraProperties)){ - extraProperties=[]; + if (!$.isArray(extraPropertiesEntries)){ + extraPropertiesEntries=[]; } - return new ArchivaLdapConfiguration(data.hostName,data.port,data.ssl,data.baseDn,data.contextFactory,data.bindDn,data.password, - data.authenticationMethod,extraProperties); + return new LdapConfiguration(data.hostName,data.port,data.ssl,data.baseDn,data.contextFactory,data.bindDn,data.password, + data.authenticationMethod,extraPropertiesEntries); } return null; } |