com.perforce.p4java.impl.generic.core
Class StreamSummary

java.lang.Object
  extended by com.perforce.p4java.impl.generic.core.ServerResource
      extended by 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
static class StreamSummary.Options
          Simple default generic IOptions implementation class.
 
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IStreamSummary
IStreamSummary.IOptions, IStreamSummary.Type
 
Field Summary
protected  Date accessed
           
protected  String baseParent
           
protected  boolean changeFlowsFromParent
           
protected  boolean changeFlowsToParent
           
protected  String description
           
protected  boolean firmerThanParent
           
protected  String name
           
protected  IStreamSummary.IOptions options
           
protected  String ownerName
           
protected  String parent
           
protected  String stream
           
protected  IStreamSummary.Type type
           
protected  boolean unloaded
           
protected  Date updated
           
 
Fields inherited from class com.perforce.p4java.impl.generic.core.ServerResource
refreshable, server, updateable
 
Constructor Summary
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, String stream, Date accessed, Date updated, String name, String ownerName, String description, String parent, IStreamSummary.Type type, StreamSummary.Options options)
          Explicit-value constructor.
StreamSummary(Map<String,Object> map, boolean summaryOnly)
          Construct a StreamSummary from a map returned by the Perforce server.
 
Method Summary
 Date getAccessed()
          Get the date of the last 'integrate' using this stream.
 String getBaseParent()
          Get the stream's base parent.
 String getDescription()
          Get the stream's description (if any).
 String getName()
          Get the alternate name of the stream.
 IStreamSummary.IOptions getOptions()
          Get the stream options
 String getOwnerName()
          Get the name of the user who created this stream.
 String getParent()
          Get the stream's parent.
 String getStream()
          Get the stream's path in a stream depot.
 IStreamSummary.Type getType()
          Get the stream type
 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(Date accessed)
          Set the last-accessed date.
 void setBaseParent(String baseParent)
          Set the stream base parent.
 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(String description)
          Set the stream spec description.
 void setFirmerThanParent(boolean firmerThanParent)
          Set (true/false) the stream is firmer than parent.
 void setName(String name)
          Set the name of this stream.
 void setOptions(IStreamSummary.IOptions options)
          Set the stream options.
 void setOwnerName(String ownerName)
          Set the owner's name for this stream.
 void setParent(String parent)
          Set the stream parent.
 void setStream(String stream)
          Set the stream's path.
 void setType(IStreamSummary.Type type)
          Set the stream type.
 void setUpdated(Date updated)
          Set the last-updated date.
 
Methods inherited from class com.perforce.p4java.impl.generic.core.ServerResource
canRefresh, canUpdate, complete, refresh, setRefreshable, setServer, 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, refresh, setServer, update, update, update
 

Field Detail

stream

protected String stream

accessed

protected Date accessed

updated

protected Date updated

name

protected String name

ownerName

protected String ownerName

description

protected String description

parent

protected String parent

type

protected IStreamSummary.Type type

options

protected IStreamSummary.IOptions options

baseParent

protected String baseParent

firmerThanParent

protected boolean firmerThanParent

changeFlowsToParent

protected boolean changeFlowsToParent

changeFlowsFromParent

protected boolean changeFlowsFromParent

unloaded

protected boolean unloaded
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).


StreamSummary

