diff options
author | Brett Porter <brett@apache.org> | 2009-12-09 08:08:21 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-12-09 08:08:21 +0000 |
commit | 99765460e017147e9663e3f653a3f243a6b705ea (patch) | |
tree | d29640960376b4688556f3935cd4f983dbf83a3c /archiva-modules/metadata/metadata-model/src | |
parent | 94e702281c96889f2736ba937cdde517646921ed (diff) | |
download | archiva-99765460e017147e9663e3f653a3f243a6b705ea.tar.gz archiva-99765460e017147e9663e3f653a3f243a6b705ea.zip |
[MRM-1299] migrate RSS from the database to the metadata repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@888723 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/ArtifactMetadata.java | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java index 0cf4fda3c..aee6c4b6b 100644 --- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java +++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ArtifactMetadata.java @@ -37,6 +37,12 @@ public class ArtifactMetadata private String sha1; + private String namespace; + + private String project; + + private String repositoryId; + public String getId() { return id; @@ -107,4 +113,101 @@ public class ArtifactMetadata return fileLastModified; } + + public String getNamespace() + { + return namespace; + } + + public void setNamespace( String namespace ) + { + this.namespace = namespace; + } + + public void setProject( String project ) + { + this.project = project; + } + + public String getProject() + { + return project; + } + + public String getRepositoryId() + { + return repositoryId; + } + + public void setRepositoryId( String repositoryId ) + { + this.repositoryId = repositoryId; + } + + @Override + public boolean equals( Object o ) + { + if ( this == o ) + { + return true; + } + if ( o == null || getClass() != o.getClass() ) + { + return false; + } + + ArtifactMetadata that = (ArtifactMetadata) o; + + if ( size != that.size ) + { + return false; + } + if ( !fileLastModified.equals( that.fileLastModified ) ) + { + return false; + } + if ( !id.equals( that.id ) ) + { + return false; + } + if ( md5 != null ? !md5.equals( that.md5 ) : that.md5 != null ) + { + return false; + } + if ( namespace != null ? !namespace.equals( that.namespace ) : that.namespace != null ) + { + return false; + } + if ( project != null ? !project.equals( that.project ) : that.project != null ) + { + return false; + } + if ( repositoryId != null ? !repositoryId.equals( that.repositoryId ) : that.repositoryId != null ) + { + return false; + } + if ( sha1 != null ? !sha1.equals( that.sha1 ) : that.sha1 != null ) + { + return false; + } + if ( !version.equals( that.version ) ) + { + return false; + } + if ( !whenGathered.equals( that.whenGathered ) ) + { + return false; + } + + return true; + } + + @Override + public String toString() + { + return "ArtifactMetadata{" + "id='" + id + '\'' + ", size=" + size + ", version='" + version + '\'' + + ", fileLastModified=" + fileLastModified + ", whenGathered=" + whenGathered + ", md5='" + md5 + '\'' + + ", sha1='" + sha1 + '\'' + ", namespace='" + namespace + '\'' + ", project='" + project + '\'' + + ", repositoryId='" + repositoryId + '\'' + '}'; + } } |