add new javascript bean properties

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1418231 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-07 09:27:20 +00:00
parent 5847d76e7a
commit acf3a0bb3f
1 changed files with 17 additions and 4 deletions

View File

@ -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);
}
});