Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java @ 127:0245a87df368
Made the user factory available in the artifact database.
artifacts/trunk@1351 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 01 Mar 2011 18:45:34 +0000 |
parents | 0e0c27bc0b90 |
children | 147610c43863 |
comparison
equal
deleted
inserted
replaced
126:76744dcbe826 | 127:0245a87df368 |
---|---|
348 * Map to access services by there name. | 348 * Map to access services by there name. |
349 */ | 349 */ |
350 protected HashMap name2service; | 350 protected HashMap name2service; |
351 | 351 |
352 /** | 352 /** |
353 * The factory that is used to create and list users. | |
354 */ | |
355 protected UserFactory userFactory; | |
356 | |
357 /** | |
353 * Reference to the storage backend. | 358 * Reference to the storage backend. |
354 */ | 359 */ |
355 protected Backend backend; | 360 protected Backend backend; |
356 /** | 361 /** |
357 * Reference of the global context of the artifact runtime system. | 362 * Reference of the global context of the artifact runtime system. |
397 | 402 |
398 backgroundIds = new HashSet(); | 403 backgroundIds = new HashSet(); |
399 | 404 |
400 setupArtifactFactories(bootstrap); | 405 setupArtifactFactories(bootstrap); |
401 setupServices(bootstrap); | 406 setupServices(bootstrap); |
407 setupUserFactory(bootstrap); | |
402 | 408 |
403 context = bootstrap.getContext(); | 409 context = bootstrap.getContext(); |
404 exportSecret = bootstrap.getExportSecret(); | 410 exportSecret = bootstrap.getExportSecret(); |
405 | 411 |
406 wireWithBackend(backend); | 412 wireWithBackend(backend); |
427 factoryNamesAndDescription[i] = | 433 factoryNamesAndDescription[i] = |
428 new String [] { name, description }; | 434 new String [] { name, description }; |
429 | 435 |
430 name2factory.put(name, factory); | 436 name2factory.put(name, factory); |
431 } | 437 } |
438 } | |
439 | |
440 | |
441 /** | |
442 * Used to extract the user factory from the bootstrap. | |
443 */ | |
444 protected void setupUserFactory(FactoryBootstrap bootstrap) { | |
445 userFactory = bootstrap.getUserFactory(); | |
432 } | 446 } |
433 | 447 |
434 /** | 448 /** |
435 * Used to extract the service factories from the bootstrap | 449 * Used to extract the service factories from the bootstrap |
436 * parameters, setting up the services and building the internal | 450 * parameters, setting up the services and building the internal |