summaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata/metadata-model/src
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-12-02 11:54:28 +0000
committerBrett Porter <brett@apache.org>2009-12-02 11:54:28 +0000
commit49157f1525fd64a51db6a30d5b0e59eda61e7c9f (patch)
treefa6539a2e89a939b3a6644d7e9af17ba5a9ea97c /archiva-modules/metadata/metadata-model/src
parentb9d374dd0956058982b4e87932e122cf3ced20bb (diff)
downloadarchiva-49157f1525fd64a51db6a30d5b0e59eda61e7c9f.tar.gz
archiva-49157f1525fd64a51db6a30d5b0e59eda61e7c9f.zip
[MRM-1025] fill out more of the information in the metadata creation consumer to make it consistent with the current database record creation consumer
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@886126 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.java64
1 files changed, 48 insertions, 16 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 51e6a550a..0cf4fda3c 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
@@ -25,12 +25,18 @@ public class ArtifactMetadata
{
private String id;
- private Date updated;
-
private long size;
private String version;
+ private Date fileLastModified;
+
+ private Date whenGathered;
+
+ private String md5;
+
+ private String sha1;
+
public String getId()
{
return id;
@@ -41,38 +47,64 @@ public class ArtifactMetadata
this.id = id;
}
- public Date getUpdated()
+ public long getSize()
{
- return updated;
+ return size;
}
- public void setUpdated( Date updated )
+ public void setSize( long size )
{
- this.updated = updated;
+ this.size = size;
}
- public void setUpdated( long updated )
+ public String getVersion()
{
- this.updated = new Date( updated );
+ return version;
}
- public long getSize()
+ public void setVersion( String version )
{
- return size;
+ this.version = version;
}
- public void setSize( long size )
+ public void setFileLastModified( long fileLastModified )
{
- this.size = size;
+ this.fileLastModified = new Date( fileLastModified );
}
- public String getVersion()
+ public void setWhenGathered( Date whenGathered )
{
- return version;
+ this.whenGathered = whenGathered;
}
- public void setVersion( String version )
+ public void setMd5( String md5 )
{
- this.version = version;
+ this.md5 = md5;
+ }
+
+ public void setSha1( String sha1 )
+ {
+ this.sha1 = sha1;
+ }
+
+ public Date getWhenGathered()
+ {
+ return whenGathered;
+ }
+
+ public String getMd5()
+ {
+ return md5;
+ }
+
+ public String getSha1()
+ {
+ return sha1;
+ }
+
+ public Date getFileLastModified()
+ {
+
+ return fileLastModified;
}
}