01: package org.osbl.domain.gui;
02:
03: import org.osbl.client.web.spring.SpringWebModule;
04: import org.osbl.client.wings.form.Editors;
05: import org.osbl.client.wings.action.ShowEditorAction;
06: import org.osbl.client.wings.navigation.NavigationStructure;
07: import org.osbl.client.action.ActionRegistry;
08: import org.osbl.ItemRegistry;
09: import org.osbl.domain.model.Domain;
10: import org.osbl.domain.model.DomainValue;
11: import org.osbl.item.BeanAuthorizationCollector;
12: import org.osbl.item.BeanLocalizationCollector;
13:
14: public class DomainWebModule extends SpringWebModule {
15: ItemRegistry authorizationItems;
16: ItemRegistry localizationItems;
17:
18: public void setAuthorizationItems(ItemRegistry authorizationItems) {
19: this .authorizationItems = authorizationItems;
20: }
21:
22: public void setLocalizationItems(ItemRegistry localizationItems) {
23: this .localizationItems = localizationItems;
24: }
25:
26: public void initialize() {
27: authorizationItems.addItems(new BeanAuthorizationCollector(
28: Domain.class));
29: authorizationItems.addItems(new BeanAuthorizationCollector(
30: DomainValue.class));
31:
32: localizationItems.addItems(new BeanLocalizationCollector(
33: Domain.class));
34: localizationItems.addItems(new BeanLocalizationCollector(
35: DomainValue.class));
36: }
37: }
|