KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > module > ModuleConfig


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2005 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.module;
14
15 import info.magnolia.cms.core.Content;
16 import info.magnolia.cms.core.HierarchyManager;
17
18 import java.util.Map JavaDoc;
19
20
21 /**
22  * @author Sameer Charles
23  * @version 2.0
24  */

25 public class ModuleConfig {
26
27     /**
28      * The HM of the modules
29      */

30     private Map JavaDoc sharedHierarchyManagers; /* id - HierarchyManager map */
31
32     /**
33      * Startup parameters
34      */

35     private Map JavaDoc initParameters;
36
37     /**
38      * Name
39      */

40     private String JavaDoc moduleName;
41
42     /**
43      * Description
44      */

45     private String JavaDoc moduleDescription;
46
47     /**
48      * Default HM
49      */

50     private HierarchyManager hierarchyManager;
51
52     /**
53      * The node containing the configuration
54      */

55     private Content localStore;
56
57     /**
58      * @return module name
59      */

60     public String JavaDoc getModuleName() {
61         return this.moduleName;
62     }
63
64     /**
65      * @return description
66      */

67     public String JavaDoc getModuleDescription() {
68         return this.moduleDescription;
69     }
70
71     /**
72      * @return hms
73      */

74     public Map JavaDoc getSharedHierarchyManagers() {
75         return this.sharedHierarchyManagers;
76     }
77
78     /**
79      * @return hm
80      */

81     public HierarchyManager getHierarchyManager() {
82         return this.hierarchyManager;
83     }
84
85     /**
86      * @return the parameters
87      */

88     public Map JavaDoc getInitParameters() {
89         return this.initParameters;
90     }
91
92     /**
93      * @return content node with the configuration
94      */

95     public Content getLocalStore() {
96         return this.localStore;
97     }
98
99     /**
100      * @param value name
101      */

102     public void setModuleName(String JavaDoc value) {
103         this.moduleName = value;
104     }
105
106     /**
107      * @param value description
108      */

109     public void setModuleDescription(String JavaDoc value) {
110         this.moduleDescription = value;
111     }
112
113     /**
114      * @param initParams parameters
115      */

116     public void setInitParameters(Map JavaDoc initParams) {
117         this.initParameters = initParams;
118     }
119
120     /**
121      * @param manager manager
122      */

123     public void setHierarchyManager(HierarchyManager manager) {
124         this.hierarchyManager = manager;
125     }
126
127     /**
128      * @param shared shared repositories
129      */

130     public void setSharedHierarchyManagers(Map JavaDoc shared) {
131         this.sharedHierarchyManagers = shared;
132     }
133
134     /**
135      * @param localStore content node containing the configuration
136      */

137     public void setLocalStore(Content localStore) {
138         this.localStore = localStore;
139     }
140 }
141
Popular Tags