public class Baseline extends UCMEntity implements Diffable
Modifier and Type | Class and Description |
---|---|
static class |
Baseline.LabelBehaviour |
UCMEntity.Kind, UCMEntity.LabelStatus
date, dateFormatter, fqname, kind, labelStatus, loaded, mastership, pattern_std_fqname, pattern_tag_fqname, pattern_version_fqname, pvob, rx_ccdef_allowed, rx_ccdef_cc_name, rx_ccdef_filename, rx_ccdef_vob, shortname, user, vob
rx_attr_find
autoLoad, changeOwnership, changeOwnership, equals, getargComment, getargIn, getComment, getDate, getEntity, getEntity, getEntitySelector, getFqname, getFullyQualifiedName, getHyperlinks, getKind, getLabelStatus, getLabelStatusFromString, getMastership, getNamePart, getNormalizedName, getObjectId, getObjectId, getPVob, getShortname, getTag, getUser, hashCode, initialize, isCreated, isLoaded, loadDate, setComment, setCreated, setDate, setDate, setFqname, setKind, setLabelStatusFromString, setMastership, setUser, toString
createSimpleAttributeType, getAttribute, getAttributes, getAttributes, getAttributes, setAttribute, setAttribute
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFullyQualifiedName
public Baseline load(boolean force) throws UnableToLoadEntityException, UnableToInitializeEntityException
public Baseline load() throws UnableToLoadEntityException, UnableToInitializeEntityException
load
in class UCMEntity
UnableToLoadEntityException
- Thrown when ClearCase reports errorsUnableToInitializeEntityException
- Thrown when ClearCase reports errorspublic static Baseline create(String basename, Component component, File view, Baseline.LabelBehaviour labelBehaviour, boolean identical) throws UnableToInitializeEntityException, UnableToCreateEntityException, NothingNewException
public static Baseline create(Stream stream, Component component, String basename, File view, Baseline.LabelBehaviour labelBehaviour, boolean identical) throws UnableToInitializeEntityException, UnableToCreateEntityException, NothingNewException
public static Baseline create(String basename, Component component, File view, Baseline.LabelBehaviour labelBehaviour, boolean identical, List<Activity> activities, List<Component> depends) throws UnableToInitializeEntityException, UnableToCreateEntityException, NothingNewException
basename
- The base name for the new Baseline
component
- The Component
in which the baseline should be createdview
- Current SnapshotView
view root.labelBehaviour
- The Baseline.LabelBehaviour
to use.identical
- Should we allow identical baselines to be created?activities
- Activitiesdepends
- Add Component
dependenciesUnableToInitializeEntityException
- Thrown when ClearCase reports errorsUnableToCreateEntityException
- Thrown when ClearCase reports errorsNothingNewException
- Thrown when ClearCase reports errorspublic Project.PromotionLevel getPromotionLevel()
public Project.PromotionLevel promote() throws UnableToPromoteBaselineException
INITAL
.UnableToPromoteBaselineException
- Thrown when ClearCase reports errorspublic Project.PromotionLevel reject() throws UnableToPromoteBaselineException
REJECTED
the Baseline.Project.PromotionLevel
UnableToPromoteBaselineException
- Thrown when ClearCase reports errorspublic void setPromotionLevel(Project.PromotionLevel plevel) throws UnableToPromoteBaselineException
Project.PromotionLevel
plevel
- The new Project.PromotionLevel
UnableToPromoteBaselineException
- Thrown when ClearCase reports errorspublic void setLocalPromotionLevel(Project.PromotionLevel plevel)
Project.PromotionLevel
of this Baseline
, without persisting it in ClearCase.plevel
- Set the new promotion levelpublic Component getComponent()
public List<Baseline> getDependent() throws CleartoolException, UnableToInitializeEntityException
CleartoolException
- Thrown when ClearCase reports errorsUnableToInitializeEntityException
- Thrown when ClearCase reports errorspublic Stream getStream()
public boolean shouldResetMastership() throws ClearCaseException
ClearCaseException
public void resetMastership() throws ClearCaseException
ClearCaseException
public String stringify()
UCMEntity
public static Baseline get(String name) throws UnableToInitializeEntityException
public static Baseline get(String name, PVob pvob) throws UnableToInitializeEntityException
public List<Baseline> getPostedBaselinesFor(Component component) throws UnableToInitializeEntityException, CleartoolException
public List<Baseline> getCompositeMemberBaselines() throws UnableToInitializeEntityException, CleartoolException
Baseline
s that are members of this Baseline
.
That is, Baseline
s that are descendants of this.Baseline
sUnableToInitializeEntityException
- Thrown when ClearCase reports errorsCleartoolException
- Thrown when ClearCase reports errorspublic List<Baseline> getCompositeMemberBaselines(Component component) throws UnableToInitializeEntityException, CleartoolException
Get all the composite Baseline
s that are members of this Baseline
given a specific Component
.
That is, Baseline
s that are descendants of this.
component
- A list of components to considerBaseline
sUnableToInitializeEntityException
- Thrown when ClearCase reports errorsCleartoolException
- Thrown when ClearCase reports errorspublic List<Baseline> getCompositeDependantBaselines() throws UnableToInitializeEntityException, CleartoolException
Baseline
s that are dependant on this Baseline
.
That is, Baseline
s that are ancestors of this.Baseline
UnableToInitializeEntityException
- Thrown when a ClearTool error occursCleartoolException
- Thrown when a ClearTool error occurspublic List<Baseline> getCompositeDependantBaselines(Component component) throws UnableToInitializeEntityException, CleartoolException
Get all the composite Baseline
s that are dependant on this Baseline
given a specific Component
.
That is, Baseline
s that are ancestors of this.
component
- The Component
to look underBaseline
sUnableToInitializeEntityException
- Thrown when ClearCase reports errorsCleartoolException
- Thrown when ClearCase reports errorspublic Baseline getRootedBaseline() throws UnableToInitializeEntityException, CleartoolException
Baseline
. Returns null if none found.UnableToInitializeEntityException
- Thrown when ClearCase reports errorsCleartoolException
- Thrown when ClearCase reports errorspublic boolean isCompositeBaseline() throws UnableToInitializeEntityException, CleartoolException
Copyright © 2016–2018. All rights reserved.