this.authorizationsession = authorizationsession;
this.administrator = administrator;
}
public GlobalConfiguration loadGlobalConfiguration() throws NamingException{
GlobalConfiguration ret = null;
// TODO: These should be dropped or moved to property files!!
ret = globalconfigurationsession.getCachedGlobalConfiguration(administrator);
if (initialContext == null) {
initialContext = new InitialContext();
}
Context myenv = (Context) initialContext.lookup("java:comp/env");
ret.initialize( (String) myenv.lookup("ADMINDIRECTORY"),
WebConfiguration.getAvailableLanguages(), (String) myenv.lookup("AVAILABLETHEMES"),
""+WebConfiguration.getPublicHttpPort(), ""+WebConfiguration.getPrivateHttpsPort(),
(String) myenv.lookup("PUBLICPROTOCOL"),(String) myenv.lookup("PRIVATEPROTOCOL"));
return ret;
}