summaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata/metadata-model/src
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-11-26 06:44:40 +0000
committerBrett Porter <brett@apache.org>2009-11-26 06:44:40 +0000
commitbf527dc936e557e9ae5d865c309574914448a9b5 (patch)
tree0fd56729a641110da1247f32cd3560b8258f3bc7 /archiva-modules/metadata/metadata-model/src
parentb28cc66a36f6a690b4deea45230e8a15da6acd4b (diff)
downloadarchiva-bf527dc936e557e9ae5d865c309574914448a9b5.tar.gz
archiva-bf527dc936e557e9ae5d865c309574914448a9b5.zip
[MRM-1283] migrate mailingLists() method to metadata repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@884414 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata/metadata-model/src')
-rw-r--r--archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MailingList.java97
-rw-r--r--archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java23
2 files changed, 119 insertions, 1 deletions
diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MailingList.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MailingList.java
new file mode 100644
index 000000000..a9530b79d
--- /dev/null
+++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/MailingList.java
@@ -0,0 +1,97 @@
+package org.apache.archiva.metadata.model;
+
+import java.util.List;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+public class MailingList
+{
+ private String mainArchiveUrl;
+
+ private List<String> otherArchives;
+
+ private String name;
+
+ private String postAddress;
+
+ private String subscribeAddress;
+
+ private String unsubscribeAddress;
+
+ public void setMainArchiveUrl( String mainArchiveUrl )
+ {
+ this.mainArchiveUrl = mainArchiveUrl;
+ }
+
+ public String getMainArchiveUrl()
+ {
+ return mainArchiveUrl;
+ }
+
+ public void setOtherArchives( List<String> otherArchives )
+ {
+ this.otherArchives = otherArchives;
+ }
+
+ public List<String> getOtherArchives()
+ {
+ return otherArchives;
+ }
+
+ public void setName( String name )
+ {
+ this.name = name;
+ }
+
+ public void setPostAddress( String postAddress )
+ {
+ this.postAddress = postAddress;
+ }
+
+ public void setSubscribeAddress( String subscribeAddress )
+ {
+ this.subscribeAddress = subscribeAddress;
+ }
+
+ public void setUnsubscribeAddress( String unsubscribeAddress )
+ {
+ this.unsubscribeAddress = unsubscribeAddress;
+ }
+
+ public String getSubscribeAddress()
+ {
+ return subscribeAddress;
+ }
+
+ public String getUnsubscribeAddress()
+ {
+ return unsubscribeAddress;
+ }
+
+ public String getPostAddress()
+ {
+ return postAddress;
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+}
diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java
index 159afd15c..ff78fcd76 100644
--- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java
+++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java
@@ -45,7 +45,9 @@ public class ProjectVersionMetadata
private List<License> licenses;
- private Map<String, ProjectVersionFacet> facets = new HashMap<String, ProjectVersionFacet>();;
+ private Map<String, ProjectVersionFacet> facets = new HashMap<String, ProjectVersionFacet>();
+
+ private List<MailingList> mailingLists;
public String getId()
{
@@ -165,4 +167,23 @@ public class ProjectVersionMetadata
{
return this.facets.keySet();
}
+
+ public void setMailingLists( List<MailingList> mailingLists )
+ {
+ this.mailingLists = mailingLists;
+ }
+
+ public List<MailingList> getMailingLists()
+ {
+ return mailingLists;
+ }
+
+ public void addMailingList( MailingList mailingList )
+ {
+ if ( this.mailingLists == null )
+ {
+ this.mailingLists = new ArrayList<MailingList>();
+ }
+ this.mailingLists.add( mailingList );
+ }
}