public class Stream extends UCMEntity implements Diffable, Serializable, StreamContainable
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
Constructor and Description |
---|
Stream() |
Modifier and Type | Method and Description |
---|---|
void |
addFoundationBaseline(Baseline baseline)
|
static Stream |
create(StreamContainable parent,
String nstream,
boolean readonly,
List<Baseline> baselines)
Create a new stream in ClearCase, given a parent Stream, a fully qualified name for
the new Stream and whether the Stream is read only or not
|
static Stream |
create(Stream parent,
String nstream,
boolean readonly,
Baseline baseline) |
static Stream |
createIntegration(String name,
Project project,
Baseline baseline) |
static Stream |
createIntegration(String name,
Project project,
List<Baseline> baselines)
Create an integration
Stream in ClearCase |
boolean |
exists() |
void |
generate()
Update the config spec of the
Stream |
static Stream |
get(String name) |
static Stream |
get(String name,
PVob pvob) |
List<Stream> |
getChildStreams(boolean multisitePolling) |
Stream |
getDefaultTarget()
This method returns the default Stream the given Stream will deliver to.
|
Stream |
getDeliveringStream(boolean isMultiSite)
|
Stream |
getDeliveringStream(boolean isMultiSite,
List<Stream> streams) |
List<Stream> |
getDeliveringStreamsUsingHlink(String hyperLinkName)
For JENKINS-26484
|
Deliver.Status |
getDeliverStatus() |
Baseline |
getFoundationBaseline()
Get the first foundation baseline.
|
List<Baseline> |
getFoundationBaselines() |
Baseline |
getLatestBaseline(Component component)
|
List<Baseline> |
getLatestBaselines() |
String |
getOriginalMastership()
Get the original mastership from ClearCase
|
Stream |
getParent() |
List<Baseline> |
getPostedBaselines(Component component,
Project.PromotionLevel plevel) |
Project |
getProject() |
List<Baseline> |
getRecommendedBaselines() |
List<Baseline> |
getRecommendedBaselines(boolean force) |
List<Stream> |
getSiblingStreams()
For each project return their integration streams
|
Component |
getSingleTopComponent() |
List<UCMView> |
getViews() |
boolean |
hasPostedDelivery() |
boolean |
isReadOnly() |
Stream |
load()
Default load functionality for the entity.
|
void |
recommendBaseline(Baseline baseline)
|
void |
remove()
Remove this
Stream from ClearCase |
void |
setDefaultTarget(Stream stream)
Set the default target
Stream in ClearCase |
void |
setFoundationBaseline(Baseline baseline) |
void |
setParent(Stream parent) |
void |
setProject(Project project)
|
void |
setReadOnly(boolean readOnly) |
static boolean |
streamExists(String fqname)
Determines whether a Stream exists, given a fully qualified name
|
String |
stringify()
Returns a string representation of the entity object
|
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
getFullyQualifiedName, getPVob
public static Stream create(Stream parent, String nstream, boolean readonly, Baseline baseline) throws UnableToCreateEntityException, UnableToInitializeEntityException
public static Stream create(StreamContainable parent, String nstream, boolean readonly, List<Baseline> baselines) throws UnableToCreateEntityException, UnableToInitializeEntityException
parent
- The parent Streamnstream
- The fully qualified name of the new Streamreadonly
- Whether the new Stream is read only or notbaselines
- Initial configuration of baselines for the streamUnableToCreateEntityException
- Thrown when ClearCase reports errorsUnableToInitializeEntityException
- Thrown when ClearCase reports errorspublic static Stream createIntegration(String name, Project project, Baseline baseline) throws UnableToCreateEntityException, UCMEntityNotFoundException, UnableToGetEntityException, UnableToInitializeEntityException
public static Stream createIntegration(String name, Project project, List<Baseline> baselines) throws UnableToCreateEntityException, UCMEntityNotFoundException, UnableToGetEntityException, UnableToInitializeEntityException
Stream
in ClearCasename
- The name of the new integration streamproject
- The project under which the stream is createdbaselines
- Initial configuration of baselinesStream
UnableToCreateEntityException
- Thrown when ClearCase reports errorsUCMEntityNotFoundException
- Thrown when ClearCase reports errorsUnableToGetEntityException
- Thrown when ClearCase reports errorsUnableToInitializeEntityException
- Thrown when ClearCase reports errorspublic Stream load() throws UCMEntityNotFoundException, UnableToLoadEntityException, UnableToInitializeEntityException
UCMEntity
load
in class UCMEntity
UCMEntity
UCMEntityNotFoundException
- Thrown when ClearCase reports errorsUnableToLoadEntityException
- Thrown when ClearCase reports errorsUnableToInitializeEntityException
- Thrown when ClearCase reports errorspublic List<Stream> getChildStreams(boolean multisitePolling) throws UnableToInitializeEntityException, CleartoolException
public List<Baseline> getPostedBaselines(Component component, Project.PromotionLevel plevel) throws UnableToInitializeEntityException
public boolean hasPostedDelivery() throws UnableToInitializeEntityException
public void setDefaultTarget(Stream stream) throws CleartoolException
Stream
in ClearCasestream
- The Stream
CleartoolException
- Thrown when ClearCase reports errorspublic List<Stream> getSiblingStreams() throws UnableToListProjectsException, UnableToInitializeEntityException, UnableToLoadEntityException, UCMEntityNotFoundException
Stream
sUnableToListProjectsException
- Thrown when ClearCase reports errorsUnableToInitializeEntityException
- Thrown when ClearCase reports errorsUnableToLoadEntityException
- Thrown when ClearCase reports errorsUCMEntityNotFoundException
- Thrown when ClearCase reports errorspublic List<Stream> getDeliveringStreamsUsingHlink(String hyperLinkName) throws UnableToListProjectsException, UnableToInitializeEntityException, UnableToLoadEntityException, UCMEntityNotFoundException, HyperlinkException
hyperLinkName
- The name of the hyperlinkUnableToListProjectsException
- Thrown when ClearCase cannot list projectsUnableToInitializeEntityException
- Thrown when ClearCase reports errorUnableToLoadEntityException
- Thrown when ClearCase reports errorUCMEntityNotFoundException
- Thrown when ClearCase reports errorHyperlinkException
- Thrown when a ClearTool error occurspublic static boolean streamExists(String fqname)
fqname
- Fully qualified namepublic boolean exists()
public Stream getDeliveringStream(boolean isMultiSite) throws ClearCaseException
isMultiSite
- MultisiteStream
ClearCaseException
- Thrown when ClearCase reports errorspublic Stream getDeliveringStream(boolean isMultiSite, List<Stream> streams) throws ClearCaseException
isMultiSite
- Is multisite enabled?streams
- StreamsStream
ClearCaseException
- Thrown when ClearCase reports errorspublic Deliver.Status getDeliverStatus() throws ClearCaseException
ClearCaseException
public List<Baseline> getRecommendedBaselines() throws UnableToListBaselinesException, UnableToInitializeEntityException
public void generate() throws CleartoolException
Stream
CleartoolException
- Thrown when ClearCase reports errorpublic List<Baseline> getRecommendedBaselines(boolean force) throws UnableToListBaselinesException, UnableToInitializeEntityException
public void recommendBaseline(Baseline baseline) throws CleartoolException
baseline
- The Baseline
to recommendCleartoolException
- Thrown when ClearCase reports errorspublic List<Baseline> getLatestBaselines() throws UnableToInitializeEntityException, CleartoolException
public Baseline getLatestBaseline(Component component) throws UnableToInitializeEntityException, CleartoolException
component
- The Component
Baseline
under the given Component
UnableToInitializeEntityException
- Thrown when ClearCase reports errorsCleartoolException
- Thrown when ClearCase reports errorspublic Component getSingleTopComponent() throws NoSingleTopComponentException, UnableToInitializeEntityException
public Project getProject()
public List<UCMView> getViews() throws CleartoolException, ViewException
CleartoolException
ViewException
public void remove() throws UnableToRemoveEntityException
Stream
from ClearCaseUnableToRemoveEntityException
- Thrown when ClearCase reports errorspublic Stream getDefaultTarget()
public void setReadOnly(boolean readOnly)
public boolean isReadOnly()
public void setFoundationBaseline(Baseline baseline)
public void addFoundationBaseline(Baseline baseline)
public Baseline getFoundationBaseline()
Baseline
public List<Baseline> getFoundationBaselines()
Baseline
s, never nullpublic void setParent(Stream parent)
public Stream getParent()
public String getOriginalMastership() throws CleartoolException
CleartoolException
- Thrown when ClearCase reports errorspublic String stringify()
UCMEntity
public static Stream get(String name) throws UnableToInitializeEntityException
public static Stream get(String name, PVob pvob) throws UnableToInitializeEntityException
Copyright © 2016–2018. All rights reserved.