01: package org.osbl.issue.gui;
02:
03: import org.osbl.client.web.WebModule;
04: import org.osbl.plugin.PluginManager;
05: import org.osbl.plugin.Extension;
06: import org.osbl.ItemRegistry;
07: import org.osbl.issue.model.Issue;
08: import org.osbl.issue.model.Link;
09: import org.osbl.item.BeanAuthorizationCollector;
10: import org.osbl.item.BeanLocalizationCollector;
11:
12: public class IssueWebModule implements WebModule {
13: ItemRegistry authorizationItems;
14: ItemRegistry localizationItems;
15:
16: PluginManager pluginManager;
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 setPluginManager(PluginManager pluginManager) {
27: this .pluginManager = pluginManager;
28: }
29:
30: public void initialize() {
31: authorizationItems.addItems(new BeanAuthorizationCollector(
32: Issue.class));
33: authorizationItems.addItems(new BeanAuthorizationCollector(
34: Link.class));
35:
36: localizationItems.addItems(new BeanLocalizationCollector(
37: Issue.class));
38: localizationItems.addItems(new BeanLocalizationCollector(
39: Link.class));
40:
41: pluginManager.registerExtension(new Extension("Issue Tool",
42: "org.osbl.client.wings.form.formTools",
43: IssuingTool.class));
44: }
45: }
|