Class StreamSummary
- java.lang.Object
-
- com.perforce.p4java.impl.generic.core.ServerResource
-
- com.perforce.p4java.impl.generic.core.StreamSummary
-
- All Implemented Interfaces:
IServerResource,IStreamSummary
- Direct Known Subclasses:
Stream
public class StreamSummary extends ServerResource implements IStreamSummary
Default implementation class for the IStreamSummary interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreamSummary.OptionsSimple default generic IOptions implementation class.-
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IStreamSummary
IStreamSummary.IOptions, IStreamSummary.ParentView, IStreamSummary.Type
-
-
Field Summary
-
Fields inherited from class com.perforce.p4java.impl.generic.core.ServerResource
refreshable, server, updateable
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.DategetAccessed()Get the date of the last 'integrate' using this stream.java.lang.StringgetBaseParent()Deprecated.java.lang.StringgetDescription()Get the stream's description (if any).java.lang.StringgetName()Get the alternate name of the stream.IStreamSummary.IOptionsgetOptions()Get the stream optionsjava.lang.StringgetOwnerName()Get the name of the user who created this stream.java.lang.StringgetParent()Get the stream's parent.IStreamSummary.ParentViewgetParentView()Get the stream parentViewjava.lang.StringgetStream()Get the stream's path in a stream depot.IStreamSummary.TypegetType()Get the stream typejava.util.DategetUpdated()Get the date specification was last modified.booleanisChangeFlowsFromParent()Is change flows from parent.booleanisChangeFlowsToParent()Is change flows to parent.booleanisFirmerThanParent()Is firmer than parent.booleanisUnloaded()Return the "unloaded" status for this stream.voidsetAccessed(java.util.Date accessed)Set the last-accessed date.voidsetBaseParent(java.lang.String baseParent)Deprecated.voidsetChangeFlowsFromParent(boolean changeFlowsFromParent)Set (true/false) the stream's change flows from parent.voidsetChangeFlowsToParent(boolean changeFlowsToParent)Set (true/false) the stream's change flows to parent.voidsetDescription(java.lang.String description)Set the stream spec description.voidsetFirmerThanParent(boolean firmerThanParent)Set (true/false) the stream is firmer than parent.voidsetName(java.lang.String name)Set the name of this stream.voidsetOptions(IStreamSummary.IOptions options)Set the stream options.voidsetOwnerName(java.lang.String ownerName)Set the owner's name for this stream.voidsetParent(java.lang.String parent)Set the stream parent.voidsetParentView(IStreamSummary.ParentView parentView)Set the stream parentView.voidsetStream(java.lang.String stream)Set the stream's path.voidsetType(IStreamSummary.Type type)Set the stream type.voidsetUpdated(java.util.Date updated)Set the last-updated date.-
Methods inherited from class com.perforce.p4java.impl.generic.core.ServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
-
-
-
-
Constructor Detail
-
StreamSummary
public StreamSummary()
Default constructor -- sets all fields to null or false.
-
StreamSummary
public 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).- Parameters:
summaryOnly- if true
-
StreamSummary
public 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. If summaryOnly is true, refreshable and updeateable are set true in the ServerResource superclass, otherwise they're set false.- Parameters:
summaryOnly- summaryOnlystream- streamaccessed- accessedupdated- updatedname- nameownerName- ownerNamedescription- descriptionparent- parenttype- typeoptions- options
-
StreamSummary
public StreamSummary(java.util.Map<java.lang.String,java.lang.Object> map, boolean summaryOnly)Construct a StreamSummary from a map returned by the Perforce server. If summaryOnly is true, this map was returned by the IOptionsServer getStreamSummaryList or similar summary-only method; otherwise it's assumed to be the full stream spec.If map is null, this is equivalent to calling the default summaryOnly-argument constructor.
- Parameters:
map- spec mapsummaryOnly- if true
-
-
Method Detail
-
getStream
public java.lang.String getStream()
Description copied from interface:IStreamSummaryGet the stream's path in a stream depot.- Specified by:
getStreamin interfaceIStreamSummary- Returns:
- stream path
- See Also:
IStreamSummary.getStream()
-
setStream
public void setStream(java.lang.String stream)
Description copied from interface:IStreamSummarySet the stream's path. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Specified by:
setStreamin interfaceIStreamSummary- Parameters:
stream- new stream's path- See Also:
IStreamSummary.setStream(String)
-
getAccessed
public java.util.Date getAccessed()
Description copied from interface:IStreamSummaryGet the date of the last 'integrate' using this stream.- Specified by:
getAccessedin interfaceIStreamSummary- Returns:
- date
- See Also:
IStreamSummary.getAccessed()
-
setAccessed
public void setAccessed(java.util.Date accessed)
Description copied from interface:IStreamSummarySet the last-accessed date. This generally has no effect on the associated Perforce server version of this spec.- Specified by:
setAccessedin interfaceIStreamSummary- Parameters:
accessed- new accessed date.- See Also:
IStreamSummary.setAccessed(java.util.Date)
-
getUpdated
public java.util.Date getUpdated()
Description copied from interface:IStreamSummaryGet the date specification was last modified.- Specified by:
getUpdatedin interfaceIStreamSummary- Returns:
- date
- See Also:
IStreamSummary.getUpdated()
-
setUpdated
public void setUpdated(java.util.Date updated)
Description copied from interface:IStreamSummarySet the last-updated date. This generally has no effect on the associated Perforce server version of this spec.- Specified by:
setUpdatedin interfaceIStreamSummary- Parameters:
updated- new updated date.- See Also:
IStreamSummary.setUpdated(java.util.Date)
-
getName
public java.lang.String getName()
Description copied from interface:IStreamSummaryGet the alternate name of the stream.- Specified by:
getNamein interfaceIStreamSummary- Returns:
- name
- See Also:
IStreamSummary.getName()
-
setName
public void setName(java.lang.String name)
Description copied from interface:IStreamSummarySet the name of this stream. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Specified by:
setNamein interfaceIStreamSummary- Parameters:
name- new stream spec name- See Also:
IStreamSummary.setName(java.lang.String)
-
getOwnerName
public java.lang.String getOwnerName()
Description copied from interface:IStreamSummaryGet the name of the user who created this stream.- Specified by:
getOwnerNamein interfaceIStreamSummary- Returns:
- owner
- See Also:
IStreamSummary.getOwnerName()
-
setOwnerName
public void setOwnerName(java.lang.String ownerName)
Description copied from interface:IStreamSummarySet the owner's name for this stream. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Specified by:
setOwnerNamein interfaceIStreamSummary- Parameters:
ownerName- new owner's name- See Also:
IStreamSummary.setOwnerName(java.lang.String)
-
getDescription
public java.lang.String getDescription()
Description copied from interface:IStreamSummaryGet the stream's description (if any).- Specified by:
getDescriptionin interfaceIStreamSummary- Returns:
- description
- See Also:
IStreamSummary.getDescription()
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:IStreamSummarySet the stream spec description. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Specified by:
setDescriptionin interfaceIStreamSummary- Parameters:
description- new description string.- See Also:
IStreamSummary.setDescription(java.lang.String)
-
getParent
public java.lang.String getParent()
Description copied from interface:IStreamSummaryGet the stream's parent.- Specified by:
getParentin interfaceIStreamSummary- Returns:
- parent
- See Also:
IStreamSummary.getParent()
-
setParent
public void setParent(java.lang.String parent)
Description copied from interface:IStreamSummarySet the stream parent. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Specified by:
setParentin interfaceIStreamSummary- Parameters:
parent- new stream parent.- See Also:
IStreamSummary.setParent(java.lang.String)
-
getType
public IStreamSummary.Type getType()
Description copied from interface:IStreamSummaryGet the stream type- Specified by:
getTypein interfaceIStreamSummary- Returns:
- type
- See Also:
IStreamSummary.getType()
-
getParentView
public IStreamSummary.ParentView getParentView()
Description copied from interface:IStreamSummaryGet the stream parentView- Specified by:
getParentViewin interfaceIStreamSummary- Returns:
- parent view
- See Also:
IStreamSummary.getParentView()
-
setType
public void setType(IStreamSummary.Type type)
Description copied from interface:IStreamSummarySet the stream type. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Specified by:
setTypein interfaceIStreamSummary- Parameters:
type- new stream type.- See Also:
IStreamSummary.setType(com.perforce.p4java.core.IStreamSummary.Type)
-
setParentView
public void setParentView(IStreamSummary.ParentView parentView)
Description copied from interface:IStreamSummarySet the stream parentView. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Specified by:
setParentViewin interfaceIStreamSummary- Parameters:
parentView- new stream parentView.- See Also:
IStreamSummary.setParentView(com.perforce.p4java.core.IStreamSummary.ParentView)
-
getOptions
public IStreamSummary.IOptions getOptions()
Description copied from interface:IStreamSummaryGet the stream options- Specified by:
getOptionsin interfaceIStreamSummary- Returns:
- options
- See Also:
IStreamSummary.getOptions()
-
setOptions
public void setOptions(IStreamSummary.IOptions options)
Description copied from interface:IStreamSummarySet the stream options. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Specified by:
setOptionsin interfaceIStreamSummary- Parameters:
options- new stream options.- See Also:
IStreamSummary.setOptions(com.perforce.p4java.core.IStreamSummary.IOptions)
-
isFirmerThanParent
public boolean isFirmerThanParent()
Description copied from interface:IStreamSummaryIs firmer than parent.- Specified by:
isFirmerThanParentin interfaceIStreamSummary- Returns:
- if true
- See Also:
IStreamSummary.isFirmerThanParent()
-
setFirmerThanParent
public void setFirmerThanParent(boolean firmerThanParent)
Description copied from interface:IStreamSummarySet (true/false) the stream is firmer than parent.- Specified by:
setFirmerThanParentin interfaceIStreamSummary- Parameters:
firmerThanParent- if true- See Also:
IStreamSummary.setFirmerThanParent(boolean)
-
isChangeFlowsToParent
public boolean isChangeFlowsToParent()
Description copied from interface:IStreamSummaryIs change flows to parent.- Specified by:
isChangeFlowsToParentin interfaceIStreamSummary- Returns:
- if true
- See Also:
IStreamSummary.isChangeFlowsToParent()
-
setChangeFlowsToParent
public void setChangeFlowsToParent(boolean changeFlowsToParent)
Description copied from interface:IStreamSummarySet (true/false) the stream's change flows to parent.- Specified by:
setChangeFlowsToParentin interfaceIStreamSummary- Parameters:
changeFlowsToParent- if true- See Also:
IStreamSummary.setChangeFlowsToParent(boolean)
-
isChangeFlowsFromParent
public boolean isChangeFlowsFromParent()
Description copied from interface:IStreamSummaryIs change flows from parent.- Specified by:
isChangeFlowsFromParentin interfaceIStreamSummary- Returns:
- if true
- See Also:
IStreamSummary.isChangeFlowsFromParent()
-
setChangeFlowsFromParent
public void setChangeFlowsFromParent(boolean changeFlowsFromParent)
Description copied from interface:IStreamSummarySet (true/false) the stream's change flows from parent.- Specified by:
setChangeFlowsFromParentin interfaceIStreamSummary- Parameters:
changeFlowsFromParent- if true- See Also:
IStreamSummary.setChangeFlowsFromParent(boolean)
-
getBaseParent
@Deprecated public java.lang.String getBaseParent()
Deprecated.Description copied from interface:IStreamSummaryGet the stream's base parent.- Specified by:
getBaseParentin interfaceIStreamSummary- Returns:
- parent base
- See Also:
IStreamSummary.getBaseParent()
-
setBaseParent
@Deprecated public void setBaseParent(java.lang.String baseParent)
Deprecated.Description copied from interface:IStreamSummarySet the stream base parent. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Specified by:
setBaseParentin interfaceIStreamSummary- Parameters:
baseParent- new stream base parent.- See Also:
IStreamSummary.setBaseParent(java.lang.String)
-
isUnloaded
public boolean isUnloaded()
Description copied from interface:IStreamSummaryReturn the "unloaded" status for this stream.- Specified by:
isUnloadedin interfaceIStreamSummary- Returns:
- true iff the stream is unloaded.
- See Also:
IStreamSummary.isUnloaded()
-
-