1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.springframework.extensions.surf.studio;
20
21 import java.io.Serializable;
22 import java.util.HashMap;
23
24 import org.apache.commons.logging.Log;
25 import org.apache.commons.logging.LogFactory;
26
27
28
29
30
31
32 public class WebStudioStateBean implements Serializable
33 {
34 private static Log logger = LogFactory.getLog(WebStudioStateBean.class);
35
36 protected HashMap<String, ApplicationStateBean> applications = null;
37 protected HashMap<String, AppletStateBean> applets = null;
38
39 public WebStudioStateBean()
40 {
41 }
42
43
44
45
46
47
48 public String[] getApplicationIds()
49 {
50 return applications.values().toArray(new String[applications.size()]);
51 }
52
53
54
55
56
57
58
59
60 public ApplicationStateBean getApplicationState(String id)
61 {
62 return (ApplicationStateBean) applications.get(id);
63 }
64
65
66
67
68
69
70 public String[] getAppletIds()
71 {
72 return applets.values().toArray(new String[applications.size()]);
73 }
74
75
76
77
78
79
80
81
82 public AppletStateBean getAppletState(String id)
83 {
84 return (AppletStateBean) applets.get(id);
85 }
86 }