public StreamSummary(boolean summaryOnly,
                     String stream,
                     Date accessed,
                     Date updated,
                     String name,
                     String ownerName,
                     String description,
                     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.


StreamSummary

public StreamSummary(Map<String,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 geStreamSummaryList 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.

Method Detail

getStream

public String getStream()
Description copied from interface: IStreamSummary
Get the stream's path in a stream depot.

Specified by:
getStream in interface IStreamSummary
See Also:
IStreamSummary.getStream()

setStream

public void setStream(String stream)
Description copied from interface: IStreamSummary
Set 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:
setStream in interface IStreamSummary
Parameters:
stream - new stream's path
See Also:
com.perforce.p4java.core.IStreamSummary#setStream(com.perforce.p4java.impl.generic.core.file.FilePath)

getAccessed

public Date getAccessed()
Description copied from interface: IStreamSummary
Get the date of the last 'integrate' using this stream.

Specified by:
getAccessed in interface IStreamSummary
See Also:
IStreamSummary.getAccessed()

setAccessed

public void setAccessed(Date accessed)
Description copied from interface: IStreamSummary
Set the last-accessed date. This generally has no effect on the associated Perforce server version of this spec.

Specified by:
setAccessed in interface IStreamSummary
Parameters:
accessed - new accessed date.
See Also:
IStreamSummary.setAccessed(java.util.Date)

getUpdated

public Date getUpdated()
Description copied from interface: IStreamSummary
Get the date specification was last modified.

Specified by:
getUpdated in interface IStreamSummary
See Also:
IStreamSummary.getUpdated()

setUpdated

public void setUpdated(Date updated)
Description copied from interface: IStreamSummary
Set the last-updated date. This generally has no effect on the associated Perforce server version of this spec.

Specified by:
setUpdated in interface IStreamSummary
Parameters:
updated - new updated date.
See Also:
IStreamSummary.setUpdated(java.util.Date)

getName

public String getName()
Description copied from interface: IStreamSummary
Get the alternate name of the stream.

Specified by:
getName in interface IStreamSummary
See Also:
IStreamSummary.getName()

setName

public void setName(String name)
Description copied from interface: IStreamSummary
Set 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:
setName in interface IStreamSummary
Parameters:
name - new stream spec name
See Also:
IStreamSummary.setName(java.lang.String)

getOwnerName

public String getOwnerName()
Description copied from interface: IStreamSummary
Get the name of the user who created this stream.

Specified by:
getOwnerName in interface IStreamSummary
See Also:
IStreamSummary.getOwnerName()

setOwnerName

public void setOwnerName(String ownerName)
Description copied from interface: IStreamSummary
Set 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:
setOwnerName in interface IStreamSummary
Parameters:
ownerName - new owner's name
See Also:
IStreamSummary.setOwnerName(java.lang.String)

getDescription

public String getDescription()
Description copied from interface: IStreamSummary
Get the stream's description (if any).

Specified by:
getDescription in interface IStreamSummary
See Also:
IStreamSummary.getDescription()

setDescription

public void setDescription(String description)
Description copied from interface: IStreamSummary
Set 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:
setDescription in interface IStreamSummary
Parameters:
description - new description string.
See Also:
IStreamSummary.setDescription(java.lang.String)

getParent

public String getParent()
Description copied from interface: IStreamSummary
Get the stream's parent.

Specified by:
getParent in interface IStreamSummary
See Also:
IStreamSummary.getParent()

setParent

public void setParent(String parent)
Description copied from interface: IStreamSummary
Set 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:
setParent in interface IStreamSummary
Parameters:
parent - new stream parent.
See Also:
IStreamSummary.setParent(java.lang.String)

getType

public IStreamSummary.Type getType()
Description copied from interface: IStreamSummary
Get the stream type

Specified by:
getType in interface IStreamSummary
See Also:
IStreamSummary.getType()

setType

public void setType(IStreamSummary.Type type)
Description copied from interface: IStreamSummary
Set 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:
setType in interface IStreamSummary
Parameters:
type - new stream type.
See Also:
com.perforce.p4java.core.IStreamSummary#setParent(com.perforce.p4java.core.IStreamSummary.Type)

getOptions

public IStreamSummary.IOptions getOptions()
Description copied from interface: IStreamSummary
Get the stream options

Specified by:
getOptions in interface IStreamSummary
See Also:
IStreamSummary.getOptions()

setOptions

public void setOptions(IStreamSummary.IOptions options)
Description copied from interface: IStreamSummary
Set 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:
setOptions in interface IStreamSummary
Parameters:
options - new stream options.
See Also:
IStreamSummary.setOptions(com.perforce.p4java.core.IStreamSummary.IOptions)

isFirmerThanParent

public boolean isFirmerThanParent()
Description copied from interface: IStreamSummary
Is firmer than parent.

Specified by:
isFirmerThanParent in interface IStreamSummary
See Also:
IStreamSummary.isFirmerThanParent()

setFirmerThanParent

public void setFirmerThanParent(boolean firmerThanParent)
Description copied from interface: IStreamSummary
Set (true/false) the stream is firmer than parent.

Specified by:
setFirmerThanParent in interface IStreamSummary
See Also:
IStreamSummary.setFirmerThanParent(boolean)

isChangeFlowsToParent

public boolean isChangeFlowsToParent()
Description copied from interface: IStreamSummary
Is change flows to parent.

Specified by:
isChangeFlowsToParent in interface IStreamSummary
See Also:
IStreamSummary.isChangeFlowsToParent()

setChangeFlowsToParent

public void setChangeFlowsToParent(boolean changeFlowsToParent)
Description copied from interface: IStreamSummary
Set (true/false) the stream's change flows to parent.

Specified by:
setChangeFlowsToParent in interface IStreamSummary
See Also:
IStreamSummary.setChangeFlowsToParent(boolean)

isChangeFlowsFromParent

public boolean isChangeFlowsFromParent()
Description copied from interface: IStreamSummary
Is change flows from parent.

Specified by:
isChangeFlowsFromParent in interface IStreamSummary
See Also:
IStreamSummary.isChangeFlowsFromParent()

setChangeFlowsFromParent

public void setChangeFlowsFromParent(boolean changeFlowsFromParent)
Description copied from interface: IStreamSummary
Set (true/false) the stream's change flows from parent.

Specified by:
setChangeFlowsFromParent in interface IStreamSummary
See Also:
IStreamSummary.setChangeFlowsFromParent(boolean)

getBaseParent

public String getBaseParent()
Description copied from interface: IStreamSummary
Get the stream's base parent.

Specified by:
getBaseParent in interface IStreamSummary
See Also:
IStreamSummary.getBaseParent()

setBaseParent

public void setBaseParent(String baseParent)
Description copied from interface: IStreamSummary
Set 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:
setBaseParent in interface IStreamSummary
Parameters:
baseParent - new stream base parent.
See Also:
IStreamSummary.setBaseParent(java.lang.String)

isUnloaded

public boolean isUnloaded()
Description copied from interface: IStreamSummary
Return the "unloaded" status for this stream.

Specified by:
isUnloaded in interface IStreamSummary
Returns:
true iff the stream is unloaded.
See Also:
IStreamSummary.isUnloaded()


Copyright © 2015 Perforce Software. All Rights Reserved.