|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOptionsServer
An extension of the basic IServer interface to provide Options object-based method access to Perforce server functionality and objects.
Note that unless otherwise noted, individual method options objects can be null; if they're null, the individual method Javadoc will spell out what default options apply (if any) in that case.
Note that in individual method Javadoc comments below, all method "throws" clauses are assumed to throw the normal complement of RequestException, ConnectionException, and AccessException with their usual semantics unless otherwise noted. The three standard P4JavaException classes and the broad causes for their being thrown are:
ConnectionException if the Perforce server is unreachable or is not connected. RequestException if the Perforce server encounters an error during its processing of the request. AccessException if the Perforce server denies access to the caller.
Method Summary | |
---|---|
String |
addTrust(String fingerprintValue)
Approve and add the specified fingerprint for the Perforce SSL connection. |
String |
addTrust(String fingerprintValue,
TrustOptions opts)
Approve and add the specified fingerprint or replacement for the Perforce SSL connection. |
String |
addTrust(TrustOptions opts)
Approve and add the fingerprint for the Perforce SSL connection. |
String |
changePassword(String oldPassword,
String newPassword,
String userName)
Change a user's password on the server. |
String |
createDepot(IDepot newDepot)
Create a new depot in the repository. |
String |
createProtectionEntries(List<IProtectionEntry> entryList)
Create or replace the protections table data on the Perforce server with these new protection entries. |
String |
createStream(IStream stream)
Create a new stream in the repository. |
String |
createTriggerEntries(List<ITriggerEntry> entryList)
Create or replace the triggers table data on the Perforce server with these new trigger entries. |
String |
createUser(IUser user,
UpdateUserOptions opts)
Create a new Perforce user on the Perforce server. |
String |
createUserGroup(IUserGroup group,
UpdateUserGroupOptions opts)
Create a new Perforce user group on the Perforce server. |
String |
deleteBranchSpec(String branchSpecName,
DeleteBranchSpecOptions opts)
Delete a named Perforce branch spec from the Perforce server. |
String |
deleteClient(String clientName,
DeleteClientOptions opts)
Delete a Perforce client from a Perforce server. |
String |
deleteDepot(String name)
Delete a named depot from the repository. |
String |
deleteKey(String keyName)
Delete a key on a Perforce server. |
String |
deleteLabel(String labelName,
DeleteLabelOptions opts)
Delete a named Perforce label from the Perforce server. |
String |
deletePendingChangelist(int id,
ChangelistOptions opts)
Delete a pending Perforce changelist. |
String |
deleteProperty(String name,
PropertyOptions opts)
Deletes a property value from the Perforce server. |
String |
deleteStream(String streamPath,
StreamOptions opts)
Delete a Perforce stream spec from the Perforce server. |
String |
deleteUser(String userName,
UpdateUserOptions opts)
Delete a named Perforce user from the Perforce server |
String |
deleteUserGroup(IUserGroup group,
UpdateUserGroupOptions opts)
Delete a Perforce user group from the Perforce server. |
List<IFileSpec> |
duplicateRevisions(IFileSpec fromFile,
IFileSpec toFile,
DuplicateRevisionsOptions opts)
Duplicate revisions with integration history (unsupported). |
List<Map<String,Object>> |
execInputStringMapCmdList(String cmdName,
String[] cmdArgs,
String inString)
Issue an arbitrary P4Java command to the Perforce server and return the results as a list of maps. |
List<Map<String,Object>> |
execInputStringMapCmdList(String cmdName,
String[] cmdArgs,
String inString,
IFilterCallback filterCallback)
Issue an arbitrary P4Java command to the Perforce server and return the results as a list of maps. |
InputStream |
execInputStringStreamCmd(String cmdName,
String[] cmdArgs,
String inString)
Issue an arbitrary P4Java command to the Perforce server and return the results as a stream. |
void |
execInputStringStreamingMapCmd(String cmdName,
String[] cmdArgs,
String inString,
IStreamingCallback callback,
int key)
Issue a streaming map command to the Perforce server, using an optional string for any input expected by the server (such as label or job specs, etc.). |
List<Map<String,Object>> |
execMapCmdList(String cmdName,
String[] cmdArgs,
Map<String,Object> inMap)
Issue an arbitrary P4Java command to the Perforce server and return the results as a list of maps. |
List<Map<String,Object>> |
execMapCmdList(String cmdName,
String[] cmdArgs,
Map<String,Object> inMap,
IFilterCallback filterCallback)
Issue an arbitrary P4Java command to the Perforce server and return the results as a list of maps. |
List<Map<String,Object>> |
execQuietMapCmdList(String cmdName,
String[] cmdArgs,
Map<String,Object> inMap)
Issue an arbitrary P4Java command to the Perforce server and return the results as a list of maps without invoking any command callbacks. |
InputStream |
execStreamCmd(String cmdName,
String[] cmdArgs,
Map<String,Object> inMap)
Issue an arbitrary P4Java command to the Perforce server and get the results as a stream. |
List<IFix> |
fixJobs(List<String> jobIds,
int changelistId,
FixJobsOptions opts)
Mark each named job as being fixed by the changelist number given with changeListId. |
String |
getAuthTicket(String userName)
Return the Perforce authentication ticket for specified user. |
IBranchSpec |
getBranchSpec(String name,
GetBranchSpecOptions opts)
Get a specific named Perforce branch spec from the Perforce server. |
List<IBranchSpecSummary> |
getBranchSpecs(GetBranchSpecsOptions opts)
Get a list of all summary Perforce branch specs known to the Perforce server. |
IChangelist |
getChangelist(int id,
ChangelistOptions opts)
Get a specific Perforce changelist from a Perforce server. |
InputStream |
getChangelistDiffs(int id,
GetChangelistDiffsOptions opts)
Get an InputStream onto the file diffs associated with a specific submitted changelist. |
List<IChangelistSummary> |
getChangelists(List<IFileSpec> fileSpecs,
GetChangelistsOptions opts)
Get a list of Perforce changelist summary objects from the Perforce server. |
List<IClientSummary> |
getClients(GetClientsOptions opts)
Get a list of IClientSummary objects for all Perforce clients known to this Perforce server. |
IClient |
getClientTemplate(String clientName,
GetClientTemplateOptions opts)
Get a template of a non-existent named Perforce client. |
String |
getCounter(String counterName,
CounterOptions opts)
Get the value of a named Perforce counter from the Perforce server. |
Map<String,String> |
getCounters(CounterOptions opts)
Deprecated. As of release 2013.1, replaced by getCounters(com.perforce.p4java.option.server.GetCountersOptions) |
Map<String,String> |
getCounters(GetCountersOptions opts)
Get a map of the Perforce server's counters. |
IDepot |
getDepot(String name)
Get an individual depot by name. |
List<IFileSpec> |
getDepotFiles(List<IFileSpec> fileSpecs,
GetDepotFilesOptions opts)
List all Perforce depot files known to the Perforce server that conform to the passed-in wild-card file specification(s). |
List<IFileSpec> |
getDirectories(List<IFileSpec> fileSpecs,
GetDirectoriesOptions opts)
List any directories matching the passed-in file specifications. |
List<IDiskSpace> |
getDiskSpace(List<String> filesystems)
Get a list of disk space information about the current availability of disk space on the server. |
String |
getErrorOrInfoStr(Map<String,Object> map)
Gets the info/warning/error/fatal message from the passed-in Perforce command results map. |
String |
getErrorStr(Map<String,Object> map)
Gets the error/fatal message from the passed-in Perforce command results map. |
List<Map<String,Object>> |
getExportRecords(ExportRecordsOptions opts)
Get a list of exported journal or checkpoint records (admin / superuser command). |
List<IExtendedFileSpec> |
getExtendedFiles(List<IFileSpec> fileSpecs,
GetExtendedFilesOptions opts)
Return a list of everything Perforce knows about a set of Perforce files. |
List<IFileAnnotation> |
getFileAnnotations(List<IFileSpec> fileSpecs,
GetFileAnnotationsOptions opts)
Get a list of revision annotations for the specified files. |
InputStream |
getFileContents(List<IFileSpec> fileSpecs,
GetFileContentsOptions opts)
Return an InputStream onto the contents of one or more revisions of one or more Perforce depot file contents. |
List<IFileDiff> |
getFileDiffs(IFileSpec file1,
IFileSpec file2,
String branchSpecName,
GetFileDiffsOptions opts)
Run diff on the Perforce server of two files in the depot. |
InputStream |
getFileDiffsStream(IFileSpec file1,
IFileSpec file2,
String branchSpecName,
GetFileDiffsOptions opts)
Run diff on the Perforce server of two files in the depot. |
List<IFileSize> |
getFileSizes(List<IFileSpec> fileSpecs,
GetFileSizesOptions opts)
Gets a list of file sizes for one or more files in the depot. |
List<IFix> |
getFixes(List<IFileSpec> fileSpecs,
GetFixesOptions opts)
Return a list of all Perforce jobs with fix records associated with them, along with the changelist number of the fix. |
String |
getInfoStr(Map<String,Object> map)
Gets the info message from the passed-in Perforce command results map. |
List<IChangelist> |
getInterchanges(IFileSpec fromFile,
IFileSpec toFile,
GetInterchangesOptions opts)
Returns a list of changelists that have not been integrated from a set of source files to a set of target files. |
List<IChangelist> |
getInterchanges(String branchSpecName,
List<IFileSpec> fromFileList,
List<IFileSpec> toFileList,
GetInterchangesOptions opts)
Returns a list of changelists that have not been integrated from a set of source files to a set of target files. |
List<IJob> |
getJobs(List<IFileSpec> fileSpecs,
GetJobsOptions opts)
Return a list of Perforce jobs. |
String |
getKey(String keyName)
Get the value of a named Perforce key from the Perforce server. |
Map<String,String> |
getKeys(GetKeysOptions opts)
Get a map of the Perforce server's keys. |
List<ILabelSummary> |
getLabels(List<IFileSpec> fileList,
GetLabelsOptions opts)
Get a list of Perforce labels, optionally tied to a specific set of files. |
ILogTail |
getLogTail(LogTailOptions opts)
Get the last block(s) of the errorLog and the offset required to get the next block when it becomes available. |
List<IFileLineMatch> |
getMatchingLines(List<IFileSpec> fileSpecs,
String pattern,
List<String> infoLines,
MatchingLinesOptions options)
Get list of matching lines in the specified file specs. |
List<IFileLineMatch> |
getMatchingLines(List<IFileSpec> fileSpecs,
String pattern,
MatchingLinesOptions options)
Get list of matching lines in the specified file specs. |
List<IFileSpec> |
getOpenedFiles(List<IFileSpec> fileSpecs,
OpenedFilesOptions opts)
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. |
List<IProperty> |
getProperty(GetPropertyOptions opts)
Gets a list of one or more property values from the Perforce server. |
List<IProtectionEntry> |
getProtectionEntries(List<IFileSpec> fileList,
GetProtectionEntriesOptions opts)
Get a list of Perforce protection entries for the passed-in arguments. |
InputStream |
getProtectionsTable()
Get an InputStream onto the entries of the Perforce protections table. |
List<IReviewChangelist> |
getReviewChangelists(GetReviewChangelistsOptions opts)
Get a list of all submitted changelists equal or above a provided changelist number that have not been reviewed before. |
List<IUserSummary> |
getReviews(List<IFileSpec> fileSpecs,
GetReviewsOptions opts)
Get a list of all users who have subscribed to review the named files. |
Map<IFileSpec,List<IFileRevisionData>> |
getRevisionHistory(List<IFileSpec> fileSpecs,
GetRevisionHistoryOptions opts)
Get the revision history data for one or more Perforce files. |
List<IServerProcess> |
getServerProcesses(GetServerProcessesOptions opts)
Return a list of Perforce server processes active on the Perforce server. |
List<IFileSpec> |
getShelvedFiles(int changelistId)
Get a list of shelved files associated with a Perforce pending changelist. |
IStream |
getStream(String streamPath)
Get an individual stream by stream path. |
IStream |
getStream(String streamPath,
GetStreamOptions opts)
Get an individual stream by stream path. |
void |
getStreamingExportRecords(ExportRecordsOptions opts,
IStreamingCallback callback,
int key)
Get each exported journal or checkpoint record (admin / superuser command) as it comes in from the server, rather than waiting for the entire command to complete. |
IStreamIntegrationStatus |
getStreamIntegrationStatus(String stream,
StreamIntegrationStatusOptions opts)
Get a stream's cached integration status with respect to its parent. |
List<IStreamSummary> |
getStreams(List<String> streamPaths,
GetStreamsOptions opts)
Get a list of all summary Perforce streams known to the Perforce server. |
List<IFileSpec> |
getSubmittedIntegrations(List<IFileSpec> fileSpecs,
GetSubmittedIntegrationsOptions opts)
Get a list of submitted integrations for the passed-in filespecs |
String |
getTicketsFilePath()
Return the Perforce authentication tickets file path. |
List<ITriggerEntry> |
getTriggerEntries()
Get a list of Perforce trigger entries. |
InputStream |
getTriggersTable()
Get an InputStream onto the entries of the Perforce triggers table. |
String |
getTrust()
Return the fingerprint for the Perforce SSL connection. |
String |
getTrustFilePath()
Return the Perforce trust file path. |
List<Fingerprint> |
getTrusts()
List all fingerprints in the trust file. |
List<Fingerprint> |
getTrusts(TrustOptions opts)
List all fingerprints or replacements in the trust file. |
UsageOptions |
getUsageOptions()
Get the UsageOptions object associated with this server. |
List<IUserGroup> |
getUserGroups(String userOrGroupName,
GetUserGroupsOptions opts)
Get a list of Perforce user groups from the server. |
List<IUserSummary> |
getUsers(List<String> userList,
GetUsersOptions opts)
Get a list of Perforce users known to this Perforce server. |
void |
journalWait(JournalWaitOptions opts)
Turns on/off journal-wait. |
void |
login(IUser user,
StringBuffer ticket,
LoginOptions opts)
Log another user in to Perforce by obtaining a session ticket for that user. |
void |
login(String password,
LoginOptions opts)
Log the current user (if any) in to a Perforce server, optionally arranging to be logged in for all hosts. |
void |
login(String password,
StringBuffer ticket,
LoginOptions opts)
Log the current user (if any) in to a Perforce server using. |
void |
logout(LoginOptions opts)
Log the current Perforce user out of a Perforce server session. |
List<IFileSpec> |
moveFile(IFileSpec fromFile,
IFileSpec toFile,
MoveFileOptions opts)
Move a file already opened for edit or add (the fromFile) to the destination file (the toFile). |
List<IObliterateResult> |
obliterateFiles(List<IFileSpec> fileSpecs,
ObliterateFilesOptions opts)
Obliterate permanently remove files and their history from the server. |
String |
reload(ReloadOptions opts)
Reload an unloaded client or label. |
String |
removeTrust()
Remove the fingerprint for the Perforce SSL connection. |
String |
removeTrust(TrustOptions opts)
Remove the fingerprint or replacement for the Perforce SSL connection. |
String |
renameUser(String oldUserName,
String newUserName)
Completely renames a user, modifying all database records which mention the user. |
List<String> |
searchJobs(String words,
SearchJobsOptions opts)
Search for jobs that contain the specified words in the search engine's index. |
void |
setAuthTicket(String userName,
String authTicket)
Set the server's Perforce authentication ticket for the specified user to the passed-in string. |
String |
setCounter(String counterName,
String value,
CounterOptions opts)
Create, set or delete a counter on a Perforce server. |
List<IFileSpec> |
setFileAttributes(List<IFileSpec> files,
Map<String,String> attributes,
SetFileAttributesOptions opts)
Set file attributes on one or more files (unsupported). |
List<IFileSpec> |
setFileAttributes(List<IFileSpec> files,
String attributeName,
InputStream inStream,
SetFileAttributesOptions opts)
Set a file attribute on one or more files using the passed-in input stream as the source for the attribute's value (unsupported). |
String |
setKey(String keyName,
String value,
KeyOptions opts)
Create, set or delete a key on a Perforce server. |
String |
setProperty(String name,
String value,
PropertyOptions opts)
Updates a property value in the Perforce server, or adds the property value to the Perforce server if it is not yet there. |
String |
setServerConfigurationValue(String name,
String value)
Set or unset a specific names server configuration variable. |
void |
setTicketsFilePath(String ticketsFilePath)
Set the Perforce authentication tickets file path. |
void |
setTrustFilePath(String trustFilePath)
Set the Perforce trust file path. |
IOptionsServer |
setUsageOptions(UsageOptions opts)
Set the UsageOptions object associated with this server. |
List<ServerConfigurationValue> |
showServerConfiguration(String serverName,
String variableName)
Show server configuration values. |
String |
switchClientView(String templateClientName,
String targetClientName,
SwitchClientViewOptions opts)
Switch the target client spec's view without invoking the editor. |
String |
switchStreamView(String streamPath,
String targetClientName,
SwitchClientViewOptions opts)
Switch the target client spec's view without invoking the editor. |
List<IFileSpec> |
tagFiles(List<IFileSpec> fileSpecs,
String labelName,
TagFilesOptions opts)
|
String |
unload(UnloadOptions opts)
Unloads a client or label to the unload depot. |
String |
updateClient(IClient client,
boolean force)
Update an existing Perforce client on the current Perforce server. |
String |
updateClient(IClient client,
UpdateClientOptions opts)
Update an existing Perforce client on the current Perforce server. |
String |
updateProtectionEntries(List<IProtectionEntry> entryList)
Replace the protections table data on the Perforce server with these new protection entries. |
String |
updateStream(IStream stream,
StreamOptions opts)
Update a Perforce stream spec on the Perforce server. |
String |
updateTriggerEntries(List<ITriggerEntry> entryList)
Replace the triggers table data on the Perforce server with these new triggers entries. |
String |
updateUser(IUser user,
UpdateUserOptions opts)
Update a Perforce user on the Perforce server. |
String |
updateUserGroup(IUserGroup group,
UpdateUserGroupOptions opts)
Update a Perforce user group on the Perforce server. |
List<IExtendedFileSpec> |
verifyFiles(List<IFileSpec> fileSpecs,
VerifyFilesOptions opts)
Verify that the server archives are intact. |
Method Detail |
---|
List<Map<String,Object>> execMapCmdList(String cmdName, String[] cmdArgs, Map<String,Object> inMap) throws P4JavaException
This method is intended for low-level commands in the spirit and format of the p4 command line interpreter, and offers a simple way to issue commands to the associated Perforce server without the overhead of the more abstract Java interfaces and methods.
No guidance is given here on the format of the returned map; however, it produces the same output as the p4 command line interpreter in -G (Python map) mode.
Note that this method does not allow you to set "usage" options for the command; these may be added later. Note also that although option arguments passed to this method must be in a form recognized by the p4 command line interpreter, that does not mean the method is being implemented by the interpreter -- the actual implementation depends on the options used to get the server object in the first place from the server factory.
cmdName
- the command to be issued; must be non-null, and correspond to a Perforce
command recognized by P4Java and defined in CmdSpec.cmdArgs
- the array of command arguments (options and file arguments, etc.) to be
sent to the Perforce server. These must be in the form used by the corresponding
p4 command line interpreter. Ignored if null.inMap
- an optional map to be sent to the server as standard input, using the
Python map format (-G) form. You must remember to issue the relevant
command-specific option to enable this if needed.
P4JavaException
- if an error occurs processing this method and its parameters.List<Map<String,Object>> execMapCmdList(String cmdName, String[] cmdArgs, Map<String,Object> inMap, IFilterCallback filterCallback) throws P4JavaException
This method is intended for low-level commands in the spirit and format of the p4 command line interpreter, and offers a simple way to issue commands to the associated Perforce server without the overhead of the more abstract Java interfaces and methods.
No guidance is given here on the format of the returned map; however, it produces the same output as the p4 command line interpreter in -G (Python map) mode.
Note that this method does not allow you to set "usage" options for the command; these may be added later. Note also that although option arguments passed to this method must be in a form recognized by the p4 command line interpreter, that does not mean the method is being implemented by the interpreter -- the actual implementation depends on the options used to get the server object in the first place from the server factory.
cmdName
- the command to be issued; must be non-null, and correspond to a Perforce
command recognized by P4Java and defined in CmdSpec.cmdArgs
- the array of command arguments (options and file arguments, etc.) to be
sent to the Perforce server. These must be in the form used by the corresponding
p4 command line interpreter. Ignored if null.inMap
- an optional map to be sent to the server as standard input, using the
Python map format (-G) form. You must remember to issue the relevant
command-specific option to enable this if needed.filterCallback
- an optional filter callback to decide on skipping or keeping individual
key/value pairs as part of the results map.
P4JavaException
- if an error occurs processing this method and its parameters.List<Map<String,Object>> execInputStringMapCmdList(String cmdName, String[] cmdArgs, String inString) throws P4JavaException
This method is intended for low-level commands in the spirit and format of the p4 command line interpreter, and offers a simple way to issue commands to the associated Perforce server without the overhead of the more abstract Java interfaces and methods.
No guidance is given here on the format of the returned map; however, it produces the same output as the p4 command line interpreter in -G (Python map) mode.
Note that this method does not allow you to set "usage" options for the command; these may be added later. Note also that although option arguments passed to this method must be in a form recognized by the p4 command line interpreter, that does not mean the method is being implemented by the interpreter -- the actual implementation depends on the options used to get the server object in the first place from the server factory.
cmdName
- the command to be issued; must be non-null, and correspond to a Perforce
command recognized by P4Java and defined in CmdSpec.cmdArgs
- the array of command arguments (options and file arguments, etc.) to be
sent to the Perforce server. These must be in the form used by the corresponding
p4 command line interpreter. Ignored if null.inString
- an optional string to be sent to the server as standard input unchanged
(this must be in the format expected by the server, typically as required
when using the "-i" flag to the p4 command line app for the same command).
You must remember to issue the relevant
command-specific option to enable this if needed.
P4JavaException
- if an error occurs processing this method and its parametersList<Map<String,Object>> execInputStringMapCmdList(String cmdName, String[] cmdArgs, String inString, IFilterCallback filterCallback) throws P4JavaException
This method is intended for low-level commands in the spirit and format of the p4 command line interpreter, and offers a simple way to issue commands to the associated Perforce server without the overhead of the more abstract Java interfaces and methods.
No guidance is given here on the format of the returned map; however, it produces the same output as the p4 command line interpreter in -G (Python map) mode.
Note that this method does not allow you to set "usage" options for the command; these may be added later. Note also that although option arguments passed to this method must be in a form recognized by the p4 command line interpreter, that does not mean the method is being implemented by the interpreter -- the actual implementation depends on the options used to get the server object in the first place from the server factory.
cmdName
- the command to be issued; must be non-null, and correspond to a Perforce
command recognized by P4Java and defined in CmdSpec.cmdArgs
- the array of command arguments (options and file arguments, etc.) to be
sent to the Perforce server. These must be in the form used by the corresponding
p4 command line interpreter. Ignored if null.inString
- an optional string to be sent to the server as standard input unchanged
(this must be in the format expected by the server, typically as required
when using the "-i" flag to the p4 command line app for the same command).
You must remember to issue the relevant
command-specific option to enable this if needed.filterCallback
- an optional filter callback to decide on skipping or keeping individual
key/value pairs as part of the results map.
P4JavaException
- if an error occurs processing this method and its parametersList<Map<String,Object>> execQuietMapCmdList(String cmdName, String[] cmdArgs, Map<String,Object> inMap) throws P4JavaException
Basically equivalent to execMapCmd with temporary disabling of any ICommandCallback calls and / or listeners; this turns out to be useful for various reasons we won't go into here...
cmdName
- the command to be issued; must be non-null, and correspond to a Perforce
command recognized by P4Java and defined in CmdSpec.cmdArgs
- the array of command arguments (options and file arguments, etc.) to be
sent to the Perforce server. These must be in the form used by the corresponding
p4 command line interpreter. Ignored if null.inMap
- an optional map to be sent to the server as standard input, using the
Python map format (-G) form. You must remember to issue the relevant
command-specific option to enable this if needed.
P4JavaException
- if an error occurs processing this method and its parametersvoid execInputStringStreamingMapCmd(String cmdName, String[] cmdArgs, String inString, IStreamingCallback callback, int key) throws P4JavaException
Streaming commands allow users to get each result from a suitably-issued command as it comes in from the server, rather than waiting for the entire command method to complete (and getting the results back as a completed List or Map or whatever).
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 suitably in much the same way as a user unpacks or processes the results from the other low-level exec methods like execMapCommand.
NOTE: 'streaming' here has nothing at all to do with Perforce 'streams', which are (or will be) implemented elsewhere.
cmdName
- the command to be issued; must be non-null, and correspond to a Perforce
command recognized by P4Java and defined in CmdSpec.cmdArgs
- the array of command arguments (options and file arguments, etc.) to be
sent to the Perforce server. These must be in the form used by the corresponding
p4 command line interpreter. Ignored if null.inString
- an optional string to be sent to the server as standard input unchanged
(this must be in the format expected by the server, typically as required
when using the "-i" flag to the p4 command line app for the same command).
You must remember to issue the relevant
command-specific option to enable this if needed.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 an error occurs processing this method and its parameters.UsageOptions getUsageOptions()
IOptionsServer setUsageOptions(UsageOptions opts)
opts
- non-null UsageOptions object to associate with this server.
void setAuthTicket(String userName, String authTicket)
userName
- non-null Perforce user nameauthTicket
- possibly-null Perforce authentication ticketString getAuthTicket(String userName)
userName
- non-null Perforce user name
void setTicketsFilePath(String ticketsFilePath)
ticketsFilePath
- non-null Perforce auth tickets file pathString getTicketsFilePath()
void setTrustFilePath(String trustFilePath)
trustFilePath
- non-null Perforce trust file pathString getTrustFilePath()
void login(String password, LoginOptions opts) throws P4JavaException
Attempts to log in to the underlying Perforce server. If successful, successive calls to server-side services will succeed until the session is terminated by the server or the user logs out.
Behavior is undefined if the server's user name attribute is null (but will probably cause a NullPointerError with most implementations).
Login will work with the Perforce SSO (single sign-on) scheme: in this case your password should be null, and the environment variable P4LOGINSSO should point to an executable SSO script as described in p4 help undoc (help for this is beyond the scope of this method doc, unfortunately, and the feature is not well tested here, but it "works" in general...).
password
- Perforce password; can be null if no password is needed (as
in the case of SSO logins)opts
- if LoginOptions.allHosts is true, perform the equivalent
of a "login -a". A null LoginOptions parameter is equivalent
to no options being set.
P4JavaException
- if any error occurs in the processing of this
method. A specific ConfigException is thrown if the p4tickets
file could not be updated successfully.void login(String password, StringBuffer ticket, LoginOptions opts) throws P4JavaException
Optionally, if the opts.isDontWriteTicket() is true ('login -p'), the ticket is not written to file; if opts.isAllHosts is true ('login -a'), the ticket is valid on all hosts; if opts.getHost() is non-null ('login -h'), the ticket is valid on the specified host.
Note: if the passed-in ticket StringBuffer originally has content it will remain there. The auth ticket will only be appended to the buffer. If a null ticket StringBuffer is passed in, the auth ticket will not be appended to it. The normal use case should be to pass in a new ticket StringBuffer.
password
- Perforce password; can be null if no password is needed (as
in the case of SSO logins)ticket
- if the ticket StringBuffer parameter is non-null, the auth
ticket that was returned by the login attempt is appended to
the passed-in ticket StringBuffer.opts
- LoginOptions describing the associated options; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.void login(IUser user, StringBuffer ticket, LoginOptions opts) throws P4JavaException
Optionally, if the opts.isDontWriteTicket() is true ('login -p'), the ticket is not written to file; if opts.isAllHosts is true ('login -a'), the ticket is valid on all hosts; if opts.getHost() is non-null ('login -h'), the ticket is valid on the specified host.
Specifying a user as an argument requires 'super' access, which is granted by 'p4 protect'. In this case, login another user does not require a password, assuming that you (a 'super' user) had already been logged in.
Note: if the passed-in ticket StringBuffer originally has content it will remain there. The auth ticket will only be appended to the buffer. If a null ticket StringBuffer is passed in, the auth ticket will not be appended to it. The normal use case should be to pass in a new ticket StringBuffer.
user
- non-null Perforce user; login request is for this specified user.ticket
- if the ticket StringBuffer parameter is non-null, the auth
ticket that was returned by the login attempt is appended to
the passed-in ticket StringBuffer.opts
- LoginOptions describing the associated options; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.void logout(LoginOptions opts) throws P4JavaException
opts
- currently ignored; can be null.
P4JavaException
- if any error occurs in the processing of this
method.String changePassword(String oldPassword, String newPassword, String userName) throws P4JavaException
Note: setting the 'newPassword' to null or empty will delete the password.
oldPassword
- possibly-null or possibly-empty user's old password.
If null or empty, it assumes the current password is not set.newPassword
- non-null and non-empty user's new password.userName
- possibly-null possibly-null name of the target user whose
password will be changed to the new password. If null, the
current user will be used. If non-null, this command requires
'super' access granted by 'p4 protect'.
P4JavaException
- if any error occurs in the processing of this
method.InputStream execStreamCmd(String cmdName, String[] cmdArgs, Map<String,Object> inMap) throws P4JavaException
This method is intended for low-level commands in the spirit and format of the p4 command line interpreter, and offers a simple way to issue commands to the associated Perforce server without the overhead of the more abstract Java interfaces and methods.
Note that this method is intended for things like getting file contents, and may have unpredictable results on commands not originally expected to return i/o streams.
Note that this method does not allow you to set "usage" options for the command; these may be added later. Note also that although option arguments passed to this method must be in a form recognized by P4Java (as defined by the CmdSpec enum), that does not mean the method is being implemented by the interpreter -- the actual implementation depends on the options used to get the server object in the first place from the server factory.
cmdName
- the command to be issued; must be non-null, and correspond to a Perforce
command recognized by P4Java and defined in CmdSpec.cmdArgs
- the array of command arguments (options and file arguments, etc.) to be
sent to the Perforce server. These must be in the form used by the corresponding
p4 command line interpreter. Ignored if null.inMap
- an optional map to be sent to the server as standard input, using the
Python map format (-G) form. You must remember to issue the relevant
command-specific option to enable this if needed.
ConnectionException
- if the Perforce server is unreachable or is not
connected.
RequestException
- if the Perforce server encounters an error during
its processing of the request
AccessException
- if the Perforce server denies access to the caller
P4JavaException
InputStream execInputStringStreamCmd(String cmdName, String[] cmdArgs, String inString) throws P4JavaException
This method is intended for low-level commands in the spirit and format of the p4 command line interpreter, and offers a simple way to issue commands to the associated Perforce server without the overhead of the more abstract Java interfaces and methods.
Note that this method is intended for things like getting file contents, and may have unpredictable results on commands not originally expected to return i/o streams.
Note that this method does not allow you to set "usage" options for the command; these may be added later. Note also that although option arguments passed to this method must be in a form recognized by the p4 command line interpreter, that does not mean the method is being implemented by the interpreter -- the actual implementation depends on the options used to get the server object in the first place from the server factory.
cmdName
- the command to be issued; must be non-null, and correspond to a Perforce
command recognized by P4Java and defined in CmdSpec.cmdArgs
- the array of command arguments (options and file arguments, etc.) to be
sent to the Perforce server. These must be in the form used by the corresponding
p4 command line interpreter. Ignored if null.inString
- an optional string to be sent to the server as standard input unchanged
(this must be in the format expected by the server, typically as required
when using the "-i" flag to the p4 command line app for the same command).
You must remember to issue the relevant
command-specific option to enable this if needed.
P4JavaException
- if an error occurs processing this method and its parametersIDepot getDepot(String name) throws P4JavaException
name
- non-null name of the depot to be retrieved.
P4JavaException
- if any error occurs in the processing of this method.String createDepot(IDepot newDepot) throws P4JavaException
newDepot
- non-null IDepot object representing the depot to be created.
P4JavaException
- if any error occurs in the processing of this method.String deleteDepot(String name) throws P4JavaException
name
- non-null IDepot object representing the depot to be deleted
P4JavaException
- if any error occurs in the processing of this method.List<IFileSpec> getDepotFiles(List<IFileSpec> fileSpecs, GetDepotFilesOptions opts) throws P4JavaException
If client file names are given as file spec arguments the current Perforce client view mapping is used to list the corresponding depot files, if the client and view exist (if not, the results are undefined).
Normally, the head revision of each matching file is listed, but you can change this by specifying specific revisions or revision ranges. If the file spec argument includes a revision, then all files as of that revision are returned. If the file spec argument has a revision range, then only files selected by that revision range are returned, and the highest revision in the range is used for each file. If GetDepotFilesOptions.allRevs is true, all revisions within the specific range, rather than just the highest revision in the range, are returned.
See 'p4 help revisions' for help specifying revisions.
Note that the IFileSpec objects returned will have null client and local path components.
fileSpecs
- a non-null list of one or more IFileSpecs to be used
to qualify Perforce depot filesopts
- GetDepotFilesOptions describing the associated options; if null,
no options are set.
P4JavaException
- if any error occurs in the processing of this method.List<IFix> getFixes(List<IFileSpec> fileSpecs, GetFixesOptions opts) throws P4JavaException
Note that this method (unlike the main file list methods) throws an exception and stops at the first encountered error.
fileSpecs
- if given, restrict output to fixes associated with these filesopts
- FixListOptions object describing optional parameters; if null, no
options are set
P4JavaException
- if any error occurs in the processing of this method.List<IFileLineMatch> getMatchingLines(List<IFileSpec> fileSpecs, String pattern, MatchingLinesOptions options) throws P4JavaException
fileSpecs
- file specs to search for matching linespattern
- non-null string pattern to be passed to the grep commandoptions
- - Options to grep command
P4JavaException
- if any error occurs in the processing of this method.List<IFileLineMatch> getMatchingLines(List<IFileSpec> fileSpecs, String pattern, List<String> infoLines, MatchingLinesOptions options) throws P4JavaException
This method allows the user to retrieve useful info and warning message lines the Perforce server may generate in response to things like encountering a too-long line, etc., by passing in a non-null infoLines parameter.
fileSpecs
- file specs to search for matching linespattern
- non-null string pattern to be passed to the grep commandinfoLines
- if not null, any "info" lines returned from the server
(i.e. warnings about exceeded line lengths, etc.) will be put
into the passed-in list in the order they are received.options
- - Options to grep command
P4JavaException
- if any error occurs in the processing of this method.String createUser(IUser user, UpdateUserOptions opts) throws P4JavaException
user
- non-null IUser defining the new user to be created.opts
- UpdateUserOptions object describing optional parameters; if null, no
options are set
P4JavaException
- if any error occurs in the processing of this method.String updateUser(IUser user, UpdateUserOptions opts) throws P4JavaException
user
- non-null IUser defining the new user to be updated.opts
- UpdateUserOptions object describing optional parameters; if null, no
options are set
P4JavaException
- if any error occurs in the processing of this method.String deleteUser(String userName, UpdateUserOptions opts) throws P4JavaException
userName
- non-null name of the user to be deleted.opts
- UpdateUserOptions object describing optional parameters; if null, no
options are set
P4JavaException
- if any error occurs in the processing of this method.String renameUser(String oldUserName, String newUserName) throws P4JavaException
This includes all workspaces, labels, branches, streams, etc. which are owned by the user, all pending, shelved, and committed changes created by the user, any files that the user has opened or shelved, any fixes that the user made to jobs, any properties that apply to the user, any groups that the user is in, and the user record itself.
The username is not changed in descriptive text fields (such as job descriptions, change descriptions, or workspace descriptions), only where it appears as the owner or user field of the database record.
Protection table entries that apply to the user are updated only if the Name: field exactly matches the user name; if the Name: field contains wildcards, it is not modified.
The only job field that is processed is attribute code 103. If you have included the username in other job fields they will have to be processed separately.
The full semantics of this operation are found in the main 'p4 help' documentation.
This method requires 'super' access granted by 'p4 protect'.
oldUserName
- the old user name to be changed.newUserName
- the new user name to be changed to.
P4JavaException
- if an error occurs processing this method and its parameters.List<IUserSummary> getUsers(List<String> userList, GetUsersOptions opts) throws P4JavaException
Note that this implementation differs a bit from the p4 command line version in that it simply doesn't return any output for unmatched users.
userList
- if non-null, restrict output to users matching the passed-in
list of users.opts
- GetUsersOptions object describing optional parameters; if null, no
options are set
P4JavaException
- if any error occurs in the processing of this method.List<IUserGroup> getUserGroups(String userOrGroupName, GetUserGroupsOptions opts) throws P4JavaException
Note that the Perforce server considers it an error to have both indirect and displayValues parameters set true; this will cause the server to throw a RequestException with an appropriate usage message.
userOrGroupName
- if non-null, restrict the list to the specified group or username.opts
- GetUserGroupsOptions object describing optional parameters; if null, no
options are set
P4JavaException
- if any error occurs in the processing of this method.String createUserGroup(IUserGroup group, UpdateUserGroupOptions opts) throws P4JavaException
group
- group non-null IUserGroup to be created.opts
- UpdateUserGroupOptions object describing optional parameters; if null, no
options are set
P4JavaException
- if any error occurs in the processing of this method.String updateUserGroup(IUserGroup group, UpdateUserGroupOptions opts) throws P4JavaException
group
- group non-null IUserGroup to be updated.opts
- UpdateUserGroupOptions object describing optional parameters; if null, no
options are set
P4JavaException
- if any error occurs in the processing of this method.String deleteUserGroup(IUserGroup group, UpdateUserGroupOptions opts) throws P4JavaException
group
- non-null group to be deleted.opts
- UpdateUserGroupOptions object describing optional parameters; if null, no
options are set
P4JavaException
- if any error occurs in the processing of this method.List<IProtectionEntry> getProtectionEntries(List<IFileSpec> fileList, GetProtectionEntriesOptions opts) throws P4JavaException
Note that the behavior of this method is unspecified when using clashing options (e.g. having both userName and groupName set non-null). Consult the main Perforce admin documentation for semantics and usage.
Note that any annotations in the file paths will be ignored. The reason is the Perforce server 'protects' command requires a file list devoid of annotated revision specificity.
fileList
- if non-null, only those protection entries that apply to the
specified files are displayed.opts
- GetProtectionEntriesOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.InputStream getProtectionsTable() throws P4JavaException
P4JavaException
- if any error occurs in the processing of this method.List<IClientSummary> getClients(GetClientsOptions opts) throws P4JavaException
Note that this method returns light-weight IClientSummary objects rather than full IClient objects; if you need the heavy-weight IClient objects, you should use getClient(). Note also that the returned IClient objects are not "complete", in the sense that implementations are free to leave certain attributes null for performance reasons. In general, at least the client's name, root, description, last modification time are guaranteed correct.
opts
- GetClientsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.List<ILabelSummary> getLabels(List<IFileSpec> fileList, GetLabelsOptions opts) throws P4JavaException
Note that the ILabel objects returned here do not have views associated with them (i.e. the getViewMapping() method will return an empty list. If you need to get the view mapping for a specific label, use the getLabel() method.
fileList
- if not null, limits its report to labels that contain those filesopts
- GetLabelsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.String deleteLabel(String labelName, DeleteLabelOptions opts) throws P4JavaException
labelName
- non-null label nameopts
- DeleteLabelOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.List<IFileSpec> tagFiles(List<IFileSpec> fileSpecs, String labelName, TagFilesOptions opts) throws P4JavaException
fileSpecs
- non-null list of files to be tagged.labelName
- non-null label name to use for the tagging.opts
- TagFilesOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.List<IBranchSpecSummary> getBranchSpecs(GetBranchSpecsOptions opts) throws P4JavaException
Note that the IBranchSpecSummary objects returned here do not have branch view specs; you must call the getBranchSpec method on a specific branch to get valid view specs for a branch.
GetBranchSpecsOptions
- object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.String deleteBranchSpec(String branchSpecName, DeleteBranchSpecOptions opts) throws P4JavaException
branchSpecName
- non-null name of the branch spec to be deleted.opts
- DeleteBranchSpecOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.IClient getClientTemplate(String clientName, GetClientTemplateOptions opts) throws P4JavaException
clientName
- non-null Perforce client name.opts
- GetClientTemplateOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.String updateClient(IClient client, boolean force) throws P4JavaException
client
- non-null IClient defining the Perforce client to be updatedforce
- if true, tell the server to attempt to force the update regardless of
the consequences. You're on your own with this one...
P4JavaException
- if any error occurs in the processing of this method.String updateClient(IClient client, UpdateClientOptions opts) throws P4JavaException
client
- non-null IClient defining the Perforce client to be updatedopts
- UpdateClientOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.String deleteClient(String clientName, DeleteClientOptions opts) throws P4JavaException
clientName
- non-null name of the client to be deleted from the server.opts
- DeleteClientOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.String switchClientView(String templateClientName, String targetClientName, SwitchClientViewOptions opts) throws P4JavaException
templateClientName
- non-null name of the template client who's view
will be used for the target (or current) client to switched to.targetClientName
- possibly-null name of the target client whose view
will be changed to the template client's view. If null, the
current client will be used.opts
- SwitchClientViewOptions object describing optional parameters;
if null, no options are set.
P4JavaException
- if any error occurs in the processing of this method.String switchStreamView(String streamPath, String targetClientName, SwitchClientViewOptions opts) throws P4JavaException
streamPath
- non-null stream's path in a stream depot, of the form //depotname/streamname
who's view will be used for the target (or current) client to
switched to.targetClientName
- possibly-null name of the target client whose view
will be changed to the stream's view. If null, the current
client will be used.opts
- SwitchClientViewOptions object describing optional parameters;
if null, no options are set.
P4JavaException
- if any error occurs in the processing of this method.List<IFileAnnotation> getFileAnnotations(List<IFileSpec> fileSpecs, GetFileAnnotationsOptions opts) throws P4JavaException
fileSpecs
- non-null list of file specs to be annotated.opts
- GetFileAnnotationsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.List<IFileSpec> moveFile(IFileSpec fromFile, IFileSpec toFile, MoveFileOptions opts) throws P4JavaException
Note that this operation is not supported on servers earlier than 2009.1; any attempt to use this on earlier servers will result in a RequestException with a suitable message.
Note also that the move command is special in that almost alone among Perforce file-based commands, it does not allow full filespecs with version specifiers; these are currently quietly stripped off in the move command implementation here, which may lead to unexpected behaviour if you pass in specific versions expecting them to be honoured.
fromFile
- the original file; must be already open for edit.toFile
- the target file.opts
- MoveFileOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.List<IFileSpec> getDirectories(List<IFileSpec> fileSpecs, GetDirectoriesOptions opts) throws P4JavaException
fileSpecs
- non-null list of file specifications.opts
- GetDirectoriesOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.List<IChangelistSummary> getChangelists(List<IFileSpec> fileSpecs, GetChangelistsOptions opts) throws P4JavaException
fileSpecs
- if non-empty, limits the results to
changelists that affect the specified files. If the file specification
includes a revision range, limits its results to
submitted changelists that affect those particular revisionsopts
- GetChangelistsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this methodIChangelist getChangelist(int id, ChangelistOptions opts) throws P4JavaException
Corresponds fairly well to the p4 command-line command "change -o", and (like "change -o") does not include the associated changelist files (if any) in the returned changelist object -- you must use getChangelistFiles (or similar) to properly populate the changelist for submission, for example.
id
- the Perforce changelist ID; if id is IChangelist.DEFAULT, get the default
changelist for the current client (if available)opts
- ChangelistOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this methodString deletePendingChangelist(int id, ChangelistOptions opts) throws P4JavaException
Note: any IChangelist object associated with the given changelist will no longer be valid after this operation, and using that object may cause undefined results or even global disaster -- you must ensure that the object is not used again improperly.
id
- the ID of the Perforce pending changelist to be deleted.opts
- ChangelistOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this methodInputStream getChangelistDiffs(int id, GetChangelistDiffsOptions opts) throws P4JavaException
This is one of the guaranteed "live" method on this interface, and will return the diff output as it exists when called (rather than when the underlying implementation object was created). This can be an expensive method to evaluate, and can generate reams and reams (and reams) of output, so don't use it willy-nilly.
Note that unlike the corresponding command-line command, which keeps going in the face of errors by moving on to the next file (or whatever), any errors encountered in this method will cause an exception from this method at the first error, so plan accordingly....
id
- the ID of the target changelist.opts
- GetChangelistDiffsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.InputStream getFileContents(List<IFileSpec> fileSpecs, GetFileContentsOptions opts) throws P4JavaException
If file is specified as a Perforce client workspace file name, the client view is used to find the corresponding depot file. If a file argument has a revision, then all files as of that revision are streamed. If a file argument has a revision range, then only files selected by that revision range are streamed, and the highest revision in the range is used for each file. Normally, only the head revision is printed.
The underlying input stream is not guaranteed to support mark() and skip() operations, and in some cases can be absolutely ginormously long it is also not guaranteed to be printable, and will be in the charset encoding stored in the Perforce server.
You should close the InputStreamReader after use in order to release any underlying stream-related resources. Failure to do this may lead to the proliferation of temp files or long-term memory wastage or even leaks.
Note that unlike the corresponding command-line command, which keeps going in the face of errors by moving on to the next file (or whatever), any errors encountered in this method will cause an exception from this method at the first error, so plan accordingly....
fileSpecs
- non-null list of depot or client file specs defining files to be streamedopts
- GetFileContentsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.Map<IFileSpec,List<IFileRevisionData>> getRevisionHistory(List<IFileSpec> fileSpecs, GetRevisionHistoryOptions opts) throws P4JavaException
fileSpecs
- filespecs to be processed; if null or empty,
an empty Map is returned.opts
- GetRevisionHistoryOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.List<IUserSummary> getReviews(List<IFileSpec> fileSpecs, GetReviewsOptions opts) throws P4JavaException
fileSpecs
- if not null, use this list as the list of named files rather
than all files.opts
- GetReviewsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if any error occurs in the processing of this method.List<IReviewChangelist> getReviewChangelists(GetReviewChangelistsOptions opts) throws P4JavaException
If only the 'changelistId' option is provided, return a list of changelists that have not been reviewed before, equal or above the specified changelist#.
If only the 'counter' option is provided, return a list of changelists that have not been reviewed before, above the specified counter's changelist#.
If both the 'changelistId' and 'counter' options are specified, 'p4 review' sets the counter to that changelist# and produces no output. This functionality has been superceded by the 'p4 counter' command. The user must have permission to set counters.
opts
- GetReviewChangelistsOptions object describing optional parameters;
if null, no options are set.
P4JavaException
- if any error occurs in the processing of this method.List<IFileSpec> getOpenedFiles(List<IFileSpec> fileSpecs, OpenedFilesOptions opts) throws P4JavaException
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.List<IExtendedFileSpec> getExtendedFiles(List<IFileSpec> fileSpecs, GetExtendedFilesOptions opts) throws P4JavaException
This method is not intended for general use, and is not documented in detail here; consult the main Perforce fstat command documentation for detailed help. This method can be a real server and bandwidth resource hog, and should be used as sparingly as possible; alternatively, try to use it with as narrow a set of file specs as possible.
fileSpecs
- non-null list of Perforce file specification(s).opts
- GetExtendedFilesOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.List<IFileSpec> getSubmittedIntegrations(List<IFileSpec> fileSpecs, GetSubmittedIntegrationsOptions opts) throws P4JavaException
fileSpecs
- if null or omitted, all qualifying depot files are used.opts
- GetSubmittedIntegrations object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.List<IChangelist> getInterchanges(IFileSpec fromFile, IFileSpec toFile, GetInterchangesOptions opts) throws P4JavaException
fromFile
- if non-null, use this as the from-file specification.toFile
- if non-null, use this as the to-file specification.opts
- GetInterchangesOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.List<IChangelist> getInterchanges(String branchSpecName, List<IFileSpec> fromFileList, List<IFileSpec> toFileList, GetInterchangesOptions opts) throws P4JavaException
Note that depending on the specific options passed-in the fromFileList can be null or one file spec; the toFileList can be null, one or more file specs. The full semantics of this operation are found in the main 'p4 help interchanges' documentation.
branchSpecName
- if non-null and not empty, use this as the branch spec name.fromFileList
- if non-null and not empty, and biDirectional is true,
use this as the from file list.toFileList
- if non-null and not empty, use this as the to file list.opts
- GetInterchangesOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.List<IJob> getJobs(List<IFileSpec> fileSpecs, GetJobsOptions opts) throws P4JavaException
Note that this method (unlike the main file list methods) throws an exception and stops at the first encountered error.
fileSpecs
- if given, return only jobspecs affecting the given file(s).opts
- GetJobsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.List<IFix> fixJobs(List<String> jobIds, int changelistId, FixJobsOptions opts) throws P4JavaException
jobIdList
- non-null non-empty list of affected job IDs.changelistId
- changelist ID for affected changelist.opts
- FixJobsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.InputStream getFileDiffsStream(IFileSpec file1, IFileSpec file2, String branchSpecName, GetFileDiffsOptions opts) throws P4JavaException
With a branch view, fromFile and toFile are optional; fromFile limits the scope of the source file set, and toFile limits the scope of the target. If only one file argument is given, it is assumed to be toFile.
This method corresponds closely to the standard diff2 command, and that command's documentation should be consulted for the overall and detailed semantics.
As with other streams-based IServer methods, callers should ensure that the stream returned here is always explicitly closed after use; if not closed, the stream's associated temporary files managed by P4Java (if they exist) may not be properly deleted.
fromFile
- (optional, with a branch view) source file IFileSpectoFile
- (optional, with a branch view) target file IFileSpecbranchSpecName
- optional branch spec nameopts
- GetFileDiffsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.List<IFileDiff> getFileDiffs(IFileSpec file1, IFileSpec file2, String branchSpecName, GetFileDiffsOptions opts) throws P4JavaException
With a branch view, fromFile and toFile are optional; fromFile limits the scope of the source file set, and toFile limits the scope of the target. If only one file argument is given, it is assumed to be toFile.
This method corresponds closely to the standard diff2 command, and that command's documentation should be consulted for the overall and detailed semantics.
fromFile
- (optional, with a branch view) source file IFileSpectoFile
- (optional, with a branch view) target file IFileSpecbranchSpecName
- optional branch spec nameopts
- GetFileDiffsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.String getCounter(String counterName, CounterOptions opts) throws P4JavaException
Note that despite their name, counters can be any value, not just a number; hence the string return value here.
counterName
- non-null counter name.opts
- CounterOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.@Deprecated Map<String,String> getCounters(CounterOptions opts) throws P4JavaException
getCounters(com.perforce.p4java.option.server.GetCountersOptions)
opts
- CounterOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.Map<String,String> getCounters(GetCountersOptions opts) throws P4JavaException
opts
- GetCountersOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.String setCounter(String counterName, String value, CounterOptions opts) throws P4JavaException
counterName
- non-null counter name.value
- value the counter should be set to; can be null if the set operation
is an increment.opts
- CounterOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.List<Map<String,Object>> getExportRecords(ExportRecordsOptions opts) throws P4JavaException
See the main p4 export command documentation for full semantics and usage details.
Note that the 'skip*' options in ExportRecordsOptions are specific to P4Java only; they are not Perforce command options. These options are for field handling rules in the lower layers of P4Java. The field rules are for identifying the fields that should skip charset translation of their values; leaving their values as bytes instead of converting them to strings. Please see ExportRecordsOptions for usage details.
opts
- ExportRecordsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.void getStreamingExportRecords(ExportRecordsOptions opts, IStreamingCallback callback, int key) throws P4JavaException
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 suitably in much the same way as a user unpacks or processes the results from the other low-level exec methods like execMapCommand.
See the main p4 export command documentation for full semantics and usage details.
Note that the 'skip*' options in ExportRecordsOptions are specific to P4Java only; they are not Perforce command options. These options are for field handling rules in the lower layers of P4Java. The field rules are for identifying the fields that should skip charset translation of their values; leaving their values as bytes instead of converting them to strings. Please see ExportRecordsOptions for usage details.
opts
- ExportRecordsOptions object describing optional parameters; if null, no
options are set.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 an error occurs processing this method and its parameters.List<IFileSpec> setFileAttributes(List<IFileSpec> files, Map<String,String> attributes, SetFileAttributesOptions opts) throws P4JavaException
Note that this method only accepts String attribute values; if the attribute is intended to be binary, use the setHexValue setter on the associated SetFileAttributesOptions object and hexify the value, or, alternatively, use the stream version of this method. String input this way will be converted to bytes for the attributes before being sent to the Perforce server using the prevailing character set. If this is a problem, use hex encoding or the stream variant of this method
Note that attributes can only be removed from a file by setting the appropriate value of the name / value pair passed-in through the attributes map to null.
Note that the filespecs returned by this method, if valid, contain only the depot path and version information; no other field can be assumed to be valid. Note also that, while the p4 command line executable returns a list of results that amounts to the cross product of files and attributes, this method never returns more than one result for each file affected.
opts
- SetFileAttributesOptions object describing optional parameters; if null, no
options are set.attributes
- a non-null Map of attribute name / value pairs; if any value is null,
that attribute is removed.files
- non-null list of files to be affected
P4JavaException
- if an error occurs processing this method and its parameters.List<IFileSpec> setFileAttributes(List<IFileSpec> files, String attributeName, InputStream inStream, SetFileAttributesOptions opts) throws P4JavaException
This method is intended to allow for unmediated binary definitions of file attribute contents, and is typically used for things like thumbnails that are too big to be conveniently handled using hex conversion with the strings-based version of this method. Absolutely no interpretation is done on the stream -- it's bytes all the way... there is also no hard limit to the size of the stream that contains the attribute value, but the consequences on both the enclosing app and the associated Perforce server of too-large attributes may be severe. Typical 8K thumbnails are no problem at all, but something in the megabyte range or larger might be problematic at both ends.
Note that this method will leave the passed-in stream open, but (in general) the stream's read pointer will be at the end of the stream when this method returns. You are responsible for closing the stream if necessary after the call; you are also responsible for ensuring that the read pointer is where you want it to be in the stream (i.e. where you want the method to start reading the attribute value from) when you pass in the stream. I/O errors while reading the stream will be logged, but otherwise generally ignored -- you must check the actual results of this operation yourself.
Note that the server currently only supports setting file attributes using a stream for one filespec at a time, but for reasons of symmetry you must pass in a list of (one) filespec. Note that this doesn't necessarily mean only one file is affected in the depot, just that only one file spec is used to specify the affected file(s).
Note that attributes can only be removed from a file by setting the appropriate value of the name / value pair passed-in through the attributes map to null.
Note that the filespecs returned by this method, if valid, contain only the depot path and version information; no other field can be assumed to be valid. Note also that, while the p4 command line executable returns a list of results that amounts to the cross product of files and attributes, this method never returns more than one result for each file affected.
opts
- SetFileAttributesOptions object describing optional parameters; if null, no
options are set.attributeName
- the non-null name of the attribute to be set.inStream
- non-null InputStream ready for reading the attribute value from.files
- non-null list of files to be affected.
P4JavaException
- if an error occurs processing this method and its parameters.List<ServerConfigurationValue> showServerConfiguration(String serverName, String variableName) throws P4JavaException
Note: you must be an admin or super user for this command to work.
serverName
- if not null, only show values associated with the named server; if
equals ServerConfigurationValue.ALL_SERVERS, show values associated
with all participating servers.variableName
- if not null, only show the value of this named config variable.
P4JavaException
- if an error occurs processing this method and its parameters.String setServerConfigurationValue(String name, String value) throws P4JavaException
Expected variable name formats are as specified in the main Perforce documentation: [servername + #] variablename -- but this is not enforced by P4Java itself.
Note: you must be an admin or super user for this command to work.
name
- non-null config variable name.value
- if null, unset the named variable; otherwise, set it to the passed-in
string value.
P4JavaException
- if an error occurs processing this method and its parameters.List<IDiskSpace> getDiskSpace(List<String> filesystems) throws P4JavaException
If no arguments are specified, disk space information for all relevant file systems is displayed; otherwise the output is restricted to the named filesystem(s).
filesystems: P4ROOT | P4JOURNAL | P4LOG | TEMP | journalPrefix | depot See the main 'p4 diskspace' command documentation for full semantics and usage details.
filesystems
- if not null, specify a list of Perforce named filesystem(s).
P4JavaException
- if an error occurs processing this method and its parameters.String createProtectionEntries(List<IProtectionEntry> entryList) throws P4JavaException
Each entry in the table contains a protection mode, a group/user indicator, the group/user name, client host ID and a depot file path pattern. Users receive the highest privilege that is granted on any entry. Warning: this will overwrite the existing protections table data.
entryList
- non-null list of protection entries.
P4JavaException
- if an error occurs processing this method and its parameters.String updateProtectionEntries(List<IProtectionEntry> entryList) throws P4JavaException
Each entry in the table contains a protection mode, a group/user indicator, the group/user name, client host ID and a depot file path pattern. Users receive the highest privilege that is granted on any entry.
Warning: this will overwrite the existing protections table data.
entryList
- non-null list of protection entries.
P4JavaException
- if an error occurs processing this method and its parameters.List<IObliterateResult> obliterateFiles(List<IFileSpec> fileSpecs, ObliterateFilesOptions opts) throws P4JavaException
Obliterate retrieves the disk space used by the obliterated files in the archive and clears the files from the metadata that is maintained by the server. Files in client workspaces are not physically affected, but they are no longer under Perforce control.
By default, obliterate displays a preview of the results. To execute the operation, you must specify the -y flag (opts.executeObliterate). Obliterate requires 'admin' access, which is granted by 'p4 protect'.
The "obliterate" command returns an IOblterateResult for each file passed into the command. Each IObliterateResult object contains a summary of various types of records deleted (or added) and a non-null list of returned filespecs have the equivalent of purgeFile and purgeRev output in the depotPath and endRevision fileds of the associated filespecs, and that no other file spec fields are valid. Sometimes, the server doesn't return any "purgeFile" and "purgeRev" values.
Note: error and info messages are stored in filespec objects.
fileSpecs
- non-null list of files to be obliteratedopts
- possibly-null ObliterateFilesOptions object specifying method options.
P4JavaException
- if an error occurs processing this method and its parametersList<IStreamSummary> getStreams(List<String> streamPaths, GetStreamsOptions opts) throws P4JavaException
Note that the IStreamSummary objects returned here do not have stream paths. You must call the getStream method on a specific stream to get valid paths for a stream.
streamPaths
- if specified, the list of streams is limited to those
matching the supplied list of stream paths, of the form //depotname/streamnameGetStreamsOptions
- object describing optional parameters; if null,
no options are set.
P4JavaException
- if any error occurs in the processing of this method.String createStream(IStream stream) throws P4JavaException
stream
- non-null IStream object representing the stream to be created.
P4JavaException
- if any error occurs in the processing of this method.IStream getStream(String streamPath) throws P4JavaException
streamPath
- non-null stream's path in a stream depot, of the form //depotname/streamname
P4JavaException
- if any error occurs in the processing of this method.IStream getStream(String streamPath, GetStreamOptions opts) throws P4JavaException
streamPath
- 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.String updateStream(IStream stream, StreamOptions opts) throws P4JavaException
stream
- 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.String deleteStream(String streamPath, StreamOptions opts) throws P4JavaException
streamPath
- 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.IBranchSpec getBranchSpec(String name, GetBranchSpecOptions opts) throws P4JavaException
Note that since the Perforce server usually interprets asking for a non-existent branch spec as equivalent to asking for a template for a new branch spec, you will normally always get back a result here. It is best to first use the getBranchSpecList method to see if the branch spec exists, then use this method to retrieve a specific branch spec once you know it exists.
name
- non-null Perforce branch name.opts
- GetBranchSpecOptions object describing optional parameters;
if null, no options are set.
P4JavaException
- if any error occurs in the processing of this method.IStreamIntegrationStatus getStreamIntegrationStatus(String stream, StreamIntegrationStatusOptions opts) throws P4JavaException
Pending integrations are shown only if they are expected by the stream; that is, only if they are warranted by the stream's type and its fromParent/toParent flow options. (See 'p4 help stream'.)
stream
- the stream's path in a stream depot, of the form //depotname/streamname.opts
- StreamIntegrationStatusOptions object describing optional parameters;
if null, no options are set.
P4JavaException
- if an error occurs processing this method and its parameters.ILogTail getLogTail(LogTailOptions opts) throws P4JavaException
The data is returned in the tagged field 'data', in blocks of the size specified by the blocksize parameter. The 'offset' field contains the start of the next block, which can be used with -s to request the next batch of error log data.
Note that this command requires that the user be an operator or have 'super' access, which is granted by 'p4 protect'.
opts
- LogTailOptions object describing optional parameters;
if null, no options are set.
P4JavaException
- if an error occurs processing this method and its parameters.String getErrorStr(Map<String,Object> map)
RPC impl errors come across the wire as a map in the form usually like this:
fmt0=Access for user '%user%' has not been enabled by 'p4 protect'., func=client-Message, user=nouser, code0=822483067Note that the code0 entry will be used to get the severity level; the fmt0 entry contains the message.
map
- Perforce command results map
String getErrorOrInfoStr(Map<String,Object> map)
RPC impl errors come across the wire as a map in the form usually like this:
fmt0=Access for user '%user%' has not been enabled by 'p4 protect'., func=client-Message, user=nouser, code0=822483067Note that the code0 entry will be used to get the severity level; the fmt0 entry contains the message.
map
- Perforce command results map
String getInfoStr(Map<String,Object> map)
RPC impl errors come across the wire as a map in the form usually like this:
fmt0=Access for user '%user%' has not been enabled by 'p4 protect'., func=client-Message, user=nouser, code0=822483067Note that the code0 entry will be used to get the severity level; the fmt0 entry contains the message.
map
- Perforce command results map
String getTrust() throws P4JavaException
Note that this fingerprint is generated from the connection, it may not be the same as the one (if any) stored in the trust file.
P4JavaException
- if an error occurs processing this method and its
parameters.String addTrust(TrustOptions opts) throws P4JavaException
Note that an exception would be thrown if there is an identity change detected. If you want to trust the new key use the 'force' option.
opts
- TrustOptions object describing optional parameters; if null,
no options are set.
P4JavaException
- if an error occurs processing this method and its
parameters.String addTrust(String fingerprintValue) throws P4JavaException
fingerprintValue
- non-null fingerprint value to be added.
P4JavaException
- if an error occurs processing this method and its
parameters.String addTrust(String fingerprintValue, TrustOptions opts) throws P4JavaException
fingerprintValue
- non-null fingerprint value to be added.opts
- TrustOptions object describing optional parameters; if null,
no options are set.
P4JavaException
- if an error occurs processing this method and its
parameters.String removeTrust() throws P4JavaException
P4JavaException
- if an error occurs processing this method and its
parameters.String removeTrust(TrustOptions opts) throws P4JavaException
opts
- TrustOptions object describing optional parameters; if null,
no options are set.
P4JavaException
- if an error occurs processing this method and its
parameters.List<Fingerprint> getTrusts() throws P4JavaException
P4JavaException
- if an error occurs processing this method and its
parameters.List<Fingerprint> getTrusts(TrustOptions opts) throws P4JavaException
opts
- TrustOptions object describing optional parameters; if null,
no options are set.
P4JavaException
- if an error occurs processing this method and its
parameters.List<IServerProcess> getServerProcesses(GetServerProcessesOptions opts) throws P4JavaException
opts
- GetServerProcessesOptions object describing optional parameters;
if null, no options are set.
P4JavaException
- if an error occurs processing this method and its parameters.List<IFileSpec> duplicateRevisions(IFileSpec fromFile, IFileSpec toFile, DuplicateRevisionsOptions opts) throws P4JavaException
Duplicate revisions as if they always existed. All aspects of the source revisions are mirrored to the target revisions, including changelist number, date, attributes, and contents. The target revision must not already exist and the target file must not be opened (for any operation) on any client.
Note that integration records are duplicated as well. 'p4 duplicate' followed by a 'p4 obliterate' (of the source revisions) is in effect a deep rename operation, with any source revision in client workspace or labels forgotten. The full semantics of this operation are found in the main 'p4 help duplicate' documentation.
fromFile
- non-null source file.toFile
- non-null target file.opts
- possibly-null CopyFilesOptions object specifying method options.
P4JavaException
- if an error occurs processing this method and its parameters.String unload(UnloadOptions opts) throws P4JavaException
Note that by default, users can only unload their own clients or labels. The -f flag requires 'admin' access, which is granted by 'p4 protect'. The full semantics of this operation are found in the main 'p4 help unload' documentation.
opts
- possibly-null UnloadOptions object specifying method options.
P4JavaException
- if an error occurs processing this method and its parameters.String reload(ReloadOptions opts) throws P4JavaException
Note that by default, users can only unload their own clients or labels. The -f flag requires 'admin' access, which is granted by 'p4 protect'. The full semantics of this operation are found in the main 'p4 help unload' documentation.
opts
- possibly-null ReloadOptions object specifying method options.
P4JavaException
- if an error occurs processing this method and its parameters.Map<String,String> getKeys(GetKeysOptions opts) throws P4JavaException
opts
- GetKeysOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.String setKey(String keyName, String value, KeyOptions opts) throws P4JavaException
keyName
- non-null key name.value
- value the key should be set to; can be null if the set operation
is an increment.opts
- KeyOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.String getKey(String keyName) throws P4JavaException
keyName
- non-null key name.
P4JavaException
- if an error occurs processing this method and its parameters.String deleteKey(String keyName) throws P4JavaException
keyName
- non-null key name.
P4JavaException
- if an error occurs processing this method and its parameters.List<String> searchJobs(String words, SearchJobsOptions opts) throws P4JavaException
Note that this is an 'undoc' Perforce command.
See also 'p4 help index'.
words
- non-null words to be searched.opts
- SearchJobsOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.List<IProperty> getProperty(GetPropertyOptions opts) throws P4JavaException
The -A flag require that the user have 'admin' access granted by 'p4 protect'.
Note that specifying the -n flag when using the -l flag substantially improves the performance of this command.
opts
- GetPropertyOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.String setProperty(String name, String value, PropertyOptions opts) throws P4JavaException
This method require that the user have 'admin' access granted by 'p4 protect'.
name
- non-null property name.value
- property value.opts
- PropertyOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.String deleteProperty(String name, PropertyOptions opts) throws P4JavaException
This method require that the user have 'admin' access granted by 'p4 protect'.
name
- non-null property name.opts
- PropertyOptions object describing optional parameters; if null, no
options are set.
P4JavaException
- if an error occurs processing this method and its parameters.List<IFileSize> getFileSizes(List<IFileSpec> fileSpecs, GetFileSizesOptions opts) throws P4JavaException
For specified file specification, get the depot file name, revision, file count and file size. If you use client syntax for the file specification, the view mapping is used to list the corresponding depot files.
fileSpecs
- filespecs to be processed; if null or empty, an empty list
is returned.opts
- GetFileSizesOptions object describing optional parameters; if null,
no options are set.
P4JavaException
- if any error occurs in the processing of this method.void journalWait(JournalWaitOptions opts) throws P4JavaException
Note that this method uses a deep undoc 'p4 journalwait [-i]' command.
opts
- JournalWaitOptions object describing optional parameters;
if null, no options are set.
P4JavaException
- if an error occurs processing this method and its parameters.InputStream getTriggersTable() throws P4JavaException
This method require that the user have 'super' access granted by 'p4 protect'.
P4JavaException
- if any error occurs in the processing of this method.List<ITriggerEntry> getTriggerEntries() throws P4JavaException
This method require that the user have 'super' access granted by 'p4 protect'.
P4JavaException
- if any error occurs in the processing of this method.String createTriggerEntries(List<ITriggerEntry> entryList) throws P4JavaException
This method require that the user have 'super' access granted by 'p4 protect'.
Warning: this will overwrite the existing triggers table data.
entryList
- non-null list of trigger entries.
P4JavaException
- if an error occurs processing this method and its parameters.String updateTriggerEntries(List<ITriggerEntry> entryList) throws P4JavaException
This method require that the user have 'super' access granted by 'p4 protect'.
Warning: this will overwrite the existing triggers table data.
entryList
- non-null list of trigger entries.
P4JavaException
- if an error occurs processing this method and its parameters.List<IFileSpec> getShelvedFiles(int changelistId) throws P4JavaException
changelistId
- numeric pending changelist identifier
P4JavaException
- if an error occurs processing this method and its parameters.List<IExtendedFileSpec> verifyFiles(List<IFileSpec> fileSpecs, VerifyFilesOptions opts) throws P4JavaException
This method require that the user be an operator or have 'admin' access, which is granted by 'p4 protect'.
fileSpecs
- filespecs to be processed; if null or empty, an empty list
is returned.opts
- VerifyFilesOptions object describing optional parameters; if null,
no options are set.
P4JavaException
- if an error occurs processing this method and its parameters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |