KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > repository > RepositoryMapping


1 package info.magnolia.repository;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.Collection JavaDoc;
5 import java.util.Map JavaDoc;
6
7
8 /**
9  * Date: Aug 16, 2004 Time: 4:03:23 PM
10  * @author Sameer Charles
11  * @version 2.0
12  */

13 public class RepositoryMapping {
14
15     private String JavaDoc name;
16
17     private String JavaDoc provider;
18
19     private boolean loadOnStartup;
20
21     private Map JavaDoc parameters;
22
23     private Collection JavaDoc workspaces = new ArrayList JavaDoc();
24
25     public RepositoryMapping() {
26     }
27
28     public String JavaDoc getName() {
29         return name;
30     }
31
32     public void setName(String JavaDoc name) {
33         this.name = name;
34     }
35
36     public String JavaDoc getProvider() {
37         return provider;
38     }
39
40     public void setProvider(String JavaDoc provider) {
41         this.provider = provider;
42     }
43
44     public boolean isLoadOnStartup() {
45         return loadOnStartup;
46     }
47
48     public void setLoadOnStartup(boolean loadOnStartup) {
49         this.loadOnStartup = loadOnStartup;
50     }
51
52     public Map JavaDoc getParameters() {
53         return parameters;
54     }
55
56     public void setParameters(Map JavaDoc parameters) {
57         this.parameters = parameters;
58     }
59
60     public Collection JavaDoc getWorkspaces() {
61         return workspaces;
62     }
63
64     public void setWorkspaces(Collection JavaDoc workspaces) {
65         this.workspaces = workspaces;
66     }
67
68     public void addWorkspace(String JavaDoc workspaceId) {
69         this.workspaces.add(workspaceId);
70     }
71 }
72
Popular Tags