public interface IClient extends IClientSummary, IWhereDelegator
Perforce clients are described in detail elsewhere, but in summary, a Perforce client object is returned from the Perforce server using one of the getClient(s) methods or by creating a new Perforce client through the newClient server method. Some Perforce operations are done through a Perforce client; some are associated with a Perforce client; and some are done directly through the Perforce server itself.
IClient objects are complete, refreshable, and updateable (unlike IClientSummary objects, which are not updateable).
IClientSummary.ClientLineEnd, IClientSummary.IClientOptions, IClientSummary.IClientSubmitOptions
Modifier and Type | Method and Description |
---|---|
java.util.List<IFileSpec> |
addFiles(java.util.List<IFileSpec> fileSpecs,
AddFilesOptions opts)
Open one or more Perforce client workspace files for adding to the Perforce server.
|
java.util.List<IFileSpec> |
addFiles(java.util.List<IFileSpec> fileSpecs,
boolean noUpdate,
int changeListId,
java.lang.String fileType,
boolean useWildcards)
Open one or more Perforce client workspace files for adding to the Perforce server.
|
java.util.List<IFileSpec> |
copyFiles(IFileSpec fromFile,
IFileSpec toFile,
java.lang.String branchSpec,
CopyFilesOptions opts)
Schedule resolve and integration actions to make the target file identical to
the source file based only on the differences between the two (i.e.
|
java.util.List<IFileSpec> |
copyFiles(IFileSpec fromFile,
java.util.List<IFileSpec> toFiles,
CopyFilesOptions opts)
Copies one set of files (the 'source') into another (the 'target').
|
IChangelist |
createChangelist(IChangelist newChangelist)
Create a new changelist for this Perforce client in the associated Perforce server.
|
java.util.List<IFileSpec> |
deleteFiles(java.util.List<IFileSpec> fileSpecs,
DeleteFilesOptions opts)
Open Perforce client workspace files for deletion from a Perforce depot.
|
java.util.List<IFileSpec> |
deleteFiles(java.util.List<IFileSpec> fileSpecs,
int changeListId,
boolean noUpdate)
Open Perforce client workspace files for deletion from a Perforce depot.
|
java.util.List<IFileSpec> |
editFiles(java.util.List<IFileSpec> fileSpecs,
boolean noUpdate,
boolean bypassClientUpdate,
int changeListId,
java.lang.String fileType)
Open one or more Perforce client workspace files for editing.
|
java.util.List<IFileSpec> |
editFiles(java.util.List<IFileSpec> fileSpecs,
EditFilesOptions opts)
Open one or more Perforce client workspace files for editing.
|
java.util.ArrayList<java.lang.String> |
getChangeView()
Get the Perforce change view associated with this client, if any.
|
ClientView |
getClientView()
Get the Perforce client view associated with this client, if any.
|
java.util.List<IFileSpec> |
getDiffFiles(java.util.List<IFileSpec> fileSpecs,
GetDiffFilesOptions opts)
Return a list of files that differ in some (arbitrarily complex)
way from depot.
|
java.util.List<IFileSpec> |
getDiffFiles(java.util.List<IFileSpec> fileSpecs,
int maxFiles,
boolean diffNonTextFiles,
boolean openedDifferentMissing,
boolean openedForIntegrate,
boolean unopenedMissing,
boolean unopenedDifferent,
boolean unopenedWithStatus,
boolean openedSame)
Return a list of files that differ in some (arbitrarily complex)
way from depot.
|
ListData |
getListData(java.util.List<IFileSpec> fileSpecs,
ListOptions options)
Returns list data filtered by client
|
java.util.List<IRepo> |
getRepos()
Gets the repos mapped within the client's view.
|
IServer |
getServer()
Return the IServer object representing the Perforce server associated with this
Perforce client.
|
ViewDepotType |
getViewDepotType()
Returns the ViewDepotType set in this client spec
|
java.util.List<IFileSpec> |
graphHaveList(java.util.List<IFileSpec> fileSpecs)
Return a list of all Perforce-managed repos that the Perforce server believes
this Perforce client workspace has as of the latest sync.
|
java.util.List<IFileSpec> |
haveList(java.util.List<IFileSpec> fileSpecs)
Return a list of all Perforce-managed files and versions that the Perforce server
believes this Perforce client workspace has as of the latest sync.
|
java.util.List<IFileSpec> |
integrateFiles(IFileSpec fromFile,
IFileSpec toFile,
java.lang.String branchSpec,
IntegrateFilesOptions opts)
Integrate ("merge") from one Perforce filespec to another.
|
java.util.List<IFileSpec> |
integrateFiles(IFileSpec fromFile,
java.util.List<IFileSpec> toFiles,
IntegrateFilesOptions opts)
Integrate one set of files (the 'source') into another (the 'target').
|
java.util.List<IFileSpec> |
integrateFiles(int changeListId,
boolean showActionsOnly,
IntegrationOptions integOpts,
java.lang.String branchSpec,
IFileSpec fromFile,
IFileSpec toFile)
Integrate ("merge") from one Perforce filespec to another.
|
java.util.List<IFileSpec> |
labelSync(java.util.List<IFileSpec> fileSpecs,
java.lang.String labelName,
boolean noUpdate,
boolean addFiles,
boolean deleteFiles)
Perform a label sync operation for this client.
|
java.util.List<IFileSpec> |
labelSync(java.util.List<IFileSpec> fileSpecs,
java.lang.String labelName,
LabelSyncOptions opts)
Perform a label sync operation for this client.
|
java.util.List<IFileSpec> |
lockFiles(java.util.List<IFileSpec> fileSpecs,
int changeListId)
Lock an opened file against changelist submission.
|
java.util.List<IFileSpec> |
lockFiles(java.util.List<IFileSpec> fileSpecs,
LockFilesOptions opts)
Lock an opened file against changelist submission.
|
java.util.List<IFileSpec> |
mergeFiles(IFileSpec fromFile,
java.util.List<IFileSpec> toFiles,
MergeFilesOptions opts)
Merges changes from one set of files (the 'source') into another (the 'target').
|
java.util.List<IFileSpec> |
openedFiles(java.util.List<IFileSpec> fileSpecs,
int maxFiles,
int changeListId)
If one or more Perforce file specs is passed-in, return the opened / locked status
of each file (if known) within an IFileSpec object; otherwise
return a list of all files known to be open for this Perforce client workspace.
|
java.util.List<IFileSpec> |
openedFiles(java.util.List<IFileSpec> fileSpecs,
OpenedFilesOptions opts)
Return a list of files open for this client, optionally restricted to a
specific path and / or changelist.
|
java.util.List<IFileSpec> |
populateFiles(IFileSpec fromFile,
java.util.List<IFileSpec> toFiles,
PopulateFilesOptions opts)
Branches a set of files (the 'source') into another depot location (the
'target') in a single step.
|
java.util.List<IFileSpec> |
reconcileFiles(java.util.List<IFileSpec> fileSpecs,
ReconcileFilesOptions opts)
Open files for add, delete, and/or edit to reconcile client with workspace
changes made outside of Perforce.
|
void |
reconcileFiles(java.util.List<IFileSpec> fileSpecs,
ReconcileFilesOptions opts,
IStreamingCallback callback,
int key)
Open files for add, delete, and/or edit to reconcile client with workspace
changes made outside of Perforce.
|
java.util.List<IFileSpec> |
reopenFiles(java.util.List<IFileSpec> fileSpecs,
int changeListId,
java.lang.String fileType)
Reopen Perforce files in a new changelist.
|
java.util.List<IFileSpec> |
reopenFiles(java.util.List<IFileSpec> fileSpecs,
ReopenFilesOptions opts)
Reopen Perforce files in a new changelist.
|
java.util.List<IFileSpec> |
resolvedFiles(java.util.List<IFileSpec> fileSpecs,
boolean showBaseRevision)
Return a list of files resolved but not submitted for this client.
|
java.util.List<IFileSpec> |
resolvedFiles(java.util.List<IFileSpec> fileSpecs,
ResolvedFilesOptions opts)
Return a list of files resolved but not submitted for this client.
|
IFileSpec |
resolveFile(IFileSpec targetFile,
java.io.InputStream sourceStream)
Resolve a file integration by using the contents of the sourceStream InputStream
as the resolve result.
|
IFileSpec |
resolveFile(IFileSpec targetFile,
java.io.InputStream sourceStream,
boolean useTextualMerge,
int startFromRev,
int endFromRev)
Resolve a file integration by using the contents of the sourceStream InputStream
as the resolve result.
|
java.util.List<IFileSpec> |
resolveFilesAuto(java.util.List<IFileSpec> fileSpecs,
boolean safeMerge,
boolean acceptTheirs,
boolean acceptYours,
boolean showActionsOnly,
boolean forceResolve)
Automatically resolve the results of a previousPerforce file integration.
|
java.util.List<IFileSpec> |
resolveFilesAuto(java.util.List<IFileSpec> fileSpecs,
ResolveFilesAutoOptions opts)
Automatically resolve the results of a previousPerforce file integration.
|
java.lang.String |
resolveStreamAuto(ResolveFilesAutoOptions opts)
Automatically resolve the results of a previous Perforce file integration.
|
java.util.List<IFileSpec> |
revertFiles(java.util.List<IFileSpec> fileSpecs,
boolean noUpdate,
int changeListId,
boolean revertOnlyUnchanged,
boolean noRefresh)
Revert a open Perforce client workspace files back to the revision previously synced
from the Perforce depot, discarding any pending changelists or integrations that
have been made so far.
|
java.util.List<IFileSpec> |
revertFiles(java.util.List<IFileSpec> fileSpecs,
RevertFilesOptions opts)
Revert open Perforce client workspace files back to the revision previously synced
from the Perforce depot, discarding any pending changelists or integrations that
have been made so far.
|
void |
setChangeView(java.util.ArrayList<java.lang.String> changeView)
Set the Perforce client change view associated with this client.
|
void |
setClientView(ClientView clientView)
Set the Perforce client view associated with this client.
|
void |
setServer(IServer server)
Set the Perforce server associated with this client.
|
java.lang.String |
setStreamParentView(IStreamSummary.ParentView parentView,
boolean sourceComments)
Changes the parent view of clients, current stream.
|
java.util.List<IFileSpec> |
shelveChangelist(IChangelist list)
Shelve the file(s) in a pending changelist.
|
java.util.List<IFileSpec> |
shelveChangelist(int changelistId,
java.util.List<IFileSpec> fileSpecs,
boolean forceUpdate,
boolean replace,
boolean discard)
Update/replace/delete shelved file(s) from a pending changelist.
|
java.util.List<IFileSpec> |
shelveFiles(java.util.List<IFileSpec> fileSpecs,
int changelistId,
ShelveFilesOptions opts)
Shelve files in a changelist.
|
java.util.List<IFileSpec> |
submitShelvedChangelist(int shelvedChangelistId)
Submit a shelved changelist without transferring files or modifying the
workspace.
|
java.util.List<IFileSpec> |
sync(java.util.List<IFileSpec> fileSpecs,
boolean forceUpdate,
boolean noUpdate,
boolean clientBypass,
boolean serverBypass)
Sync a Perforce client workspace against the Perforce server.
|
java.util.List<IFileSpec> |
sync(java.util.List<IFileSpec> fileSpecs,
SyncOptions syncOpts)
Sync a Perforce client workspace against the Perforce server.
|
void |
sync(java.util.List<IFileSpec> fileSpecs,
SyncOptions syncOpts,
IStreamingCallback callback,
int key)
Sync a Perforce client workspace against the Perforce server.
|
void |
syncParallel(java.util.List<IFileSpec> fileSpecs,
SyncOptions syncOpts,
IStreamingCallback callback,
int key,
ParallelSyncOptions pSyncOpts)
Sync a Perforce client workspace against the Perforce server in parallel.
|
java.util.List<IFileSpec> |
syncParallel(java.util.List<IFileSpec> fileSpecs,
SyncOptions syncOpts,
ParallelSyncOptions psyncOpts)
Sync a Perforce client workspace against the Perforce server in parallel.
|
java.util.List<IFileSpec> |
undoFiles(java.util.List<IFileSpec> fileSpecs,
int changelistId,
boolean listOnly)
Undo one or more previously submitted files.
|
java.util.List<IFileSpec> |
undoFiles(java.util.List<IFileSpec> fileSpecs,
UndoFilesOptions opts)
Undo one or more previously submitted files.
|
java.util.List<IFileSpec> |
unlockFiles(java.util.List<IFileSpec> fileSpecs,
int changeListId,
boolean force)
Release locked files but leave them open.
|
java.util.List<IFileSpec> |
unlockFiles(java.util.List<IFileSpec> fileSpecs,
UnlockFilesOptions opts)
Release locked files but leave them open.
|
java.util.List<IFileSpec> |
unshelveChangelist(int shelveChangelistId,
java.util.List<IFileSpec> fileSpecs,
int clientChangelistId,
boolean forceOverwrite,
boolean previewOnly)
Unshelve file(s) from a shelved changelist
|
java.util.List<IFileSpec> |
unshelveFiles(java.util.List<IFileSpec> fileSpecs,
int sourceChangelistId,
int targetChangelistId,
UnshelveFilesOptions opts)
Unshelve file(s) from a shelf.
|
getAccessed, getAlternateRoots, getBackup, getDescription, getHostName, getLineEnd, getName, getOptions, getOwnerName, getRoot, getServerId, getStream, getStreamAtChange, getSubmitOptions, getType, getUpdated, isStream, isUnloaded, setAccessed, setAlternateRoots, setBackup, setDescription, setHostName, setLineEnd, setName, setOptions, setOwnerName, setRoot, setServerId, setStream, setStreamAtChange, setSubmitOptions, setType, setUpdated
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, update, update, update
localWhere, where
ClientView getClientView()
void setClientView(ClientView clientView)
clientView
- new Perforce client view for the client.java.util.ArrayList<java.lang.String> getChangeView()
void setChangeView(java.util.ArrayList<java.lang.String> changeView)
changeView
- new List of change views for the client.IServer getServer()
void setServer(IServer server)
setServer
in interface IServerResource
server
- the IServer object representing the server associated with this
client, or null if there's no such server.java.util.List<IFileSpec> sync(java.util.List<IFileSpec> fileSpecs, boolean forceUpdate, boolean noUpdate, boolean clientBypass, boolean serverBypass) throws ConnectionException, RequestException, AccessException
Note that this method will fail (throw a RequestException) unless the client is the associated IServer object's current client.
fileSpecs
- files to be synchronized; if empty, synchronize all client files.forceUpdate
- if true, forces resynchronization even if the client already
has the file, and clobbers writable files. This flag doesn't affect
open files. Corresponds to the p4 sync "-f" flag.noUpdate
- causes sync not to update the client workspace, but to
display what normally would be updated. Corresponds to the p4 sync "-n" flag.clientBypass
- bypasses the client file update. It can be used to
make the server believe that a client workspace already has the file.
Corresponds to the p4 sync "-k" flag.serverBypass
- populates the client workspace, but does not update the
server to reflect those updates. Any file that is already synced or
opened will be bypassed with a warning message.
Corresponds to the p4 sync "-p" flag.ConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> sync(java.util.List<IFileSpec> fileSpecs, SyncOptions syncOpts) throws P4JavaException
fileSpecs
- files to be synchronized; if empty, synchronize all client files.syncOpts
- SyncOptions object describing sync options; see SyncOptions comments.P4JavaException
- if any processing errors occur during exection.SyncOptions
java.util.List<IFileSpec> syncParallel(java.util.List<IFileSpec> fileSpecs, SyncOptions syncOpts, ParallelSyncOptions psyncOpts) throws P4JavaException
fileSpecs
- files to be synchronized; if empty, synchronize all client files.syncOpts
- SyncOptions object describing sync options; see SyncOptions comments.psyncOpts
- Options related to parallalisation of syncP4JavaException
- on errorSyncOptions
,
ParallelSyncOptions
void sync(java.util.List<IFileSpec> fileSpecs, SyncOptions syncOpts, IStreamingCallback callback, int key) throws P4JavaException
Note that this method takes an IStreamingCallback parameter, and the results are sent to the user using the IStreamingCallback handleResult method; see the IStreamingCallback Javadoc for details. The payload passed to handleResult is usually the raw map gathered together deep in the RPC protocol layer, and the user is assumed to have the knowledge and technology to be able to parse it and use it.
fileSpecs
- files to be synchronized; if empty, synchronize all client files.syncOpts
- SyncOptions object describing sync options; see SyncOptions comments.callback
- a non-null IStreamingCallback to be used to process the incoming
results.key
- an opaque integer key that is passed to the IStreamingCallback callback
methods to identify the action as being associated with this specific
call.P4JavaException
- if any processing errors occur during exection.SyncOptions
void syncParallel(java.util.List<IFileSpec> fileSpecs, SyncOptions syncOpts, IStreamingCallback callback, int key, ParallelSyncOptions pSyncOpts) throws P4JavaException
Note that this method takes an IStreamingCallback parameter, and the results are sent to the user using the IStreamingCallback handleResult method; see the IStreamingCallback Javadoc for details. The payload passed to handleResult is usually the raw map gathered together deep in the RPC protocol layer, and the user is assumed to have the knowledge and technology to be able to parse it and use it.
fileSpecs
- files to be synchronized; if empty, synchronize all client files.syncOpts
- SyncOptions object describing standard sync options; see SyncOptions comments.callback
- a non-null IStreamingCallback to be used to process the incoming
results.key
- an opaque integer key that is passed to the IStreamingCallback callback
methods to identify the action as being associated with this specific
call.pSyncOpts
- The --parallel flag specifies options for for parallel file transferP4JavaException
- on errorjava.util.List<IFileSpec> labelSync(java.util.List<IFileSpec> fileSpecs, java.lang.String labelName, boolean noUpdate, boolean addFiles, boolean deleteFiles) throws ConnectionException, RequestException, AccessException
fileSpecs
- if non-null, the list of files dor this operationlabelName
- non-null name of the label to be sync'dnoUpdate
- if true, just show what would result with the labelsync
rather than actually doing itaddFiles
- if true, add the files in fileSpecs to the labeldeleteFiles
- if true, delete the files in fileSpecs from the labelConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> labelSync(java.util.List<IFileSpec> fileSpecs, java.lang.String labelName, LabelSyncOptions opts) throws P4JavaException
fileSpecs
- if non-null, the list of files for this operationlabelName
- non-null name of the label to be sync'dopts
- possibly-null LabelSyncOptions object describing the
specific options for this callP4JavaException
- if an error occurs processing this method and its parametersLabelSyncOptions
IChangelist createChangelist(IChangelist newChangelist) throws ConnectionException, RequestException, AccessException
The new changelist is returned if the command is successful; this changelist object will include the new changelist ID.
newChangelist
- non-null specification for the new changelist; if the
newChangelist's ID is not IChangelist.DEFAULT, it is ignored.ConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> addFiles(java.util.List<IFileSpec> fileSpecs, boolean noUpdate, int changeListId, java.lang.String fileType, boolean useWildcards) throws ConnectionException, AccessException
fileSpecs
- non-null list of files to be opened, in Perforce client or
depot or local path format.noUpdate
- if true, don't actually do the open, just return the files that
would have been opened for addition.changeListId
- if positive, the opened files are put into the pending
changelist identified by changeListId; this changelist must have been
previously created. If zero or negative, the file is opened in the 'default'
(unnumbered) changelist.fileType
- if non-null, the files are added as that filetype.
See 'p4 help filetypes' to attempt to make any sense of Perforce file types.useWildcards
- if true, filenames that contain wildcards are permitted.
See the main Perforce documentation for file adding for details.ConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> addFiles(java.util.List<IFileSpec> fileSpecs, AddFilesOptions opts) throws P4JavaException
fileSpecs
- non-null list of files to be opened, in Perforce client or
depot or local path format.opts
- possibly-null AddFilesOptions object specifying method options.P4JavaException
- if an error occurs processing this method and its parametersAddFilesOptions
java.util.List<IFileSpec> editFiles(java.util.List<IFileSpec> fileSpecs, boolean noUpdate, boolean bypassClientUpdate, int changeListId, java.lang.String fileType) throws RequestException, ConnectionException, AccessException
fileSpecs
- non-null list of files to be opened, in Perforce client or
depot or local path format.noUpdate
- if true, don't actually do the open, just return the files that
would have been opened for edit.bypassClientUpdate
- if true, the edit bypasses any client file update.
Equivalent to the new 2009.2 and later "-k" option. If set true with
a Perforce server earlier than 2009.2, will produce a suitable
RequestException. Note: this option can cause havoc if you don't
use care...changeListId
- if positive, the opened files are put into the pending
changelist identified by changeListId; this changelist must have been
previously created. If zero or negative, the file is opened in the 'default'
(unnumbered) changelist.fileType
- if non-null, the file is opened as that filetype.
Otherwise, the filetype of the previous revision is reused.
If the filetype given is a partial filetype, that partial
filetype is combined with the previous revision's filetype.
See 'p4 help filetypes' to attempt to make any sense of this..RequestException
- if the Perforce server encounters an error during
its processing of the requestConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> editFiles(java.util.List<IFileSpec> fileSpecs, EditFilesOptions opts) throws P4JavaException
fileSpecs
- non-null list of files to be opened, in Perforce client or
depot or local path format.opts
- possibly-null EditFilesOptions object specifying method options.P4JavaException
- if an error occurs processing this method and its parametersEditFilesOptions
java.util.List<IFileSpec> revertFiles(java.util.List<IFileSpec> fileSpecs, boolean noUpdate, int changeListId, boolean revertOnlyUnchanged, boolean noRefresh) throws ConnectionException, AccessException
fileSpecs
- non-null (but possibly-empty) list of files to be revertednoUpdate
- if true, don't actually do the revert, just return the files that
would have been revertedchangeListId
- if positive, revert only those files in the pending changelist
given in changeListId.revertOnlyUnchanged
- if true, revert only those files which are opened
for edit or integrate and are unchanged or missing.noRefresh
- if true, bypass the client file refresh of the reverted files.ConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> revertFiles(java.util.List<IFileSpec> fileSpecs, RevertFilesOptions opts) throws P4JavaException
fileSpecs
- non-null (but possibly-empty) list of files to be revertedopts
- possibly-null RevertFilesOptions object specifying method options.P4JavaException
- if an error occurs processing this method and its parametersRevertFilesOptions
java.util.List<IFileSpec> undoFiles(java.util.List<IFileSpec> fileSpecs, int changelistId, boolean listOnly) throws ConnectionException, RequestException, AccessException
If a single revision is specified, the specified revision is undone. If a revision range is specified, the entire range is undone.
fileSpecs
- if non-empty, undo the specified files;
otherwise undo all qualifying fileschangelistId
- - if not IChangelist.UNKNOWN, the files are opened
in the numbered pending changelist instead of the
'default' changelist.listOnly
- – if true, don't actually perform the move, just
return what would happen if the move was performedConnectionException
- - if the Perforce server is unreachable or
is not connected.RequestException
- – if the Perforce server encounters an error
during its processing of the requestAccessException
- – if the Perforce server denies access to the
callerjava.util.List<IFileSpec> undoFiles(java.util.List<IFileSpec> fileSpecs, UndoFilesOptions opts) throws P4JavaException
If a single revision is specified, the specified revision is undone. If a revision range is specified, the entire range is undone.
fileSpecs
- if non-empty, undo the specified files;
otherwise undo all qualifying filesopts
- possibly-null UndoFilesOptions object object specifying
method options.P4JavaException
- if an error occurs processing this method and its
parameters.java.util.List<IFileSpec> deleteFiles(java.util.List<IFileSpec> fileSpecs, int changeListId, boolean noUpdate) throws ConnectionException, AccessException
fileSpecs
- non-null list of files to be openedchangeListId
- if positive, the opened files are put into the pending
changelist identified by changeListId; this changelist must have been
previously created. If zero or negative, the file is opened in the 'default'
(unnumbered) changelist.noUpdate
- if true, don't actually do the open, just return the files that
would have been opened for deletion.ConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> deleteFiles(java.util.List<IFileSpec> fileSpecs, DeleteFilesOptions opts) throws P4JavaException
fileSpecs
- non-null list of files to be openedopts
- possibly-null DeleteFilesOptions object specifying method options.P4JavaException
- if an error occurs processing this method and its parametersDeleteFilesOptions
java.util.List<IFileSpec> openedFiles(java.util.List<IFileSpec> fileSpecs, int maxFiles, int changeListId) throws ConnectionException, AccessException
The returned list can be modified with the other arguments as described below.
fileSpecs
- if non-empty, determine the status of the specified
files; otherwise return all qualifying files known to be openmaxFiles
- if positive, return only the first maxFiles qualifying files.changeListId
- if positive, return only files associated with the given
changelist ID.ConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> openedFiles(java.util.List<IFileSpec> fileSpecs, OpenedFilesOptions opts) throws P4JavaException
Note that if a non-null OpenedFilesOptions object is passed to this method, the object's clientName field is ignored and the name of the client whose openedFiles method is being called is used instead; similarly, any allClient options (a.k.a "-a" flags) are also ignored.
fileSpecs
- if non-empty, determine the status of the specified
files; otherwise return all qualifying files known to be openopts
- possibly-null OpenedFilesOptions object object specifying method options.P4JavaException
- if an error occurs processing this method and its parameters.java.util.List<IFileSpec> haveList(java.util.List<IFileSpec> fileSpecs) throws ConnectionException, AccessException
Note that this method will return an empty list unless the client is the IServer object's current client.
Only the depotFile, revision, clientPath, and localPath fields of the returned file specs are guaranteed to be valid.
fileSpecs
- file specs; if empty or null, return all qualifying filesConnectionException
- if the Perforce server is unreachable or is not
connected.tAccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> graphHaveList(java.util.List<IFileSpec> fileSpecs) throws ConnectionException, AccessException
Note that this method will return an empty list unless the client is the IServer object's current client.
Only the sha, repo name, and branch name fields of the returned file specs are guaranteed to be valid.
fileSpecs
- file specs; if empty or null, return all qualifying filesConnectionException
- if the Perforce server is unreachable or is not
connected.tAccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> reopenFiles(java.util.List<IFileSpec> fileSpecs, int changeListId, java.lang.String fileType) throws ConnectionException, AccessException
fileSpecs
- non-null list of files to be reopenedchangeListId
- the new changelist ID to be usedfileType
- if non-null, the file is reopened as that filetype.
If the filetype given is a partial filetype, that partial
filetype is combined with the current filetype.
See 'p4 help filetypes' to attempt to make any sense of this..ConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> reopenFiles(java.util.List<IFileSpec> fileSpecs, ReopenFilesOptions opts) throws P4JavaException
fileSpecs
- non-null list of files to be reopened.opts
- possibly-null ReopenFilesOptions object object specifying method options.P4JavaException
- if an error occurs processing this method and its parameters.java.util.List<IFileSpec> integrateFiles(int changeListId, boolean showActionsOnly, IntegrationOptions integOpts, java.lang.String branchSpec, IFileSpec fromFile, IFileSpec toFile) throws ConnectionException, AccessException
changeListId
- if not IChangelist.UNKNOWN, use this as the target changelistshowActionsOnly
- if true, don't actually do the integration, just return
the actions that would have been donebranchSpec
- if not null, use this as the integration branch specification
(as in the -b option to integ).integOpts
- detailed integration objects. If null, the method will use default
option values as described for the IntegrationOptions constructor,
all of which are safe for straightforward merge use.fromFile
- if not null, use this as the source Perforce filespectoFile
- if not null, use this as the target Perforce filespecConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> integrateFiles(IFileSpec fromFile, IFileSpec toFile, java.lang.String branchSpec, IntegrateFilesOptions opts) throws P4JavaException
fromFile
- fromFile if not null, use this as the source Perforce filespectoFile
- toFile if not null, use this as the target Perforce filespecbranchSpec
- if not null, use this as the integration branch specification
(as in the -b option to integ)opts
- possibly-null IntegrateFilesOptions object specifying method optionsP4JavaException
- if an error occurs processing this method and its parametersIntegrateFilesOptions
java.util.List<IFileSpec> integrateFiles(IFileSpec fromFile, java.util.List<IFileSpec> toFiles, IntegrateFilesOptions opts) throws P4JavaException
Note that depending on the specific options passed-in the fromFile can be null or one file spec; the toFiles list can be null, one or more file specs.
fromFile
- if not null, use this as the source file.toFiles
- if not null, use this as the list of target files.opts
- possibly-null IntegrateFilesOptions object specifying method options.P4JavaException
- if an error occurs processing this method and its parameters.java.util.List<IFileSpec> resolveFilesAuto(java.util.List<IFileSpec> fileSpecs, boolean safeMerge, boolean acceptTheirs, boolean acceptYours, boolean showActionsOnly, boolean forceResolve) throws ConnectionException, AccessException
Note that this is currently a very limited version of the full Perforce resolve feature, corresponding only to (some of) the various auto-resolve features, meaning this method will never invoke (or need to invoke) end user interaction. More extensive versions of the resolve command will be surfaced as needed.
This method notionally returns an IFileSpec, as it's closely related to the integ method and shares many of its return values, but there are several limitations in the use of the returned IFileSpecs. In general, what is returned from this method is a mixture of resolution info messages (i.e. messages from the server that spell out what would or did happen during the resolve), and "true" filespecs. In the latter case, the filespec has a very limited set of valid fields: only client path, from file, and the from revisions are guaranteed to be valid. In the former case, since the info messages do NOT correspond one-to-one with the input file specs that caused the messages, consumers need to explicitly search each returned info message string for the relevant file path or name. This is an unfortunate artifact of the Perforce server's implementation of this command.
Note: results and behavior are undefined if clashing or inconsistent options are used with this method. In general, the behavior of (e.g.) setting both acceptYours and acceptTheirs true will be whatever the Perforce server makes of it (usually an error), but that's not guaranteed....
Note also that having safeMerge, acceptTheirs, acceptYours, and forceResolve all set to false results in "-am" behavior.
fileSpecs
- files to be resolved; if null or empty, all files marked as
needing resolution will be processedsafeMerge
- if true, only do "safe" resolves, as documented for the p4 "-as" optionacceptTheirs
- if true, automatically accept "their" changes, as documented
for the p4 "-at" optionacceptYours
- if true, automatically accept "your" changes, as documented
for the p4 "-ay" optionshowActionsOnly
- if true, don't do the actual resolve, just return the
actions that would have been performed for the resolveforceResolve
- forces auto-mode resolve to accept the merged file even if
there are conflicts. This option results in a merged file that may
contain Perforce conflict markers; these markers should be edited out
of the file manually before it's submitted (unless you actually want
them there...).ConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> resolveFilesAuto(java.util.List<IFileSpec> fileSpecs, ResolveFilesAutoOptions opts) throws P4JavaException
Note that this is currently a very limited version of the full Perforce resolve feature, corresponding only to (some of) the various auto-resolve features, meaning this method will never invoke (or need to invoke) end user interaction. More extensive versions of the resolve command will be surfaced as needed.
This method notionally returns an IFileSpec, as it's closely related to the integ method and shares many of its return values, but there are several limitations in the use of the returned IFileSpecs. In general, what is returned from this method is a mixture of resolution info messages (i.e. messages from the server that spell out what would or did happen during the resolve), and "true" filespecs. In the latter case, the filespec has a very limited set of valid fields: only client path, from file, and the from revisions are guaranteed to be valid. In the former case, since the info messages do NOT correspond one-to-one with the input file specs that caused the messages, consumers need to explicitly search each returned info message string for the relevant file path or name. This is an unfortunate artifact of the Perforce server's implementation of this command.
Note: results and behavior are undefined if clashing or inconsistent options are used with this method. In general, the behavior of (e.g.) setting both acceptYours and acceptTheirs true will be whatever the Perforce server makes of it (usually an error), but that's not guaranteed....
Note also that having safeMerge, acceptTheirs, acceptYours, and forceResolve all set to false in the associated ResolveFilesAutoOptions object results in "-am" behavior.
fileSpecs
- files to be resolved; if null or empty, all files marked as
needing resolution will be processedopts
- possibly-null ResolveFilesAutoOptions object specifying method optionP4JavaException
- if an error occurs processing this method and its parametersResolveFilesAutoOptions
IFileSpec resolveFile(IFileSpec targetFile, java.io.InputStream sourceStream) throws ConnectionException, RequestException, AccessException
Note that this method assumes that the target and source resolve makes sense, and does little or no sanity- or error-checking. In particular, it will happily accept binary and text integration resolves whether they make sense or not; you should check the getHowResolved() method on the returned filespec to ensure that it did what you expected (typically this means checking that it was resolved using the "edit from" resolution rather than, say "ignored").
Use of this method will normally result in an integration edit record in the target file's history whether you've actually done an edit or not, so it is up to the consumer to weed out the various straight copy resolve cases and only use this for cases of more complex merges that actually did involve an edit (in reality or not).
Note that the IFileSpec returned will generally not have a valid depot or client file paths -- you must use the toFile and fromFile methods on the returns here.
targetFile
- non-null file to be resolved.sourceStream
- non-null InputStream containing the resolved file's new contents.ConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerRequestException
- if the Perforce server encounters an error during
its processing of the requestIFileSpec resolveFile(IFileSpec targetFile, java.io.InputStream sourceStream, boolean useTextualMerge, int startFromRev, int endFromRev) throws ConnectionException, RequestException, AccessException
Note that this method assumes that the target and source resolve makes sense, and does little or no sanity- or error-checking. In particular, it will happily accept binary and text integration resolves whether they make sense or not; you should check the getHowResolved() method on the returned filespec to ensure that it did what you expected (typically this means checking that it was resolved using the "edit from" resolution rather than, say "ignored").
Use of this method will normally result in an integration edit record in the target file's history whether you've actually done an edit or not, so it is up to the consumer to weed out the various straight copy resolve cases and only use this for cases of more complex merges that actually did involve an edit (in reality or not).
Note that the IFileSpec returned will generally not have a valid depot or client file paths -- you must use the toFile and fromFile methods on the returns here.
targetFile
- non-null file to be resolved.sourceStream
- non-null InputStream containing the resolved file's new contents.useTextualMerge
- attempt a textual merge even for binary filesstartFromRev
- oldest revision to be resolved, or -1 for no limitendFromRev
- newest revision to be resolved, or -1 for no limitConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerRequestException
- if the Perforce server encounters an error during
its processing of the requestjava.lang.String resolveStreamAuto(ResolveFilesAutoOptions opts) throws P4JavaException
Note that this is currently a very limited version of the full Perforce resolve feature, corresponding only to (some of) the various auto-resolve features, meaning this method will never invoke (or need to invoke) end user interaction. More extensive versions of the resolve command will be surfaced as needed.
Note: results and behavior are undefined if clashing or inconsistent options are used with this method. In general, the behavior of (e.g.) setting both acceptYours and acceptTheirs true will be whatever the Perforce server makes of it (usually an error), but that's not guaranteed....
Note also that having safeMerge, acceptTheirs, acceptYours, and forceResolve all set to false in the associated ResolveFilesAutoOptions object results in "-am" behavior.
opts
- possibly-null ResolveFilesAutoOptions object specifying method optionP4JavaException
- if an error occurs processing this method and its parametersjava.util.List<IFileSpec> resolvedFiles(java.util.List<IFileSpec> fileSpecs, boolean showBaseRevision) throws ConnectionException, AccessException
fileSpecs
- optional filespecs to be processedshowBaseRevision
- if true, reports the revision used as the base during
resolve (this seems to have no effect).ConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> resolvedFiles(java.util.List<IFileSpec> fileSpecs, ResolvedFilesOptions opts) throws P4JavaException
fileSpecs
- fileSpecs optional filespecs to be processedopts
- possibly-null ResolveFilesAutoOptions object specifying method optionsP4JavaException
- if an error occurs processing this method and its parametersResolvedFilesOptions
java.util.List<IFileSpec> lockFiles(java.util.List<IFileSpec> fileSpecs, int changeListId) throws ConnectionException, AccessException
The open files named are locked in the Perforce depot, preventing any user other than the current user on the current client from submitting changes to the files. If a file is already locked then the lock request is rejected. If no file specs are given then lock all files currently open in the changelist number given if it is IChangelist.DEFAULT or > 0.
Note that the file specs returned are only partially filled out; the Perforce server seems to only return path information for this command.
fileSpecs
- candidate file specschangeListId
- if IChangelist.DEFAULT or larger than zero, lock
all files associated this changelist IDConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> lockFiles(java.util.List<IFileSpec> fileSpecs, LockFilesOptions opts) throws P4JavaException
The open files named are locked in the Perforce depot, preventing any user other than the current user on the current client from submitting changes to the files. If a file is already locked then the lock request is rejected. If no file specs are given then lock all files currently open in the changelist number given if it is IChangelist.DEFAULT or > 0.
Note that the file specs returned are only partially filled out; the Perforce server seems to only return path information for this command.
fileSpecs
- candidate file specsopts
- possibly-null LockFilesOptions object specifying method optionsP4JavaException
- if an error occurs processing this method and its parametersLockFilesOptions
java.util.List<IFileSpec> unlockFiles(java.util.List<IFileSpec> fileSpecs, int changeListId, boolean force) throws ConnectionException, AccessException
If the files are open in a specific pending changelist other than 'default', then the changeListId parameter is required to specify the pending changelist. If no file name is given then all files in the designated changelist are unlocked.
Note that the file specs returned are only partially filled out; the Perforce server seems to only return path information for this command.
fileSpecs
- candidate file specschangeListId
- if IChangelist.DEFAULT or larger than zero, lock
all files associated this changelist IDforce
- force the lock on non-owned filespecs. Requires appropriate
permissions.ConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> unlockFiles(java.util.List<IFileSpec> fileSpecs, UnlockFilesOptions opts) throws P4JavaException
Note that the file specs returned are only partially filled out; the Perforce server seems to only return path information for this command.
fileSpecs
- candidate file specsopts
- possibly-null UnlockFilesOptions object specifying method optionsP4JavaException
- if an error occurs processing this method and its parametersjava.util.List<IFileSpec> getDiffFiles(java.util.List<IFileSpec> fileSpecs, int maxFiles, boolean diffNonTextFiles, boolean openedDifferentMissing, boolean openedForIntegrate, boolean unopenedMissing, boolean unopenedDifferent, boolean unopenedWithStatus, boolean openedSame) throws ConnectionException, RequestException, AccessException
Note that this method returns lists of files, and is not useful to get the diffs themselves (at least not directly).
Note that the diff status returned for the unopenedWithStatus option is retrievable from the filespec with the getDiffStatus() method.
Note that you must have at least one of the various "-s" options set to true.
maxFiles
- max filesfileSpecs
- candidate file specs; may be null.diffNonTextFiles
- include non-text files in the diff listsopenedDifferentMissing
- corresponds to the "-sa" option for the p4 command line.openedForIntegrate
- corresponds to the "-sb" option for the p4 command line.unopenedMissing
- corresponds to the "-sd" option for the p4 command line.unopenedDifferent
- corresponds to the "-se" option for the p4 command line.unopenedWithStatus
- corresponds to the "-sl" option for the p4 command line.openedSame
- corresponds to the "-sr" option for the p4 command line.ConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> getDiffFiles(java.util.List<IFileSpec> fileSpecs, GetDiffFilesOptions opts) throws P4JavaException
Note that this method returns lists of files, and is not useful to get the diffs themselves (at least not directly).
Note that the diff status returned for the unopenedWithStatus option is retrievable from the filespec with the getDiffStatus() method.
Note that you must have at least one of the various "-s" options set to true.
fileSpecs
- candidate file specs; may be null.opts
- possibly-null GetDiffFilesOptions object specifying method optionsP4JavaException
- if an error occurs processing this method and its parametersjava.util.List<IFileSpec> shelveFiles(java.util.List<IFileSpec> fileSpecs, int changelistId, ShelveFilesOptions opts) throws P4JavaException
fileSpecs
- list of files to be shelved; if null or empty, shelve all files
in the changelistchangelistId
- changelistId ID of the changelist containing the files to be shelved.
Can not be IChangelist.DEFAULT or IChangelist.UNKNOWN (both of
which will cause server usage errors to be returned if used).opts
- possibly-null ShelveFilesOptions object specifying method optionsP4JavaException
- if an error occurs processing this method and its parametersShelveFilesOptions
java.util.List<IFileSpec> unshelveFiles(java.util.List<IFileSpec> fileSpecs, int sourceChangelistId, int targetChangelistId, UnshelveFilesOptions opts) throws P4JavaException
fileSpecs
- list of files to be unshelved; if null or empty, shelve all files
in the changelistsourceChangelistId
- id of changelist containing shelved files to unshelvetargetChangelistId
- id of changelist unshelved files will be placed inopts
- possibly-null UnshelveFilesOptions object specifying method optionsP4JavaException
- if an error occurs processing this method and its parametersjava.util.List<IFileSpec> shelveChangelist(int changelistId, java.util.List<IFileSpec> fileSpecs, boolean forceUpdate, boolean replace, boolean discard) throws ConnectionException, RequestException, AccessException
changelistId
- ID of the changelist containing the files to be shelved.
Can not be IChangelist.DEFAULT or IChangelist.UNKNOWN (both of
which will cause server usage errors to be returned if used).fileSpecs
- list of files to be shelved; if null or empty, shelve all files
in the changelistforceUpdate
- if true, update the named shelved files.replace
- if true, replace the named shelved files.discard
- if truem discard the named shelved files.ConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> shelveChangelist(IChangelist list) throws ConnectionException, RequestException, AccessException
This performs a 'p4 shelve -i' command when called.
list
- non-null changelist to be shelved.ConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> unshelveChangelist(int shelveChangelistId, java.util.List<IFileSpec> fileSpecs, int clientChangelistId, boolean forceOverwrite, boolean previewOnly) throws ConnectionException, RequestException, AccessException
shelveChangelistId
- id of changelist containing shelved files to unshelve (-s)fileSpecs
- optional list of file specs to limit unshelving toclientChangelistId
- id of changelist to unshelve the files into (-c)forceOverwrite
- force clobbering of files currently writeable but unopened (-f)previewOnly
- don't actually unshelve but get the file specs that would be
unshelved (-n)ConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the callerjava.util.List<IFileSpec> submitShelvedChangelist(int shelvedChangelistId) throws P4JavaException
This performs a 'p4 submit -e shelvedChange#' command when called.
shelvedChangelistId
- the shelved changelist to be submited.P4JavaException
- if an error occurs processing this method and its parameters.java.util.List<IFileSpec> copyFiles(IFileSpec fromFile, IFileSpec toFile, java.lang.String branchSpec, CopyFilesOptions opts) throws P4JavaException
Corresponds to the 'p4 copy' command.
fromFile
- if not null, use this as the source file.toFile
- if not null, use this as the target file.branchSpec
- if not null, use this as the copy branch specification.opts
- possibly-null CopyFilesOptions object specifying method options.P4JavaException
- if an error occurs processing this method and its parameters.java.util.List<IFileSpec> copyFiles(IFileSpec fromFile, java.util.List<IFileSpec> toFiles, CopyFilesOptions opts) throws P4JavaException
Note that depending on the specific options passed-in the fromFile can be null or one file spec; the toFiles list can be null, one or more file specs. The full semantics of this operation are found in the main 'p4 help copy' documentation.
fromFile
- if not null, use this as the source file.toFiles
- if not null, use this as the list of target files.opts
- possibly-null CopyFilesOptions object specifying method options.P4JavaException
- if an error occurs processing this method and its parameters.java.util.List<IFileSpec> mergeFiles(IFileSpec fromFile, java.util.List<IFileSpec> toFiles, MergeFilesOptions opts) throws P4JavaException
Note that depending on the specific options passed-in the fromFile can be null or one file spec; the toFiles list can be null, one or more file specs.
fromFile
- if not null, use this as the source file.toFiles
- if not null, use this as the list of target files.opts
- possibly-null MergeFilesOptions object specifying method optionsP4JavaException
- if an error occurs processing this method and its parametersjava.util.List<IFileSpec> reconcileFiles(java.util.List<IFileSpec> fileSpecs, ReconcileFilesOptions opts) throws P4JavaException
'p4 reconcile' finds unopened files in a client's workspace and detects the following:
1. files in depot missing from workspace, but still on have list.
2. files on workspace that are not in depot.
3. files modified in workpace that are not opened for edit.
By default, the files matching each condition above in the path are reconciled by opening files for delete (scenario 1), add (scenario 2), and/or edit (scenario 3). The -e, -a, and -d flags may be used to limit to a subset of these operations. If no file arguments are given, reconcile and status default to the current working directory.
fileSpecs
- non-null list of files to be opened, in Perforce client or
depot or local path format.opts
- possibly-null ReconcileFilesOptions object specifying method options.P4JavaException
- if an error occurs processing this method and its parametersReconcileFilesOptions
void reconcileFiles(java.util.List<IFileSpec> fileSpecs, ReconcileFilesOptions opts, IStreamingCallback callback, int key) throws P4JavaException
'p4 reconcile' finds unopened files in a client's workspace and detects the following:
1. files in depot missing from workspace, but still on have list.
2. files on workspace that are not in depot.
3. files modified in workpace that are not opened for edit.
By default, the files matching each condition above in the path are reconciled by opening files for delete (scenario 1), add (scenario 2), and/or edit (scenario 3). The -e, -a, and -d flags may be used to limit to a subset of these operations. If no file arguments are given, reconcile and status default to the current working directory.
fileSpecs
- non-null list of files to be opened, in Perforce client or
depot or local path format.opts
- possibly-null ReconcileFilesOptions object specifying method options.callback
- a non-null IStreamingCallback to be used to process the incoming
results.key
- an opaque integer key that is passed to the IStreamingCallback callback
methods to identify the action as being associated with this specific
call.
representing the opened files. Not all fields in these specs
will be valid or set.P4JavaException
- if an error occurs processing this method and its parametersReconcileFilesOptions
java.util.List<IFileSpec> populateFiles(IFileSpec fromFile, java.util.List<IFileSpec> toFiles, PopulateFilesOptions opts) throws P4JavaException
Note that depending on the specific options passed-in the fromFile can be null or one file spec; the toFiles list can be null, one or more file specs. The full semantics of this operation are found in the main 'p4 help populate' documentation.
fromFile
- if not null, use this as the source file.toFiles
- if not null, use this as the list of target files.opts
- possibly-null PopulateFilesOptions object specifying method options.P4JavaException
- if an error occurs processing this method and its parameters.java.util.List<IRepo> getRepos() throws ConnectionException, RequestException, AccessException
ConnectionException
- on errorRequestException
- on errorAccessException
- on errorViewDepotType getViewDepotType()
ListData getListData(java.util.List<IFileSpec> fileSpecs, ListOptions options) throws P4JavaException
fileSpecs
- List of File specsoptions
- List optionsP4JavaException
- on errorjava.lang.String setStreamParentView(IStreamSummary.ParentView parentView, boolean sourceComments) throws P4JavaException
parentView
- NOINHERIT or INHERITsourceComments
- If true add inline source comments to ViewMaps when changing the ParentView field
from inherit to noinherit.P4JavaException
- on error