01: package org.osbl.demo.urlaub.gui;
02:
03: import org.osbl.client.web.spring.SpringWebModule;
04: import org.osbl.ItemRegistry;
05: import org.osbl.item.BeanAuthorizationCollector;
06: import org.osbl.item.BeanLocalizationCollector;
07: import org.osbl.demo.urlaub.model.UrlaubsAntrag;
08: import org.osbl.client.ClientServiceProvider;
09: import org.osbl.client.wings.action.ShowToolAction;
10: import org.osbl.client.wings.action.QueryAction;
11: import org.osbl.client.wings.navigation.NavigationStructure;
12: import org.osbl.client.action.ActionRegistry;
13:
14: public class UrlaubsAntragWebModule 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: UrlaubsAntrag.class));
29: localizationItems.addItems(new BeanLocalizationCollector(
30: UrlaubsAntrag.class));
31: }
32: }
|