01: package org.gridsphere.services.core.setup.modules.impl.descriptor;
02:
03: import org.gridsphere.services.core.setup.modules.PortletsSetupModule;
04:
05: import java.util.Map;
06: import java.util.HashMap;
07: import java.util.Locale;
08:
09: /**
10: * @author <a href="mailto:docentt@man.poznan.pl">Tomasz Kuczynski</a>, PSNC
11: * @version $Id$
12: */
13: public class PortletsSetupModuleStateDescriptor {
14: protected String title = "";
15: protected String description = "";
16: protected String jspFile = "";
17: protected String context = "";
18: protected Integer moduleNumber = null;
19: protected Integer numberOfModules = null;
20: protected Locale locale = null;
21: protected Map<String, Object> attributes = new HashMap<String, Object>();
22:
23: public PortletsSetupModuleStateDescriptor(
24: PortletsSetupModule portletsSetupModule, Locale locale,
25: Integer moduleNumber, Integer numberOfModules) {
26: this .context = portletsSetupModule.getContextName();
27: this .locale = locale;
28: this .numberOfModules = numberOfModules;
29: this .moduleNumber = moduleNumber;
30: }
31:
32: public String getTitle() {
33: return title;
34: }
35:
36: public void setTitle(String title) {
37: this .title = title;
38: }
39:
40: public String getDescription() {
41: return description;
42: }
43:
44: public void setDescription(String description) {
45: this .description = description;
46: }
47:
48: public String getJspFile() {
49: return jspFile;
50: }
51:
52: public void setJspFile(String jspFile) {
53: this .jspFile = jspFile;
54: }
55:
56: public String getContext() {
57: return context;
58: }
59:
60: public Locale getLocale() {
61: return locale;
62: }
63:
64: public Integer getModuleNumber() {
65: return moduleNumber;
66: }
67:
68: public Integer getNumberOfModules() {
69: return numberOfModules;
70: }
71:
72: public Map<String, Object> getAttributes() {
73: return attributes;
74: }
75:
76: public void setAttributes(Map<String, Object> attributes) {
77: this .attributes = attributes;
78: }
79:
80: public void setAttribute(String name, Object value) {
81: attributes.put(name, value);
82: }
83: }
|