1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.util.config;
17
18 public class DefaultProjectConfig implements ProjectConfig {
19
20 String groupId;
21 String artifactId;
22 String contextId;
23
24 public DefaultProjectConfig() {
25 this(null, null);
26 }
27
28 public DefaultProjectConfig(ProjectConfig request) {
29 super();
30 this.groupId = request.getGroupId();
31 this.artifactId = request.getArtifactId();
32 this.contextId = request.getContextId();
33 }
34
35 public DefaultProjectConfig(String configId) {
36 this(ConfigUtils.getProjectConfig(configId));
37 }
38
39 public DefaultProjectConfig(String groupId, String artifactId) {
40 this(groupId, artifactId, null);
41 }
42
43 public DefaultProjectConfig(String groupId, String artifactId, String contextId) {
44 super();
45 this.groupId = groupId;
46 this.artifactId = artifactId;
47 this.contextId = contextId;
48 }
49
50
51
52
53
54
55 @Override
56 public String getConfigId() {
57 return ConfigUtils.getConfigId(this);
58 }
59
60
61
62
63
64
65 @Override
66 public String getGroupId() {
67 return groupId;
68 }
69
70 public void setGroupId(String groupId) {
71 this.groupId = groupId;
72 }
73
74
75
76
77
78
79 @Override
80 public String getArtifactId() {
81 return artifactId;
82 }
83
84 public void setArtifactId(String artifactId) {
85 this.artifactId = artifactId;
86 }
87
88
89
90
91
92
93 @Override
94 public String getContextId() {
95 return contextId;
96 }
97
98 public void setContextId(String contextId) {
99 this.contextId = contextId;
100 }
101
102 @Override
103 public String toString() {
104 return getConfigId();
105 }
106
107 }