aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-model
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-12-15 23:07:36 +0000
committerBrett Porter <brett@apache.org>2009-12-15 23:07:36 +0000
commit4331620db667226493479efa67b44ae27e890582 (patch)
tree76eb805c6a301589e441abce751f233ff24fe89c /archiva-modules/archiva-base/archiva-model
parent7da14962fa313809e961ffd1d248260b146b1045 (diff)
downloadarchiva-4331620db667226493479efa67b44ae27e890582.tar.gz
archiva-4331620db667226493479efa67b44ae27e890582.zip
[MRM-1301] migrate reports to metadata repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@891064 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-model')
-rw-r--r--archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/RepositoryProblemReport.java125
-rw-r--r--archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml110
2 files changed, 0 insertions, 235 deletions
diff --git a/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/RepositoryProblemReport.java b/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/RepositoryProblemReport.java
deleted file mode 100644
index 42093854a..000000000
--- a/archiva-modules/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/RepositoryProblemReport.java
+++ /dev/null
@@ -1,125 +0,0 @@
-package org.apache.maven.archiva.model;
-
-/*
- * 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.
- */
-
-/**
- * RepositoryProblemReport
- *
- * @version $Id$
- */
-public class RepositoryProblemReport
- extends RepositoryProblem
-{
- private static final long serialVersionUID = 4990893576717148324L;
-
- protected String groupURL;
-
- protected String artifactURL;
-
- protected String versionURL;
-
- public RepositoryProblemReport( RepositoryProblem repositoryProblem )
- {
- setGroupId( repositoryProblem.getGroupId() );
- setArtifactId( repositoryProblem.getArtifactId() );
- setVersion( repositoryProblem.getVersion() );
- setMessage( repositoryProblem.getMessage() );
- setOrigin( repositoryProblem.getOrigin() );
- setPath( repositoryProblem.getPath() );
- setType( repositoryProblem.getType() );
- setRepositoryId( repositoryProblem.getRepositoryId() );
- }
-
- public void setGroupURL( String groupURL )
- {
- this.groupURL = groupURL;
- }
-
- public String getGroupURL()
- {
- return groupURL;
- }
-
- public void setArtifactURL( String artifactURL )
- {
- this.artifactURL = artifactURL;
- }
-
- public String getArtifactURL()
- {
- return artifactURL;
- }
-
- public void setVersionURL( String versionURL )
- {
- this.versionURL = versionURL;
- }
-
- public String getVersionURL()
- {
- return versionURL;
- }
-
- @Override
- public boolean equals( Object o )
- {
- if ( this == o )
- {
- return true;
- }
- if ( o == null || getClass() != o.getClass() )
- {
- return false;
- }
-
- RepositoryProblemReport that = (RepositoryProblemReport) o;
-
- if ( artifactURL != null ? !artifactURL.equals( that.artifactURL ) : that.artifactURL != null )
- {
- return false;
- }
- if ( groupURL != null ? !groupURL.equals( that.groupURL ) : that.groupURL != null )
- {
- return false;
- }
- if ( versionURL != null ? !versionURL.equals( that.versionURL ) : that.versionURL != null )
- {
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode()
- {
- int result = groupURL != null ? groupURL.hashCode() : 0;
- result = 31 * result + ( artifactURL != null ? artifactURL.hashCode() : 0 );
- result = 31 * result + ( versionURL != null ? versionURL.hashCode() : 0 );
- return result;
- }
-
- @Override
- public String toString()
- {
- return "RepositoryProblemReport{" + "groupURL='" + groupURL + '\'' + ", artifactURL='" + artifactURL + '\'' +
- ", versionURL='" + versionURL + '\'' + '}';
- }
-}
diff --git a/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml b/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml
index 0b25d4e37..6348c67f6 100644
--- a/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml
+++ b/archiva-modules/archiva-base/archiva-model/src/main/mdo/archiva-base.xml
@@ -44,14 +44,6 @@
<multiplicity>*</multiplicity>
</association>
</field>
- <field>
- <name>repositoryProblems</name>
- <version>1.0.0+</version>
- <association>
- <type>RepositoryProblem</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
</fields>
<codeSegments>
<codeSegment>
@@ -838,107 +830,5 @@
</codeSegment>
</codeSegments>
</class>
-
- <!-- _______________________________________________________________
- _ _ _ _ _
- | | | | ___ __ _| | |_| |__
- | |_| |/ _ \/ _` | | __| '_ \
- | _ | __/ (_| | | |_| | | |
- |_| |_|\___|\__,_|_|\__|_| |_|
- -->
-
- <class stash.storable="true"
- jpox.table="REPOSITORY_PROBLEMS">
- <name>RepositoryProblem</name>
- <version>1.0.0+</version>
- <fields>
- <field stash.maxSize="50">
- <name>repositoryId</name>
- <version>1.0.0+</version>
- <required>true</required>
- <type>String</type>
- <description>
- The repository associated with this path and problem.
- </description>
- </field>
- <field stash.maxSize="250"
- jpox.column="REPO_PATH">
- <name>path</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The path into the repository for the problem.
- </description>
- </field>
- <field stash.maxSize="250">
- <name>groupId</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>false</required>
- <description>
- The Group ID of the repository content with the problem.
- </description>
- </field>
- <field stash.maxSize="80">
- <name>artifactId</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>false</required>
- <description>
- The Artifact ID of the repository content with the problem.
- </description>
- </field>
- <field stash.maxSize="50">
- <name>version</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>false</required>
- <description>
- The version of the repository content with the problem.
- </description>
- </field>
- <field stash.maxSize="50"
- jpox.column="PROBLEM_TYPE">
- <name>type</name>
- <identifier>false</identifier>
- <version>1.0.0+</version>
- <required>true</required>
- <type>String</type>
- <description>
- The type of health problem.
- </description>
- </field>
- <field stash.maxSize="20"
- jpox.column="PROBLEM_ORIGIN">
- <name>origin</name>
- <identifier>false</identifier>
- <version>1.0.0+</version>
- <required>true</required>
- <type>String</type>
- <description>
- The origin of the health problem.
- </description>
- </field>
- <field stash.maxSize="4096">
- <name>message</name>
- <identifier>false</identifier>
- <version>1.0.0+</version>
- <required>true</required>
- <type>String</type>
- <description>
- The origin of the health problem.
- </description>
- </field>
- </fields>
- <codeSegments>
- <codeSegment>
- <version>1.0.0+</version>
- <code><![CDATA[
- private static final long serialVersionUID = -3426958367216659565L;
- ]]></code>
- </codeSegment>
- </codeSegments>
- </class>
</classes>
</model>