001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.geronimo.console.car;
017:
018: import java.io.Serializable;
019: import java.util.List;
020:
021: import org.apache.geronimo.system.plugin.model.ArtifactType;
022: import org.apache.geronimo.system.plugin.model.ConfigXmlContentType;
023: import org.apache.geronimo.system.plugin.model.CopyFileType;
024: import org.apache.geronimo.system.plugin.model.DependencyType;
025: import org.apache.geronimo.system.plugin.model.HashType;
026: import org.apache.geronimo.system.plugin.model.LicenseType;
027: import org.apache.geronimo.system.plugin.model.PluginArtifactType;
028: import org.apache.geronimo.system.plugin.model.PluginType;
029: import org.apache.geronimo.system.plugin.model.PrerequisiteType;
030: import org.apache.geronimo.system.plugin.model.PropertyType;
031:
032: /**
033: * Bean class that holds information about a plugin
034: *
035: * @version $Rev: 627948 $ $Date: 2008-02-14 20:49:46 -0800 (Thu, 14 Feb 2008) $
036: */
037: public class PluginInfoBean implements Serializable {
038: protected ArtifactType moduleId;
039: protected HashType hash;
040: protected List<String> geronimoVersion;
041: protected List<String> jvmVersion;
042: protected List<PrerequisiteType> prerequisite;
043: protected List<DependencyType> dependency;
044: protected List<ArtifactType> obsoletes;
045: protected List<String> sourceRepository;
046: protected List<CopyFileType> copyFile;
047: protected List<ConfigXmlContentType> configXmlContent;
048: protected List<PropertyType> artifactAlias;
049: protected List<PropertyType> configSubstitution;
050: protected String name;
051: protected String category;
052: protected String description;
053: protected String url;
054: protected String author;
055: protected List<LicenseType> license;
056: protected PluginType plugin;
057: protected PluginArtifactType pluginArtifact;
058: protected boolean installable = true;
059: protected String validationMessage;
060:
061: public List<PropertyType> getArtifactAlias() {
062: return artifactAlias;
063: }
064:
065: public void setArtifactAlias(List<PropertyType> artifactAlias) {
066: this .artifactAlias = artifactAlias;
067: }
068:
069: public String getAuthor() {
070: return author;
071: }
072:
073: public void setAuthor(String author) {
074: this .author = author;
075: }
076:
077: public String getCategory() {
078: return category;
079: }
080:
081: public void setCategory(String category) {
082: this .category = category;
083: }
084:
085: public List<PropertyType> getConfigSubstitution() {
086: return configSubstitution;
087: }
088:
089: public void setConfigSubstitution(
090: List<PropertyType> configSubstitution) {
091: this .configSubstitution = configSubstitution;
092: }
093:
094: public List<ConfigXmlContentType> getConfigXmlContent() {
095: return configXmlContent;
096: }
097:
098: public void setConfigXmlContent(
099: List<ConfigXmlContentType> configXmlContent) {
100: this .configXmlContent = configXmlContent;
101: }
102:
103: public List<CopyFileType> getCopyFile() {
104: return copyFile;
105: }
106:
107: public void setCopyFile(List<CopyFileType> copyFile) {
108: this .copyFile = copyFile;
109: }
110:
111: public List<DependencyType> getDependency() {
112: return dependency;
113: }
114:
115: public void setDependency(List<DependencyType> dependency) {
116: this .dependency = dependency;
117: }
118:
119: public String getDescription() {
120: return description;
121: }
122:
123: public void setDescription(String description) {
124: this .description = description;
125: }
126:
127: public List<String> getGeronimoVersion() {
128: return geronimoVersion;
129: }
130:
131: public void setGeronimoVersion(List<String> geronimoVersion) {
132: this .geronimoVersion = geronimoVersion;
133: }
134:
135: public HashType getHash() {
136: return hash;
137: }
138:
139: public void setHash(HashType hash) {
140: this .hash = hash;
141: }
142:
143: public List<String> getJvmVersion() {
144: return jvmVersion;
145: }
146:
147: public void setJvmVersion(List<String> jvmVersion) {
148: this .jvmVersion = jvmVersion;
149: }
150:
151: public List<LicenseType> getLicense() {
152: return license;
153: }
154:
155: public void setLicense(List<LicenseType> license) {
156: this .license = license;
157: }
158:
159: public ArtifactType getModuleId() {
160: return moduleId;
161: }
162:
163: public void setModuleId(ArtifactType moduleId) {
164: this .moduleId = moduleId;
165: }
166:
167: public String getName() {
168: return name;
169: }
170:
171: public void setName(String name) {
172: this .name = name;
173: }
174:
175: public List<ArtifactType> getObsoletes() {
176: return obsoletes;
177: }
178:
179: public void setObsoletes(List<ArtifactType> obsoletes) {
180: this .obsoletes = obsoletes;
181: }
182:
183: public List<PrerequisiteType> getPrerequisite() {
184: return prerequisite;
185: }
186:
187: public void setPrerequisite(List<PrerequisiteType> prerequisite) {
188: this .prerequisite = prerequisite;
189: }
190:
191: public List<String> getSourceRepository() {
192: return sourceRepository;
193: }
194:
195: public void setSourceRepository(List<String> sourceRepository) {
196: this .sourceRepository = sourceRepository;
197: }
198:
199: public String getUrl() {
200: return url;
201: }
202:
203: public void setUrl(String url) {
204: this .url = url;
205: }
206:
207: public PluginType getPlugin() {
208: return plugin;
209: }
210:
211: public void setPlugin(PluginType plugin) {
212: this .plugin = plugin;
213: // copy the fields
214: author = plugin.getAuthor();
215: category = plugin.getCategory();
216: description = plugin.getDescription();
217: license = plugin.getLicense();
218: name = plugin.getName();
219: url = plugin.getUrl();
220: }
221:
222: public PluginArtifactType getPluginArtifact() {
223: return pluginArtifact;
224: }
225:
226: public void setPluginArtifact(PluginArtifactType pluginArtifact) {
227: this .pluginArtifact = pluginArtifact;
228: // copy the fields
229: artifactAlias = pluginArtifact.getArtifactAlias();
230: configSubstitution = pluginArtifact.getConfigSubstitution();
231: configXmlContent = pluginArtifact.getConfigXmlContent();
232: copyFile = pluginArtifact.getCopyFile();
233: dependency = pluginArtifact.getDependency();
234: geronimoVersion = pluginArtifact.getGeronimoVersion();
235: hash = pluginArtifact.getHash();
236: jvmVersion = pluginArtifact.getJvmVersion();
237: moduleId = pluginArtifact.getModuleId();
238: obsoletes = pluginArtifact.getObsoletes();
239: prerequisite = pluginArtifact.getPrerequisite();
240: sourceRepository = pluginArtifact.getSourceRepository();
241: }
242:
243: public boolean isInstallable() {
244: return installable;
245: }
246:
247: public void setInstallable(boolean installable) {
248: this .installable = installable;
249: }
250:
251: public String getValidationMessage() {
252: return validationMessage;
253: }
254:
255: public void setValidationMessage(String validationMessage) {
256: this.validationMessage = validationMessage;
257: }
258: }
|