public class Versioning extends Object implements Serializable, Cloneable
Constructor and Description |
---|
Versioning() |
Modifier and Type | Method and Description |
---|---|
void |
addSnapshotVersion(SnapshotVersion snapshotVersion)
Method addSnapshotVersion.
|
void |
addVersion(String string)
Method addVersion.
|
Versioning |
clone()
Method clone.
|
String |
getLastUpdated()
Get when the metadata was last updated (both
"groupId/artifactId" and "groupId/artifactId/version"
directories).
|
String |
getLatest()
Get what the last version added to the directory is,
including both releases and snapshots ("groupId/artifactId"
directory only).
|
String |
getRelease()
Get what the last version added to the directory is, for the
releases only ("groupId/artifactId" directory only).
|
Snapshot |
getSnapshot()
Get the current snapshot data in use for this version
("groupId/artifactId/version" only).
|
List<SnapshotVersion> |
getSnapshotVersions()
Method getSnapshotVersions.
|
List<String> |
getVersions()
Method getVersions.
|
void |
removeSnapshotVersion(SnapshotVersion snapshotVersion)
Method removeSnapshotVersion.
|
void |
removeVersion(String string)
Method removeVersion.
|
void |
setLastUpdated(String lastUpdated)
Set when the metadata was last updated (both
"groupId/artifactId" and "groupId/artifactId/version"
directories).
|
void |
setLastUpdatedTimestamp(Date date) |
void |
setLatest(String latest)
Set what the last version added to the directory is,
including both releases and snapshots ("groupId/artifactId"
directory only).
|
void |
setRelease(String release)
Set what the last version added to the directory is, for the
releases only ("groupId/artifactId" directory only).
|
void |
setSnapshot(Snapshot snapshot)
Set the current snapshot data in use for this version
("groupId/artifactId/version" only).
|
void |
setSnapshotVersions(List<SnapshotVersion> snapshotVersions)
Set information for each sub-artifact available in this
artifact snapshot.
|
void |
setVersions(List<String> versions)
Set versions available of the artifact (both releases and
snapshots) ("groupId/artifactId" directory only).
|
void |
updateTimestamp() |
public void addSnapshotVersion(SnapshotVersion snapshotVersion)
snapshotVersion
- public void addVersion(String string)
string
- public Versioning clone()
public String getLastUpdated()
public String getLatest()
public String getRelease()
public Snapshot getSnapshot()
public List<SnapshotVersion> getSnapshotVersions()
public void removeSnapshotVersion(SnapshotVersion snapshotVersion)
snapshotVersion
- public void removeVersion(String string)
string
- public void setLastUpdated(String lastUpdated)
lastUpdated
- public void setLatest(String latest)
latest
- public void setRelease(String release)
release
- public void setSnapshot(Snapshot snapshot)
snapshot
- public void setSnapshotVersions(List<SnapshotVersion> snapshotVersions)
snapshotVersions
- public void setVersions(List<String> versions)
versions
- public void updateTimestamp()
public void setLastUpdatedTimestamp(Date date)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.