public abstract class RepositoryBaselineSupport
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
RepositoryBaselineSupport()
Constructs an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
abandonPreparedBaseline(java.lang.String reposId)
Abandons a baseline that was just prepared.
|
abstract java.lang.Long |
certifyBaseline(java.lang.String reposId,
java.lang.String certifiedLabel,
java.lang.String description)
Finalizes a certified baseline that has been prepared.
|
abstract java.util.Set<java.lang.Long> |
certifyBaselines(java.util.Map<java.lang.String,java.lang.String> certifiedLabels,
java.lang.String description)
Finalizes in an atomic transaction a collection of certified baslines that
have been prepared.
|
void |
deleteBaselines(java.util.Set<java.lang.Long> baselineIDs)
Deletes certified baselines.
|
static RepositoryBaselineSupport |
getInstance()
Gets the system default instance of this class.
|
abstract MetadataRepositoryBaseline |
getLatestBaseline(java.lang.String reposId)
Gets the latest certified baseline of a repository.
|
abstract void |
prepareBaseline(java.lang.String reposId,
java.lang.String preCertifiedLabel)
Prepares for the next certified baseline.
|
protected RepositoryBaselineSupport()
public static RepositoryBaselineSupport getInstance()
public abstract MetadataRepositoryBaseline getLatestBaseline(java.lang.String reposId)
reposId - the repository IDnull if this repository
is fresh without prior customizationjava.lang.IllegalArgumentException - if the given repository ID is nullpublic abstract void prepareBaseline(java.lang.String reposId,
java.lang.String preCertifiedLabel)
reposId - the repository IDpreCertifiedLabel - the pre-certified label to be recorded;
null if not availablepublic abstract void abandonPreparedBaseline(java.lang.String reposId)
reposId - the repository IDpublic abstract java.lang.Long certifyBaseline(java.lang.String reposId,
java.lang.String certifiedLabel,
java.lang.String description)
reposId - the repository IDcertifiedLabel - the label associated with the baselinedescription - the short description of the new baselinepublic abstract java.util.Set<java.lang.Long> certifyBaselines(java.util.Map<java.lang.String,java.lang.String> certifiedLabels,
java.lang.String description)
certifiedLabels - the map from the IDs of the repositories to their
certified labelsdescription - the short description of the new baselinespublic void deleteBaselines(java.util.Set<java.lang.Long> baselineIDs)
baselineIDs - the set of baseline IDsjava.lang.UnsupportedOperationException - if this operation is not supported