public class StreamDelegator extends BaseDelegator implements IStreamDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
StreamDelegator(IOptionsServer server)
Instantiate a new StreamDelegator, providing the server object that will be used to
execute Perforce Helix attribute commands.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createStream(IStream stream)
Create a new stream in the repository.
|
String |
deleteStream(String streamPath,
StreamOptions opts)
Delete a Perforce stream spec from the Perforce server.
|
IStream |
getStream(String streamPath)
Get an individual stream by stream path.
|
IStream |
getStream(String streamPath,
GetStreamOptions opts)
Get an individual stream by stream path.
|
String |
updateStream(IStream stream,
StreamOptions opts)
Update a Perforce stream spec on the Perforce server.
|
public StreamDelegator(IOptionsServer server)
server - a concrete implementation of a Perforce Helix Serverpublic String createStream(@Nonnull IStream stream) throws P4JavaException
IStreamDelegatorcreateStream in interface IStreamDelegatorstream - non-null IStream object representing the stream to be created.P4JavaException - if any error occurs in the processing of this method.public IStream getStream(@Nonnull String streamPath) throws P4JavaException
IStreamDelegatorgetStream in interface IStreamDelegatorstreamPath - non-null stream's path in a stream depot, of the form
//depotname/streamnameP4JavaException - if any error occurs in the processing of this method.public IStream getStream(@Nonnull String streamPath, GetStreamOptions opts) throws P4JavaException
IStreamDelegatorgetStream in interface IStreamDelegatorstreamPath - non-null stream's path in a stream depot, of the form
//depotname/streamnameopts - GetStreamOptions object describing optional parameters; if
null, no options are set.P4JavaException - if any error occurs in the processing of this method.public String updateStream(@Nonnull IStream stream, StreamOptions opts) throws P4JavaException
IStreamDelegatorupdateStream in interface IStreamDelegatorstream - non-null stream spec to be updated.opts - StreamOptions object describing optional parameters; if null,
no options are set.P4JavaException - if any error occurs in the processing of this method.public String deleteStream(@Nonnull String streamPath, StreamOptions opts) throws P4JavaException
IStreamDelegatordeleteStream in interface IStreamDelegatorstreamPath - non-null stream's path in a stream depot, of the form
//depotname/streamnameopts - StreamOptions object describing optional parameters; if null,
no options are set.P4JavaException - if any error occurs in the processing of this method.Copyright © 2017 Perforce Software. All Rights Reserved.