public class StreamSummary extends ServerResource implements IStreamSummary
Modifier and Type | Class and Description |
---|---|
static class |
StreamSummary.Options
Simple default generic IOptions implementation class.
|
IStreamSummary.IOptions, IStreamSummary.ParentView, IStreamSummary.Type
refreshable, server, updateable
Constructor and Description |
---|
StreamSummary()
Default constructor -- sets all fields to null or false.
|
StreamSummary(boolean summaryOnly)
Default constructor; same as no-argument default constructor, except that
it sets the ServerResource superclass fields appropriately for summary
only (everything false) or full stream spec (updateable and refreshable).
|
StreamSummary(boolean summaryOnly,
java.lang.String stream,
java.util.Date accessed,
java.util.Date updated,
java.lang.String name,
java.lang.String ownerName,
java.lang.String description,
java.lang.String parent,
IStreamSummary.Type type,
StreamSummary.Options options)
Explicit-value constructor.
|
StreamSummary(java.util.Map<java.lang.String,java.lang.Object> map,
boolean summaryOnly)
Construct a StreamSummary from a map returned by the Perforce server.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAccessed()
Get the date of the last 'integrate' using this stream.
|
java.lang.String |
getBaseParent()
Deprecated.
|
java.lang.String |
getDescription()
Get the stream's description (if any).
|
java.lang.String |
getName()
Get the alternate name of the stream.
|
IStreamSummary.IOptions |
getOptions()
Get the stream options
|
java.lang.String |
getOwnerName()
Get the name of the user who created this stream.
|
java.lang.String |
getParent()
Get the stream's parent.
|
IStreamSummary.ParentView |
getParentView()
Get the stream parentView
|
java.lang.String |
getStream()
Get the stream's path in a stream depot.
|
IStreamSummary.Type |
getType()
Get the stream type
|
java.util.Date |
getUpdated()
Get the date specification was last modified.
|
boolean |
isChangeFlowsFromParent()
Is change flows from parent.
|
boolean |
isChangeFlowsToParent()
Is change flows to parent.
|
boolean |
isFirmerThanParent()
Is firmer than parent.
|
boolean |
isUnloaded()
Return the "unloaded" status for this stream.
|
void |
setAccessed(java.util.Date accessed)
Set the last-accessed date.
|
void |
setBaseParent(java.lang.String baseParent)
Deprecated.
|
void |
setChangeFlowsFromParent(boolean changeFlowsFromParent)
Set (true/false) the stream's change flows from parent.
|
void |
setChangeFlowsToParent(boolean changeFlowsToParent)
Set (true/false) the stream's change flows to parent.
|
void |
setDescription(java.lang.String description)
Set the stream spec description.
|
void |
setFirmerThanParent(boolean firmerThanParent)
Set (true/false) the stream is firmer than parent.
|
void |
setName(java.lang.String name)
Set the name of this stream.
|
void |
setOptions(IStreamSummary.IOptions options)
Set the stream options.
|
void |
setOwnerName(java.lang.String ownerName)
Set the owner's name for this stream.
|
void |
setParent(java.lang.String parent)
Set the stream parent.
|
void |
setParentView(IStreamSummary.ParentView parentView)
Set the stream parentView.
|
void |
setStream(java.lang.String stream)
Set the stream's path.
|
void |
setType(IStreamSummary.Type type)
Set the stream type.
|
void |
setUpdated(java.util.Date updated)
Set the last-updated date.
|
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
public StreamSummary()
public StreamSummary(boolean summaryOnly)
summaryOnly
- if truepublic StreamSummary(boolean summaryOnly, java.lang.String stream, java.util.Date accessed, java.util.Date updated, java.lang.String name, java.lang.String ownerName, java.lang.String description, java.lang.String parent, IStreamSummary.Type type, StreamSummary.Options options)
summaryOnly
- summaryOnlystream
- streamaccessed
- accessedupdated
- updatedname
- nameownerName
- ownerNamedescription
- descriptionparent
- parenttype
- typeoptions
- optionspublic StreamSummary(java.util.Map<java.lang.String,java.lang.Object> map, boolean summaryOnly)
If map is null, this is equivalent to calling the default summaryOnly-argument constructor.
map
- spec mapsummaryOnly
- if truepublic java.lang.String getStream()
IStreamSummary
getStream
in interface IStreamSummary
IStreamSummary.getStream()
public void setStream(java.lang.String stream)
IStreamSummary
setStream
in interface IStreamSummary
stream
- new stream's pathIStreamSummary.setStream(String)
public java.util.Date getAccessed()
IStreamSummary
getAccessed
in interface IStreamSummary
IStreamSummary.getAccessed()
public void setAccessed(java.util.Date accessed)
IStreamSummary
setAccessed
in interface IStreamSummary
accessed
- new accessed date.IStreamSummary.setAccessed(java.util.Date)
public java.util.Date getUpdated()
IStreamSummary
getUpdated
in interface IStreamSummary
IStreamSummary.getUpdated()
public void setUpdated(java.util.Date updated)
IStreamSummary
setUpdated
in interface IStreamSummary
updated
- new updated date.IStreamSummary.setUpdated(java.util.Date)
public java.lang.String getName()
IStreamSummary
getName
in interface IStreamSummary
IStreamSummary.getName()
public void setName(java.lang.String name)
IStreamSummary
setName
in interface IStreamSummary
name
- new stream spec nameIStreamSummary.setName(java.lang.String)
public java.lang.String getOwnerName()
IStreamSummary
getOwnerName
in interface IStreamSummary
IStreamSummary.getOwnerName()
public void setOwnerName(java.lang.String ownerName)
IStreamSummary
setOwnerName
in interface IStreamSummary
ownerName
- new owner's nameIStreamSummary.setOwnerName(java.lang.String)
public java.lang.String getDescription()
IStreamSummary
getDescription
in interface IStreamSummary
IStreamSummary.getDescription()
public void setDescription(java.lang.String description)
IStreamSummary
setDescription
in interface IStreamSummary
description
- new description string.IStreamSummary.setDescription(java.lang.String)
public java.lang.String getParent()
IStreamSummary
getParent
in interface IStreamSummary
IStreamSummary.getParent()
public void setParent(java.lang.String parent)
IStreamSummary
setParent
in interface IStreamSummary
parent
- new stream parent.IStreamSummary.setParent(java.lang.String)
public IStreamSummary.Type getType()
IStreamSummary
getType
in interface IStreamSummary
IStreamSummary.getType()
public IStreamSummary.ParentView getParentView()
IStreamSummary
getParentView
in interface IStreamSummary
IStreamSummary.getParentView()
public void setType(IStreamSummary.Type type)
IStreamSummary
setType
in interface IStreamSummary
type
- new stream type.IStreamSummary.setType(com.perforce.p4java.core.IStreamSummary.Type)
public void setParentView(IStreamSummary.ParentView parentView)
IStreamSummary
setParentView
in interface IStreamSummary
parentView
- new stream parentView.IStreamSummary.setParentView(com.perforce.p4java.core.IStreamSummary.ParentView)
public IStreamSummary.IOptions getOptions()
IStreamSummary
getOptions
in interface IStreamSummary
IStreamSummary.getOptions()
public void setOptions(IStreamSummary.IOptions options)
IStreamSummary
setOptions
in interface IStreamSummary
options
- new stream options.IStreamSummary.setOptions(com.perforce.p4java.core.IStreamSummary.IOptions)
public boolean isFirmerThanParent()
IStreamSummary
isFirmerThanParent
in interface IStreamSummary
IStreamSummary.isFirmerThanParent()
public void setFirmerThanParent(boolean firmerThanParent)
IStreamSummary
setFirmerThanParent
in interface IStreamSummary
firmerThanParent
- if trueIStreamSummary.setFirmerThanParent(boolean)
public boolean isChangeFlowsToParent()
IStreamSummary
isChangeFlowsToParent
in interface IStreamSummary
IStreamSummary.isChangeFlowsToParent()
public void setChangeFlowsToParent(boolean changeFlowsToParent)
IStreamSummary
setChangeFlowsToParent
in interface IStreamSummary
changeFlowsToParent
- if trueIStreamSummary.setChangeFlowsToParent(boolean)
public boolean isChangeFlowsFromParent()
IStreamSummary
isChangeFlowsFromParent
in interface IStreamSummary
IStreamSummary.isChangeFlowsFromParent()
public void setChangeFlowsFromParent(boolean changeFlowsFromParent)
IStreamSummary
setChangeFlowsFromParent
in interface IStreamSummary
changeFlowsFromParent
- if trueIStreamSummary.setChangeFlowsFromParent(boolean)
@Deprecated public java.lang.String getBaseParent()
IStreamSummary
getBaseParent
in interface IStreamSummary
IStreamSummary.getBaseParent()
@Deprecated public void setBaseParent(java.lang.String baseParent)
IStreamSummary
setBaseParent
in interface IStreamSummary
baseParent
- new stream base parent.IStreamSummary.setBaseParent(java.lang.String)
public boolean isUnloaded()
IStreamSummary
isUnloaded
in interface IStreamSummary
IStreamSummary.isUnloaded()