Package | Description |
---|---|
com.perforce.p4java.client |
Provides interfaces for accessing and manipulating Perforce client workspaces and associated objects.
|
com.perforce.p4java.common.base | |
com.perforce.p4java.core |
Provides interfaces and classes for defining and accessing Perforce objects
such as jobs, changelists, etc., and, through the file sub-package, Perforce
files.
|
com.perforce.p4java.core.file |
Provides interfaces and classes for defining and accessing Perforce depot and workspace files.
|
com.perforce.p4java.exception |
Provides exception and error classes for signaling and handling user, internal, and Perforce server errors.
|
com.perforce.p4java.impl.generic.core |
Provides standard implementation classes for the com.perforce.p4java.core interfaces.
|
com.perforce.p4java.impl.generic.core.file |
Provides standard implementation classes for the com.perforce.p4java.core.file interfaces.
|
com.perforce.p4java.impl.mapbased.client | |
com.perforce.p4java.impl.mapbased.rpc | |
com.perforce.p4java.impl.mapbased.rpc.connection | |
com.perforce.p4java.impl.mapbased.rpc.func.client | |
com.perforce.p4java.impl.mapbased.rpc.func.proto | |
com.perforce.p4java.impl.mapbased.rpc.packet | |
com.perforce.p4java.impl.mapbased.rpc.stream | |
com.perforce.p4java.impl.mapbased.server | |
com.perforce.p4java.impl.mapbased.server.cmd | |
com.perforce.p4java.server |
Provides interfaces and classes for accessing Perforce SCM servers and associated server-level services.
|
com.perforce.p4java.server.delegator |
Modifier and Type | Method and Description |
---|---|
java.util.List<IFileSpec> |
IClient.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.
|
IChangelist |
IClient.createChangelist(IChangelist newChangelist)
Create a new changelist for this Perforce client in the associated Perforce server.
|
java.util.List<IFileSpec> |
IClient.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> |
IClient.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> |
IClient.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.
|
java.util.List<IRepo> |
IClient.getRepos()
Gets the repos mapped within the client's view.
|
java.util.List<IFileSpec> |
IClient.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> |
IClient.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> |
IClient.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> |
IClient.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> |
IClient.lockFiles(java.util.List<IFileSpec> fileSpecs,
int changeListId)
Lock an opened file against changelist submission.
|
java.util.List<IFileSpec> |
IClient.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> |
IClient.reopenFiles(java.util.List<IFileSpec> fileSpecs,
int changeListId,
java.lang.String fileType)
Reopen Perforce files in a new changelist.
|
java.util.List<IFileSpec> |
IClient.resolvedFiles(java.util.List<IFileSpec> fileSpecs,
boolean showBaseRevision)
Return a list of files resolved but not submitted for this client.
|
IFileSpec |
IClient.resolveFile(IFileSpec targetFile,
java.io.InputStream sourceStream)
Resolve a file integration by using the contents of the sourceStream InputStream
as the resolve result.
|
IFileSpec |
IClient.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> |
IClient.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> |
IClient.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> |
IClient.shelveChangelist(IChangelist list)
Shelve the file(s) in a pending changelist.
|
java.util.List<IFileSpec> |
IClient.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> |
IClient.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> |
IClient.unlockFiles(java.util.List<IFileSpec> fileSpecs,
int changeListId,
boolean force)
Release locked files but leave them open.
|
java.util.List<IFileSpec> |
IClient.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> |
IClient.where(java.util.List<IFileSpec> fileSpecs)
For each of the passed-in file specs, show how the named file maps through
the client view.
|
Modifier and Type | Method and Description |
---|---|
static void |
P4JavaExceptions.throwConnectionException(java.lang.String message,
java.lang.Object... args) |
static void |
P4JavaExceptions.throwConnectionException(java.lang.Throwable cause) |
static void |
P4JavaExceptions.throwConnectionException(java.lang.Throwable cause,
java.lang.String message,
java.lang.Object... args) |
static void |
P4JavaExceptions.throwConnectionExceptionIfConditionFails(boolean expression,
java.lang.String message,
java.lang.Object... args)
If the check
expression fails; then ConnectionException will throw
with given error message message |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
IChangelist.getCachedJobIdList()
Return a cached list of job Id's associated with this changelist.
|
java.io.InputStream |
IChangelist.getDiffs(DiffType diffType)
Get an InputStream onto the file diffs associated with this changelist.
|
java.util.List<IFileSpec> |
IChangelist.getFiles(boolean refresh)
Get the list of files associated with this changelist, optionally refreshing
the list from the server.
|
java.util.List<java.lang.String> |
IChangelist.getJobIds()
Return a list of Perforce jobs IDs for jobs marked as associated with
this changelist.
|
java.util.List<IJob> |
IChangelist.getJobs()
Return a list of Perforce jobs marked as associated with
this changelist.
|
void |
IChangelist.refresh()
Refresh this changelist directly from the server.
|
void |
IServerResource.refresh()
Refresh the underlying object from the Perforce server.
|
java.util.List<IFileSpec> |
IChangelist.submit(boolean reOpen)
Submit this changelist.
|
java.util.List<IFileSpec> |
IChangelist.submit(boolean reOpen,
java.util.List<java.lang.String> jobIds,
java.lang.String jobStatus)
Submit this changelist and associate it with the passed-in jobs.
|
void |
ILabel.update()
Update (or even create) this label on the associated Perforce server,
if that server has been set for this label.
|
void |
IServerResource.update()
Update the Perforce server object associated with the underlying P4Java object,
if possible.
|
void |
IUser.update(boolean force)
Updates this user on the Perforce server; if force is
true, force the change (requires super user / admin
privileges to work properly).
|
void |
IServerResource.update(boolean force)
Force (if true) update the Perforce server object associated with the underlying
P4Java object, if possible.
|
void |
IServerResource.update(Options opts)
Update the Perforce server object associated with the underlying P4Java object
and its options, if possible.
|
java.lang.String |
ILabel.updateOnServer()
Deprecated.
use update() instead.
|
java.lang.String |
IJob.updateOnServer()
Deprecated.
use the IServerResource update method instead if possible.
|
void |
IChangelist.updateOnServer(boolean refresh)
Deprecated.
use update optionally followed by refresh()
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IFileAnnotation> |
IFileSpec.getAnnotations(DiffType wsOptions,
boolean allResults,
boolean useChangeNumbers,
boolean followBranches)
Get the file annotations associated with this file.
|
java.io.InputStream |
IFileSpec.getContents(boolean noHeaderLine)
Get the contents of this specific Perforce file revision from the Perforce
depot as an InputStream.
|
java.util.Map<IFileSpec,java.util.List<IFileRevisionData>> |
IFileSpec.getRevisionHistory(int maxRevs,
boolean contentHistory,
boolean includeInherited,
boolean longOutput,
boolean truncatedLongOutput)
Get the revision history of this Perforce file.
|
java.util.List<IFileSpec> |
IFileSpec.move(int changelistId,
boolean listOnly,
boolean noClientMove,
java.lang.String fileType,
IFileSpec toFile)
Move this file if it's already opened for edit or add (the fromFile) to the destination
file (the toFile).
|
Modifier and Type | Class and Description |
---|---|
class |
ConnectionNotConnectedException
Special subclass of ConnectionException to signal the case of
attempting to issue a Perforce server command with an IServer
that hasn't been explicitly connected to that Perforce server.
|
class |
TrustException
Special subclass of ConnectionException to signal the case of attempting to
establish trust for a SSL connection to the Perforce server.
|
Modifier and Type | Method and Description |
---|---|
void |
ServerResource.complete() |
void |
JobSpec.complete()
Completing a job spec calls
JobSpec.refresh() and updates the
#isComplete() flag. |
java.util.List<java.lang.String> |
Changelist.getCachedJobIdList() |
java.io.InputStream |
Changelist.getDiffs(DiffType diffType) |
java.util.List<IFileSpec> |
Changelist.getFiles(boolean refresh) |
java.util.List<IFileSpec> |
Changelist.getFiles(boolean refresh,
boolean bypassServer) |
java.util.List<java.lang.String> |
Changelist.getJobIds() |
java.util.List<IJob> |
Changelist.getJobs() |
void |
Changelist.refresh() |
void |
Job.refresh()
This method will refresh by getting the complete job model.
|
void |
ServerResource.refresh() |
void |
UserGroup.refresh() |
void |
Label.refresh()
This method will refresh by getting the complete label model.
|
void |
BranchSpec.refresh()
This method will refresh by getting the complete branch model.
|
void |
User.refresh() |
void |
JobSpec.refresh()
This method will refresh by getting the complete job spec model.
|
void |
Stream.refresh()
This method will refresh by getting the complete stream model.
|
java.util.List<IFileSpec> |
Changelist.submit(boolean reOpen) |
java.util.List<IFileSpec> |
Changelist.submit(boolean reOpen,
java.util.List<java.lang.String> jobIds,
java.lang.String jobStatus) |
void |
Changelist.update() |
void |
Job.update() |
void |
ServerResource.update() |
void |
UserGroup.update() |
void |
Label.update() |
void |
BranchSpec.update() |
void |
User.update() |
void |
Stream.update() |
void |
Changelist.update(boolean force) |
void |
ServerResource.update(boolean force) |
void |
User.update(boolean force) |
void |
Stream.update(boolean force) |
void |
Changelist.update(Options opts) |
void |
ServerResource.update(Options opts) |
java.lang.String |
Job.updateOnServer()
NOTE: do not use this method if the server field has not been set.
|
java.lang.String |
Label.updateOnServer() |
void |
Changelist.updateOnServer(boolean refresh) |
Constructor and Description |
---|
BranchSpec(IBranchSpecSummary summary)
Construct a new BranchSpec from the passed-in summary branch spec.
|
Changelist(IChangelistSummary summary,
IOptionsServer server,
boolean refresh)
Construct a new Changelist using the passed-in changelist as a template.
|
Changelist(IChangelistSummary summary,
IServer server,
boolean refresh)
Deprecated.
|
Label(ILabelSummary labelSummary)
Given an ILabelSummary object, construct a new Label object from it.
|
Stream(IStreamSummary summary)
Construct a new Stream from the passed-in summary stream spec.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<IFileAnnotation> |
FileSpec.getAnnotations(DiffType wsOptions,
boolean allResults,
boolean useChangeNumbers,
boolean followBranches) |
java.io.InputStream |
FileSpec.getContents(boolean noHeaderLine) |
java.util.Map<IFileSpec,java.util.List<IFileRevisionData>> |
FileSpec.getRevisionHistory(int maxRevs,
boolean contentHistory,
boolean includeInherited,
boolean longOutput,
boolean truncatedLongOutput) |
java.util.List<IFileSpec> |
FileSpec.move(int changelistId,
boolean listOnly,
boolean noClientMove,
java.lang.String fileType,
IFileSpec toFile) |
Modifier and Type | Method and Description |
---|---|
java.util.List<IFileSpec> |
Client.addFiles(java.util.List<IFileSpec> fileSpecs,
boolean noUpdate,
int changeListId,
java.lang.String fileType,
boolean useWildcards) |
void |
Client.complete()
Completing a client calls
Client.refresh() . |
IChangelist |
Client.createChangelist(IChangelist newChangelist) |
java.util.List<IFileSpec> |
Client.deleteFiles(java.util.List<IFileSpec> fileSpecs,
int changeListId,
boolean noUpdate) |
java.util.List<IFileSpec> |
Client.editFiles(java.util.List<IFileSpec> fileSpecs,
boolean noUpdate,
boolean bypassClientUpdate,
int changeListId,
java.lang.String fileType) |
java.util.List<IFileSpec> |
Client.getDiffFiles(java.util.List<IFileSpec> fileSpecs,
int maxFiles,
boolean diffNonTextFiles,
boolean openedDifferentMissing,
boolean openedForIntegrate,
boolean unopenedMissing,
boolean unopenedDifferent,
boolean unopenedWithStatus,
boolean openedSame) |
java.util.List<IRepo> |
Client.getRepos() |
java.util.List<IFileSpec> |
Client.graphHaveList(java.util.List<IFileSpec> fileSpecs) |
java.util.List<IFileSpec> |
Client.haveList(java.util.List<IFileSpec> fileSpecs) |
java.util.List<IFileSpec> |
Client.integrateFiles(int changeListId,
boolean showActionsOnly,
IntegrationOptions integOpts,
java.lang.String branchSpec,
IFileSpec fromFile,
IFileSpec toFile) |
java.util.List<IFileSpec> |
Client.labelSync(java.util.List<IFileSpec> fileSpecs,
java.lang.String labelName,
boolean noUpdate,
boolean addFiles,
boolean deleteFiles) |
java.util.List<IFileSpec> |
Client.lockFiles(java.util.List<IFileSpec> fileSpecs,
int changeListId) |
java.util.List<IFileSpec> |
Client.openedFiles(java.util.List<IFileSpec> fileSpecs,
int maxFiles,
int changeListId) |
void |
Client.refresh()
This method will refresh by getting the complete client model.
|
java.util.List<IFileSpec> |
Client.reopenFiles(java.util.List<IFileSpec> fileSpecs,
int changeListId,
java.lang.String fileType) |
java.util.List<IFileSpec> |
Client.resolvedFiles(java.util.List<IFileSpec> fileSpecs,
boolean showBaseRevision) |
IFileSpec |
Client.resolveFile(IFileSpec targetFile,
java.io.InputStream sourceStream) |
IFileSpec |
Client.resolveFile(IFileSpec targetFile,
java.io.InputStream sourceStream,
boolean useTextualMerge,
int startFromRev,
int endFromRev) |
java.util.List<IFileSpec> |
Client.resolveFilesAuto(java.util.List<IFileSpec> fileSpecs,
boolean safeMerge,
boolean acceptTheirs,
boolean acceptYours,
boolean showActionsOnly,
boolean forceResolve) |
java.util.List<IFileSpec> |
Client.revertFiles(java.util.List<IFileSpec> fileSpecs,
boolean noUpdate,
int changeListId,
boolean revertOnlyUnchanged,
boolean noRefresh) |
java.util.List<IFileSpec> |
Client.shelveChangelist(IChangelist list) |
java.util.List<IFileSpec> |
Client.shelveChangelist(int changelistId,
java.util.List<IFileSpec> fileSpecs,
boolean forceUpdate,
boolean replace,
boolean discard) |
java.util.List<IFileSpec> |
Client.sync(java.util.List<IFileSpec> fileSpecs,
boolean forceUpdate,
boolean noUpdate,
boolean clientBypass,
boolean serverBypass) |
java.util.List<IFileSpec> |
Client.unlockFiles(java.util.List<IFileSpec> fileSpecs,
int changeListId,
boolean force) |
java.util.List<IFileSpec> |
Client.unshelveChangelist(int shelveChangelistId,
java.util.List<IFileSpec> fileSpecs,
int clientChangelistId,
boolean forceOverwrite,
boolean previewOnly) |
void |
Client.update() |
void |
Client.update(boolean force) |
java.util.List<IFileSpec> |
Client.where(java.util.List<IFileSpec> fileSpecs) |
Constructor and Description |
---|
Client(IClientSummary clientSummary,
boolean refresh)
Construct a new Client object using the passed-in client summary object as a partial
template.
|
Client(IClientSummary clientSummary,
IServer serverImpl,
boolean refresh)
Construct a new Client object using the passed-in client summary object as a partial
template along with the passed-in IServer object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RpcServer.checkFingerprint(RpcConnection rpcConnection)
Check the fingerprint of the Perforce server SSL connection
|
void |
RpcServer.connect()
Try to establish an actual RPC connection to the target Perforce server.
|
void |
NtsServerImpl.connect()
Try to establish an actual RPC connection to the target Perforce server.
|
void |
OneShotServerImpl.connect() |
void |
RpcServer.disconnect()
Try to cleanly disconnect from the Perforce server at the other end of
the current connection (with the emphasis on "cleanly").
|
void |
NtsServerImpl.disconnect()
Try to cleanly disconnect from the Perforce server at the other end
of the current connection (with the emphasis on "cleanly").
|
void |
OneShotServerImpl.disconnect() |
java.util.Map<java.lang.String,java.lang.Object>[] |
NtsServerImpl.execMapCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap) |
java.util.Map<java.lang.String,java.lang.Object>[] |
OneShotServerImpl.execMapCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap) |
protected java.util.Map<java.lang.String,java.lang.Object>[] |
OneShotServerImpl.execMapCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap,
java.lang.String inString,
boolean ignoreCallbacks,
IStreamingCallback callback,
int callbackKey) |
protected java.util.Map<java.lang.String,java.lang.Object>[] |
NtsServerImpl.execMapCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap,
java.lang.String inString,
boolean ignoreCallbacks,
IStreamingCallback callback,
int callbackKey,
IFilterCallback filterCallback) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
NtsServerImpl.execMapCmdList(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
OneShotServerImpl.execMapCmdList(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap) |
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
NtsServerImpl.execMapCmdList(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap,
java.lang.String inString,
boolean ignoreCallbacks,
IStreamingCallback callback,
int callbackKey,
IFilterCallback filterCallback,
IParallelCallback parallelCallback) |
protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
OneShotServerImpl.execMapCmdList(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap,
java.lang.String inString,
boolean ignoreCallbacks,
IStreamingCallback callback,
int callbackKey,
IFilterCallback filterCallback,
IParallelCallback parallelCallback) |
java.util.Map<java.lang.String,java.lang.Object>[] |
NtsServerImpl.execQuietMapCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap) |
java.util.Map<java.lang.String,java.lang.Object>[] |
OneShotServerImpl.execQuietMapCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap) |
java.io.InputStream |
NtsServerImpl.execQuietStreamCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs) |
java.io.InputStream |
OneShotServerImpl.execQuietStreamCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs) |
java.io.InputStream |
NtsServerImpl.execStreamCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs) |
java.io.InputStream |
OneShotServerImpl.execStreamCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs) |
protected java.io.InputStream |
NtsServerImpl.execStreamCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap,
java.lang.String inString,
boolean ignoreCallbacks)
Note that this method does the access / request exception processing here rather
than passing things up the stack; we may introduce an extended version of this
method to take the map array as an output parameter in later releases.
|
protected java.io.InputStream |
OneShotServerImpl.execStreamCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap,
java.lang.String inString,
boolean ignoreCallbacks)
Note that this method does the access / request exception processing here rather
than passing things up the stack; we may introduce an extended version of this
method to take the map array as an output parameter in later releases.
|
ServerStatus |
RpcServer.init(java.lang.String host,
int port,
java.util.Properties props)
The default init sets up things like host names, etc., and fails if we
can't establish some pretty basic things at connect time.
|
ServerStatus |
NtsServerImpl.init(java.lang.String host,
int port,
java.util.Properties props)
Shorthand for the options-based init() above, but with a null opts arg.
|
ServerStatus |
OneShotServerImpl.init(java.lang.String host,
int port,
java.util.Properties props)
Shorthand for the options-based init() above, but with a null opts arg.
|
ServerStatus |
RpcServer.init(java.lang.String host,
int port,
java.util.Properties props,
UsageOptions opts) |
ServerStatus |
NtsServerImpl.init(java.lang.String host,
int port,
java.util.Properties props,
UsageOptions opts)
Shorthand for the options-based init() above, but with a fasle secure arg.
|
ServerStatus |
OneShotServerImpl.init(java.lang.String host,
int port,
java.util.Properties props,
UsageOptions opts)
Shorthand for the options-based init() above, but with a false secure arg.
|
ServerStatus |
RpcServer.init(java.lang.String host,
int port,
java.util.Properties properties,
UsageOptions opts,
boolean secure) |
ServerStatus |
NtsServerImpl.init(java.lang.String host,
int port,
java.util.Properties properties,
UsageOptions opts,
boolean secure)
Shorthand for the options-based init() above, but with a fasle secure arg.
|
ServerStatus |
NtsServerImpl.init(java.lang.String host,
int port,
java.util.Properties props,
UsageOptions opts,
boolean secure,
java.lang.String rsh)
Initialize the server.
|
ServerStatus |
OneShotServerImpl.init(java.lang.String host,
int port,
java.util.Properties props,
UsageOptions opts,
boolean secure,
java.lang.String rsh)
Initialize the server.
|
protected ExternalEnv |
OneShotServerImpl.setupCmd(RpcPacketDispatcher dispatcher,
RpcConnection rpcConnection,
ProtocolCommand protocolSpecs,
java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap,
boolean ignoreCallbacks,
int cmdCallBackKey,
boolean isStream)
Factors out the command setup that's common to stream and map commands.
|
protected ExternalEnv |
NtsServerImpl.setupCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap,
boolean ignoreCallbacks,
int cmdCallBackKey,
boolean isStream)
Factors out the command setup that's common to stream and map commands.
|
boolean |
RpcServer.supportsSmartMove() |
Modifier and Type | Method and Description |
---|---|
void |
RpcConnection.clientConfirm(java.lang.String confirm,
java.util.Map<java.lang.String,java.lang.Object> resultsMap) |
abstract void |
RpcConnection.disconnect(RpcPacketDispatcher dispatcher)
Disconnect this server.
|
abstract RpcPacket |
RpcConnection.getRpcPacket()
Get the next RPC packet from the receive queue.
|
abstract RpcPacket |
RpcConnection.getRpcPacket(RpcPacketFieldRule fieldRule,
IFilterCallback filterCallback)
Get the next RPC packet from the receive queue with an optional rule to
handle the RPC packet fields.
|
abstract long |
RpcConnection.putRpcPacket(RpcPacket rpcPacket)
Put a Perforce RPC packet onto the output stream.
|
abstract long |
RpcConnection.putRpcPackets(RpcPacket[] rpcPackets)
Put an array of RPC packets.
|
void |
RpcConnection.useConnectionCompression()
If called, will set this connection to use (GZIP) compression for all
traffic on this connection from this point on.
|
Constructor and Description |
---|
RpcConnection(java.lang.String serverHost,
int serverPort,
java.util.Properties props,
ServerStats stats,
java.nio.charset.Charset clientCharset)
Create a Perforce RPC connection to a given host and port number pair.
|
RpcConnection(java.lang.String serverHost,
int serverPort,
java.util.Properties props,
ServerStats stats,
java.nio.charset.Charset clientCharset,
boolean secure)
Create a Perforce RPC connection to a given host and port number pair.
|
Modifier and Type | Method and Description |
---|---|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.checkFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
The infamous checkFile omnibus method, used to, well, check files
on the Perforce client side.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.chmodFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Change the r/w (etc.) mode of a file locally.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientAck(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Respond back to the server with what amounts to a yes / no response
in the face of errors or success.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientMerge.clientCloseMerge(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Close the merge write (above) and act on the results.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientCrypto(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Process the client-Crypto command from the Perforce server.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientInputData(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Get some requested data (typically something like a submit form) from
somewhere (typically a map passed in from the upper levels of the API) and
pass it back to the server, properly munged.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientMerge.clientOpenMerge3(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap,
boolean twoWayMerge)
Implement a non-interactive version of the three-way client-side merge.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientPrompt(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Prompt the end-user (i.e.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientReceiveFiles(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap) |
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientSetPassword(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Set the client-side password in response to a Perforce server command
telling us to do just that, usually as a result of an earlier
successful login attempt in the same session.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientSingleSignon(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Implements the client-side of the Perforce single sign on (SSO) protocol.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientMerge.clientWriteMerge(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Write merge data to the client if necessary.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.closeFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Close a file that was opened earlier for writing.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.deleteFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap) |
RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientFunctionDispatcher.dispatch(RpcPacketDispatcher.RpcPacketDispatcherMode dispatchMode,
RpcFunctionSpec funcSpec,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap) |
RpcOutputStream |
ClientSystemFileCommands.getTempOutputStream(CommandEnv cmdEnv)
Return the temp RPC output stream.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.moveFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Move a file from one location to another.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.openFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Open a client file for writing.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.reconcileAdd(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Reconcile add confirm - scans the directory (local syntax) and returns
files in the directory using the full path.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.reconcileEdit(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
"inquire" about file, for 'p4 reconcile'
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.reconcileFlush(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Reconcile flush - remove the skip add files map from the reconcile handler.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.writeBinary(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
A specialised method to handle the client-OutputBinary command.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.writeFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Write file contents to the target file.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.writeText(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Handles the client-OutputText command.
|
Modifier and Type | Method and Description |
---|---|
RpcPacketDispatcher.RpcPacketDispatcherResult |
ProtocolFunctionDispatcher.dispatch(RpcPacketDispatcher.RpcPacketDispatcherMode dispatchMode,
RpcFunctionSpec funcSpec,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap) |
void |
FlowControl.processFlushCommandFromServer(RpcConnection rpcConnection,
RpcFunctionSpec funcSpec,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Given a map passed-in from the main dispatcher that represents
a flush command received from the Perforce server, respond
appropriately.
|
void |
FlowControl.sendFlush2(RpcConnection rpcConnection,
java.util.Map<java.lang.String,java.lang.Object> resultsMap) |
void |
ProtocolFunctionDispatcher.sendRelease2(RpcConnection rpcConnection) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
RpcPacketDispatcher.dispatch(CommandEnv cmdEnv)
Top-level dispatcher method.
|
void |
RpcPacketDispatcher.shutdown(RpcConnection rpcConnection)
Attempt to cleanly shut down the dispatcher; this should involve
sending a release2 packet, but this is not always possible, and
we suppress any resulting errors.
|
Modifier and Type | Method and Description |
---|---|
void |
RpcStreamConnection.disconnect(RpcPacketDispatcher dispatcher) |
RpcPacket |
RpcStreamConnection.getRpcPacket()
Get a Perforce RPC packet from the underlying stream.
|
RpcPacket |
RpcStreamConnection.getRpcPacket(RpcPacketFieldRule fieldRule,
IFilterCallback filterCallback)
Get a Perforce RPC packet from the underlying stream with an optional
rule to handle the RPC packet fields.
|
long |
RpcStreamConnection.putRpcPacket(RpcPacket packet)
Put a Perforce RPC packet onto the output stream.
|
long |
RpcStreamConnection.putRpcPackets(RpcPacket[] packets) |
void |
RpcStreamConnection.useConnectionCompression() |
Constructor and Description |
---|
RpcStreamConnection(java.lang.String serverHost,
int serverPort,
java.util.Properties props,
ServerStats stats,
java.nio.charset.Charset charset)
Construct a new Perforce RPC connection to the named Perforce server
using java.io socket streams at the lowest level.
|
RpcStreamConnection(java.lang.String serverHost,
int serverPort,
java.util.Properties props,
ServerStats stats,
java.nio.charset.Charset charset,
boolean secure)
Construct a new Perforce RPC connection to the named Perforce server
using java.io socket streams at the lowest level.
|
RpcStreamConnection(java.lang.String serverHost,
int serverPort,
java.util.Properties props,
ServerStats stats,
java.nio.charset.Charset charset,
RpcSocketPool pool)
Construct a new Perforce RPC connection to the named Perforce server
using java.io socket streams at the lowest level.
|
RpcStreamConnection(java.lang.String serverHost,
int serverPort,
java.util.Properties props,
ServerStats stats,
java.nio.charset.Charset charset,
RpcSocketPool pool,
boolean secure)
Construct a new Perforce RPC connection to the named Perforce server
using java.io socket streams at the lowest level.
|
RpcStreamConnection(java.lang.String serverHost,
int serverPort,
java.util.Properties props,
ServerStats stats,
java.nio.charset.Charset charset,
java.net.Socket socket)
Construct a new Perforce RPC connection to the named Perforce server
using java.io socket streams at the lowest level.
|
RpcStreamConnection(java.lang.String serverHost,
int serverPort,
java.util.Properties props,
ServerStats stats,
java.nio.charset.Charset charset,
java.net.Socket socket,
boolean secure)
Construct a new Perforce RPC connection to the named Perforce server
using java.io socket streams at the lowest level.
|
RpcStreamConnection(java.lang.String serverHost,
int serverPort,
java.util.Properties props,
ServerStats stats,
java.nio.charset.Charset charset,
java.net.Socket socket,
RpcSocketPool pool,
boolean secure)
Construct a new Perforce RPC connection to the named Perforce server
using java.io socket streams at the lowest level.
|
RpcStreamConnection(java.lang.String serverHost,
int serverPort,
java.util.Properties props,
ServerStats stats,
java.nio.charset.Charset charset,
java.net.Socket socket,
RpcSocketPool pool,
boolean secure,
java.lang.String rsh)
Construct a new Perforce RPC connection to the named Perforce server
using java.io socket streams at the lowest level.
|
Modifier and Type | Method and Description |
---|---|
void |
Server.connect() |
java.lang.String |
Server.createBranchSpec(IBranchSpec branchSpec) |
java.lang.String |
Server.createClient(IClient newClient) |
IJob |
Server.createJob(java.util.Map<java.lang.String,java.lang.Object> fieldMap) |
java.lang.String |
Server.createLabel(ILabel label) |
java.lang.String |
Server.createUser(IUser user,
boolean force) |
java.lang.String |
Server.createUserGroup(IUserGroup group) |
java.lang.String |
Server.deleteBranchSpec(java.lang.String branchSpecName,
boolean force) |
java.lang.String |
Server.deleteClient(java.lang.String clientName,
boolean force) |
void |
Server.deleteCounter(java.lang.String counterName,
boolean perforceCounter) |
java.lang.String |
Server.deleteJob(java.lang.String jobId) |
java.lang.String |
Server.deleteLabel(java.lang.String labelName,
boolean force) |
java.lang.String |
Server.deletePendingChangelist(int id) |
java.lang.String |
Server.deleteUser(java.lang.String userName,
boolean force) |
java.lang.String |
Server.deleteUserGroup(IUserGroup group) |
void |
Server.disconnect() |
java.util.List<IFix> |
Server.fixJobs(java.util.List<java.lang.String> jobIds,
int changeListId,
java.lang.String status,
boolean delete) |
IBranchSpec |
Server.getBranchSpec(java.lang.String name) |
java.util.List<IBranchSpecSummary> |
Server.getBranchSpecs(java.lang.String userName,
java.lang.String nameFilter,
int maxReturns) |
IChangelist |
Server.getChangelist(int id) |
java.io.InputStream |
Server.getChangelistDiffs(int id,
DiffType diffType) |
java.io.InputStream |
Server.getChangelistDiffsStream(int id,
DescribeOptions options) |
java.util.List<IFileSpec> |
Server.getChangelistFiles(int id) |
java.util.List<IFileSpec> |
Server.getChangelistFiles(int id,
int max) |
java.util.List<IChangelistSummary> |
Server.getChangelists(int maxMostRecent,
java.util.List<IFileSpec> fileSpecs,
java.lang.String clientName,
java.lang.String userName,
boolean includeIntegrated,
boolean submittedOnly,
boolean pendingOnly,
boolean longDesc) |
java.util.List<IChangelistSummary> |
Server.getChangelists(int maxMostRecent,
java.util.List<IFileSpec> fileSpecs,
java.lang.String clientName,
java.lang.String userName,
boolean includeIntegrated,
IChangelist.Type type,
boolean longDesc) |
IClient |
Server.getClient(IClientSummary clientSummary) |
IClient |
Server.getClient(java.lang.String clientName) |
java.util.List<IClientSummary> |
Server.getClients(java.lang.String userName,
java.lang.String nameFilter,
int maxResults) |
IClient |
Server.getClientTemplate(java.lang.String clientName) |
IClient |
Server.getClientTemplate(java.lang.String clientName,
boolean allowExistent) |
java.util.List<IFileSpec> |
Server.getCommitFiles(java.lang.String repo,
java.lang.String commit) |
java.lang.String |
Server.getCounter(java.lang.String counterName) |
java.util.Map<java.lang.String,java.lang.String> |
Server.getCounters() |
java.util.List<IFileSpec> |
Server.getDepotFiles(java.util.List<IFileSpec> fileSpecs,
boolean allRevs) |
java.util.List<IDepot> |
Server.getDepots() |
java.util.List<IFileSpec> |
Server.getDirectories(java.util.List<IFileSpec> fileSpecs,
boolean clientOnly,
boolean deletedOnly,
boolean haveListOnly) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
Server.getExportRecords(boolean useJournal,
long maxRecs,
int sourceNum,
long offset,
boolean format,
java.lang.String journalPrefix,
java.lang.String filter) |
java.util.List<IExtendedFileSpec> |
Server.getExtendedFiles(java.util.List<IFileSpec> fileSpecs,
int maxFiles,
int sinceChangelist,
int affectedByChangelist,
FileStatOutputOptions outputOptions,
FileStatAncilliaryOptions ancilliaryOptions) |
java.util.List<IFileAnnotation> |
Server.getFileAnnotations(java.util.List<IFileSpec> fileSpecs,
DiffType wsOpts,
boolean allResults,
boolean useChangeNumbers,
boolean followBranches) |
java.io.InputStream |
Server.getFileContents(java.util.List<IFileSpec> fileSpecs,
boolean allrevs,
boolean noHeaderLine) |
java.util.List<IFileDiff> |
Server.getFileDiffs(IFileSpec file1,
IFileSpec file2,
java.lang.String branchSpecName,
DiffType diffType,
boolean quiet,
boolean includeNonTextDiffs,
boolean gnuDiffs) |
java.util.List<IFix> |
Server.getFixList(java.util.List<IFileSpec> fileSpecs,
int changeListId,
java.lang.String jobId,
boolean includeIntegrations,
int maxFixes) |
java.util.List<IChangelist> |
Server.getInterchanges(IFileSpec fromFile,
IFileSpec toFile,
boolean showFiles,
boolean longDesc,
int maxChangelistId) |
java.util.List<IChangelist> |
Server.getInterchanges(java.lang.String branchSpecName,
java.util.List<IFileSpec> fromFileList,
java.util.List<IFileSpec> toFileList,
boolean showFiles,
boolean longDesc,
int maxChangelistId,
boolean reverseMapping,
boolean biDirectional) |
IJob |
Server.getJob(java.lang.String jobId) |
java.util.List<IJob> |
Server.getJobs(java.util.List<IFileSpec> fileSpecs,
int maxJobs,
boolean longDescriptions,
boolean reverseOrder,
boolean includeIntegrated,
java.lang.String jobView) |
IJobSpec |
Server.getJobSpec() |
ILabel |
Server.getLabel(java.lang.String labelName) |
java.util.List<ILabelSummary> |
Server.getLabels(java.lang.String user,
int maxLabels,
java.lang.String nameFilter,
java.util.List<IFileSpec> fileList) |
java.util.List<IFileSpec> |
Server.getOpenedFiles(java.util.List<IFileSpec> fileSpecs,
boolean allClients,
java.lang.String clientName,
int maxFiles,
int changeListId) |
java.util.List<IProtectionEntry> |
Server.getProtectionEntries(boolean allUsers,
java.lang.String hostName,
java.lang.String userName,
java.lang.String groupName,
java.util.List<IFileSpec> fileList) |
java.util.List<IRepo> |
Server.getRepos() |
java.util.List<IRepo> |
Server.getRepos(java.lang.String clientName) |
java.util.List<IUserSummary> |
Server.getReviews(int changelistId,
java.util.List<IFileSpec> fileSpecs) |
java.util.Map<IFileSpec,java.util.List<IFileRevisionData>> |
Server.getRevisionHistory(java.util.List<IFileSpec> fileSpecs,
int maxRevs,
boolean contentHistory,
boolean includeInherited,
boolean longOutput,
boolean truncatedLongOutput) |
java.io.InputStream |
Server.getServerFileDiffs(IFileSpec file1,
IFileSpec file2,
java.lang.String branchSpecName,
DiffType diffType,
boolean quiet,
boolean includeNonTextDiffs,
boolean gnuDiffs) |
IServerInfo |
Server.getServerInfo() |
java.util.List<IServerProcess> |
Server.getServerProcesses() |
int |
Server.getServerVersion() |
java.util.List<IFileSpec> |
Server.getSubmittedIntegrations(java.util.List<IFileSpec> fileSpecs,
java.lang.String branchSpec,
boolean reverseMappings) |
IUser |
Server.getUser(java.lang.String userName) |
IUserGroup |
Server.getUserGroup(java.lang.String name) |
java.util.List<IUserGroup> |
Server.getUserGroups(java.lang.String userOrGroupName,
boolean indirect,
boolean displayValues,
int maxGroups) |
java.util.List<IUserSummary> |
Server.getUsers(java.util.List<java.lang.String> userList,
int maxUsers) |
IFileSpec |
Server.handleFileReturn(java.util.Map<java.lang.String,java.lang.Object> map)
Deprecated.
|
IFileSpec |
Server.handleFileReturn(java.util.Map<java.lang.String,java.lang.Object> map,
IClient client)
Deprecated.
|
ServerStatus |
IServerControl.init(java.lang.String host,
int port,
java.util.Properties props)
Convenience method for init(host, port, props, null).
|
ServerStatus |
Server.init(java.lang.String host,
int port,
java.util.Properties props) |
ServerStatus |
IServerControl.init(java.lang.String host,
int port,
java.util.Properties props,
UsageOptions opts)
Convenience method for init(host, port, props, opts, secure).
|
ServerStatus |
Server.init(java.lang.String host,
int port,
java.util.Properties props,
UsageOptions opts) |
ServerStatus |
IServerControl.init(java.lang.String host,
int port,
java.util.Properties props,
UsageOptions opts,
boolean secure)
Convenience method for init(host, port, props, opts, secure, null).
|
ServerStatus |
Server.init(java.lang.String host,
int port,
java.util.Properties properties,
UsageOptions opts,
boolean secure) |
ServerStatus |
IServerControl.init(java.lang.String host,
int port,
java.util.Properties props,
UsageOptions opts,
boolean secure,
java.lang.String rsh)
Initialize the server.
|
ServerStatus |
Server.init(java.lang.String host,
int port,
java.util.Properties props,
UsageOptions opts,
boolean secure,
java.lang.String rsh) |
void |
Server.login(java.lang.String password) |
void |
Server.login(java.lang.String password,
boolean allHosts) |
void |
Server.logout() |
java.util.List<IFileSpec> |
Server.moveFile(int changelistId,
boolean listOnly,
boolean noClientMove,
java.lang.String fileType,
IFileSpec fromFile,
IFileSpec toFile) |
void |
Server.setCounter(java.lang.String counterName,
java.lang.String value,
boolean perforceCounter) |
boolean |
Server.supportsUnicode() |
java.util.List<IFileSpec> |
Server.tagFiles(java.util.List<IFileSpec> fileSpecs,
java.lang.String labelName,
boolean listOnly,
boolean delete) |
java.lang.String |
Server.updateBranchSpec(IBranchSpec branchSpec) |
java.lang.String |
Server.updateClient(IClient client) |
java.lang.String |
Server.updateClient(IClient client,
boolean force) |
java.lang.String |
Server.updateJob(IJob job) |
java.lang.String |
Server.updateLabel(ILabel label) |
java.lang.String |
Server.updateUser(IUser user,
boolean force) |
java.lang.String |
Server.updateUserGroup(IUserGroup group,
boolean updateIfOwner) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<IExtendedFileSpec> |
ResultListBuilder.buildNonNullExtendedFileSpecListFromCommandResultMaps(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> resultMaps,
IOptionsServer server) |
java.lang.String |
BranchDelegator.createBranchSpec(IBranchSpec branchSpec) |
java.lang.String |
ClientDelegator.createClient(IClient newClient) |
IJob |
JobDelegator.createJob(java.util.Map<java.lang.String,java.lang.Object> fieldMap) |
java.lang.String |
LabelDelegator.createLabel(ILabel label) |
java.lang.String |
UserDelegator.createUser(IUser user,
boolean force) |
java.lang.String |
GroupDelegator.createUserGroup(IUserGroup group)
Implemented on behalf of IServer for backwards compatibility.
|
java.lang.String |
BranchDelegator.deleteBranchSpec(java.lang.String branchSpecName,
boolean force) |
java.lang.String |
ClientDelegator.deleteClient(java.lang.String clientName,
boolean force) |
void |
CounterDelegator.deleteCounter(java.lang.String counterName,
boolean perforceCounter) |
java.lang.String |
JobDelegator.deleteJob(java.lang.String jobId) |
java.lang.String |
LabelDelegator.deleteLabel(java.lang.String labelName,
boolean force) |
java.lang.String |
ChangeDelegator.deletePendingChangelist(int id) |
java.lang.String |
UserDelegator.deleteUser(java.lang.String userName,
boolean force) |
java.lang.String |
GroupDelegator.deleteUserGroup(IUserGroup group)
Implemented on behalf of IServer for backwards compatibility.
|
java.util.List<IFix> |
FixDelegator.fixJobs(java.util.List<java.lang.String> jobIds,
int changeListId,
java.lang.String status,
boolean delete) |
IBranchSpec |
BranchDelegator.getBranchSpec(java.lang.String name) |
java.util.List<IBranchSpecSummary> |
BranchesDelegator.getBranchSpecs(java.lang.String userName,
java.lang.String nameFilter,
int maxReturns) |
IChangelist |
ChangeDelegator.getChangelist(int id) |
java.io.InputStream |
DescribeDelegator.getChangelistDiffs(int id,
DiffType diffType) |
java.io.InputStream |
DescribeDelegator.getChangelistDiffsStream(int id,
DescribeOptions options) |
java.util.List<IFileSpec> |
DescribeDelegator.getChangelistFiles(int id) |
java.util.List<IFileSpec> |
DescribeDelegator.getChangelistFiles(int id,
int max) |
java.util.List<IChangelistSummary> |
ChangesDelegator.getChangelists(int maxMostRecent,
java.util.List<IFileSpec> fileSpecs,
java.lang.String clientName,
java.lang.String userName,
boolean includeIntegrated,
boolean submittedOnly,
boolean pendingOnly,
boolean longDesc) |
java.util.List<IChangelistSummary> |
ChangesDelegator.getChangelists(int maxMostRecent,
java.util.List<IFileSpec> fileSpecs,
java.lang.String clientName,
java.lang.String userName,
boolean includeIntegrated,
IChangelist.Type type,
boolean longDesc) |
IClient |
ClientDelegator.getClient(IClientSummary clientSummary) |
IClient |
ClientDelegator.getClient(java.lang.String clientName) |
java.util.List<IClientSummary> |
ClientsDelegator.getClients(java.lang.String userName,
java.lang.String nameFilter,
int maxResults) |
IClient |
ClientDelegator.getClientTemplate(java.lang.String clientName) |
IClient |
ClientDelegator.getClientTemplate(java.lang.String clientName,
boolean allowExistent) |
java.util.List<IFileSpec> |
DescribeDelegator.getCommitFiles(java.lang.String repo,
java.lang.String commit) |
java.lang.String |
CounterDelegator.getCounter(java.lang.String counterName) |
java.util.Map<java.lang.String,java.lang.String> |
CountersDelegator.getCounters() |
java.util.List<IFileSpec> |
FilesDelegator.getDepotFiles(java.util.List<IFileSpec> fileSpecs,
boolean allRevs) |
java.util.List<IDepot> |
DepotsDelegator.getDepots() |
java.util.List<IFileSpec> |
DirsDelegator.getDirectories(java.util.List<IFileSpec> fileSpecs,
boolean clientOnly,
boolean deletedOnly,
boolean haveListOnly) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
ExportDelegator.getExportRecords(boolean useJournal,
long maxRecs,
int sourceNum,
long offset,
boolean format,
java.lang.String journalPrefix,
java.lang.String filter) |
java.util.List<IExtendedFileSpec> |
FstatDelegator.getExtendedFiles(java.util.List<IFileSpec> fileSpecs,
int maxFiles,
int sinceChangelist,
int affectedByChangelist,
FileStatOutputOptions outputOptions,
FileStatAncilliaryOptions ancilliaryOptions) |
java.util.List<IFileAnnotation> |
FileAnnotateDelegator.getFileAnnotations(java.util.List<IFileSpec> fileSpecs,
DiffType diffType,
boolean allResults,
boolean useChangeNumbers,
boolean followBranches) |
java.io.InputStream |
PrintDelegator.getFileContents(java.util.List<IFileSpec> fileSpecs,
boolean allRevs,
boolean noHeaderLine) |
java.util.List<IFileDiff> |
Diff2Delegator.getFileDiffs(IFileSpec file1,
IFileSpec file2,
java.lang.String branchSpecName,
DiffType diffType,
boolean quiet,
boolean includeNonTextDiffs,
boolean gnuDiffs) |
java.util.List<IFix> |
FixesDelegator.getFixList(java.util.List<IFileSpec> fileSpecs,
int changeListId,
java.lang.String jobId,
boolean includeIntegrations,
int maxFixes) |
java.util.List<IChangelist> |
InterchangesDelegator.getInterchanges(IFileSpec fromFile,
IFileSpec toFile,
boolean showFiles,
boolean longDesc,
int maxChangelistId) |
java.util.List<IChangelist> |
InterchangesDelegator.getInterchanges(java.lang.String branchSpecName,
java.util.List<IFileSpec> fromFileList,
java.util.List<IFileSpec> toFileList,
boolean showFiles,
boolean longDesc,
int maxChangelistId,
boolean reverseMapping,
boolean biDirectional) |
IJob |
JobDelegator.getJob(java.lang.String jobId) |
java.util.List<IJob> |
JobsDelegator.getJobs(java.util.List<IFileSpec> fileSpecs,
int maxJobs,
boolean longDescriptions,
boolean reverseOrder,
boolean includeIntegrated,
java.lang.String jobView) |
IJobSpec |
JobSpecDelegator.getJobSpec() |
ILabel |
LabelDelegator.getLabel(java.lang.String labelName) |
java.util.List<ILabelSummary> |
LabelsDelegator.getLabels(java.lang.String user,
int maxLabels,
java.lang.String nameFilter,
java.util.List<IFileSpec> fileList) |
java.util.List<IFileSpec> |
OpenedDelegator.getOpenedFiles(java.util.List<IFileSpec> fileSpecs,
boolean allClients,
java.lang.String clientName,
int maxFiles,
int changeListId) |
java.util.List<IProtectionEntry> |
ProtectsDelegator.getProtectionEntries(boolean allUsers,
java.lang.String hostName,
java.lang.String userName,
java.lang.String groupName,
java.util.List<IFileSpec> fileList) |
java.util.List<IRepo> |
ReposDelegator.getRepos()
Gets the repos.
|
java.util.List<IRepo> |
ReposDelegator.getRepos(java.lang.String client)
Gets the repos mapped within the client's view.
|
java.util.List<IUserSummary> |
ReviewsDelegator.getReviews(int changelistId,
java.util.List<IFileSpec> fileSpecs) |
java.util.Map<IFileSpec,java.util.List<IFileRevisionData>> |
FileLogDelegator.getRevisionHistory(java.util.List<IFileSpec> fileSpecs,
int maxRevs,
boolean contentHistory,
boolean includeInherited,
boolean longOutput,
boolean truncatedLongOutput) |
java.io.InputStream |
Diff2Delegator.getServerFileDiffs(IFileSpec file1,
IFileSpec file2,
java.lang.String branchSpecName,
DiffType diffType,
boolean quiet,
boolean includeNonTextDiffs,
boolean gnuDiffs) |
IServerInfo |
InfoDelegator.getServerInfo() |
java.util.List<IServerProcess> |
MonitorDelegator.getServerProcesses() |
java.util.List<IFileSpec> |
IntegratedDelegator.getSubmittedIntegrations(java.util.List<IFileSpec> fileSpecs,
java.lang.String branchSpec,
boolean reverseMappings) |
IUser |
UserDelegator.getUser(java.lang.String userName) |
IUserGroup |
GroupDelegator.getUserGroup(java.lang.String name) |
java.util.List<IUserGroup> |
GroupsDelegator.getUserGroups(java.lang.String userOrGroupName,
boolean indirect,
boolean displayValues,
int maxGroups)
Implemented on behalf of legacy clients.
|
java.util.List<IUserSummary> |
UsersDelegator.getUsers(java.util.List<java.lang.String> userList,
int maxUsers) |
static java.lang.String |
ResultMapParser.handleFileErrorStr(java.util.Map<java.lang.String,java.lang.Object> map)
Handle file error str.
|
static IFileSpec |
ResultListBuilder.handleFileReturn(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server) |
static IFileSpec |
ResultListBuilder.handleIntegrationFileReturn(java.util.Map<java.lang.String,java.lang.Object> map,
boolean ignoreInfo,
IServer server) |
static IFileSpec |
ResultListBuilder.handleIntegrationFileReturn(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server) |
void |
LoginDelegator.login(java.lang.String password) |
void |
LoginDelegator.login(java.lang.String password,
boolean allHosts) |
void |
LogoutDelegator.logout() |
java.util.List<IFileSpec> |
MoveDelegator.moveFile(int changelistId,
boolean listOnly,
boolean noClientMove,
java.lang.String fileType,
IFileSpec fromFile,
IFileSpec toFile) |
java.util.List<IChangelist> |
InterchangesDelegator.processInterchangeMaps(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> resultMaps,
boolean showFiles) |
void |
CounterDelegator.setCounter(java.lang.String counterName,
java.lang.String value,
boolean perforceCounter) |
java.util.List<IFileSpec> |
TagDelegator.tagFiles(java.util.List<IFileSpec> fileSpecs,
java.lang.String labelName,
boolean listOnly,
boolean delete) |
java.lang.String |
BranchDelegator.updateBranchSpec(IBranchSpec branchSpec) |
java.lang.String |
ClientDelegator.updateClient(IClient client) |
java.lang.String |
ClientDelegator.updateClient(IClient client,
boolean force)
Update an existing Perforce client on the current Perforce server.
|
java.lang.String |
JobDelegator.updateJob(IJob job) |
java.lang.String |
LabelDelegator.updateLabel(ILabel label) |
java.lang.String |
UserDelegator.updateUser(IUser user,
boolean force) |
java.lang.String |
GroupDelegator.updateUserGroup(IUserGroup group,
boolean updateIfOwner)
Implemented on behalf of IServer for backwards compatibility.
|
Modifier and Type | Method and Description |
---|---|
void |
IServer.connect()
Connect to the Perforce server associated with this server object.
|
java.lang.String |
IServer.createUserGroup(IUserGroup group)
Create a new Perforce user group on the Perforce server.
|
java.lang.String |
IServer.deleteUserGroup(IUserGroup group)
Delete a Perforce user group from the Perforce server.
|
void |
IServer.disconnect()
Disconnect from this Perforce server.
|
java.util.Map<java.lang.String,java.lang.Object>[] |
IServer.execMapCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap)
Issue an arbitrary P4Java command to the Perforce server and return the
results as a map.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
HelixCommandExecutor.execMapCmdList(CmdSpec cmdSpec,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
IHelixCommandExecutor.execMapCmdList(CmdSpec cmdSpec,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap) |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
IHelixCommandExecutor.execMapCmdList(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap)
Issue an arbitrary P4Java command to the Perforce server and return the
results as a list of maps.
|
java.util.Map<java.lang.String,java.lang.Object>[] |
IServer.execQuietMapCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap)
Issue an arbitrary P4Java command to the Perforce server and return the
results as a map without invoking any command callbacks.
|
java.io.InputStream |
IServer.execQuietStreamCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs)
Issue an arbitrary P4Java command to the Perforce server and get the
results as a stream without invoking any command callbacks.
|
java.io.InputStream |
IHelixCommandExecutor.execStreamCmd(java.lang.String cmdName,
java.lang.String[] cmdArgs)
Issue an arbitrary P4Java command to the Perforce server and get the
results as a stream.
|
java.io.InputStream |
IServer.getChangelistDiffs(int id,
DiffType diffType)
Get an InputStream onto the file diffs associated with a specific
submitted changelist.
|
java.util.List<IFileSpec> |
IServer.getCommitFiles(java.lang.String repo,
java.lang.String commit) |
java.util.List<IChangelist> |
IServer.getInterchanges(IFileSpec fromFile,
IFileSpec toFile,
boolean showFiles,
boolean longDesc,
int maxChangelistId)
Get a list of changes and / or associated files not yet integrated
(unsupported).
|
java.util.List<IChangelist> |
IServer.getInterchanges(java.lang.String branchSpecName,
java.util.List<IFileSpec> fromFileList,
java.util.List<IFileSpec> toFileList,
boolean showFiles,
boolean longDesc,
int maxChangelistId,
boolean reverseMapping,
boolean biDirectional)
Get a list of changes and / or associated files not yet integrated, based
on branchspecs (unsupported).
|
static IOptionsServer |
ServerFactory.getOptionsServer(java.lang.String serverUriString,
java.util.Properties props)
Return an IOptionsServer onto an underlying Perforce server at the host
address specified by serverUriString using the protocol implementation and
passed-in properties and a default UsageOptions object.
|
static IOptionsServer |
ServerFactory.getOptionsServer(java.lang.String serverUriString,
java.util.Properties props,
UsageOptions opts)
Return an IOptionsServer interface onto an underlying Perforce server at the host
address specified by serverUriString using the protocol implementation and
passed-in properties and usage options.
|
static IServer |
ServerFactory.getServer(java.lang.String serverUriString,
java.util.Properties props)
Return an IServer interface onto an underlying Perforce server at the host
address specified by serverUriString using the protocol implementation and
passed-in properties.
|
static IServer |
ServerFactory.getServer(java.net.URI serverUrl,
java.util.Properties props)
Deprecated.
as of the 2009.2 release, use the getServer(String, Properties) method
due to that Java's URI class does not accept hostnames with anything
other than alphanumeric characters: even common hostnames like
"perforce_p" will fail, often silently.
|
int |
IServer.getServerVersion() |
java.util.List<IUserGroup> |
IServer.getUserGroups(java.lang.String userOrGroupName,
boolean indirect,
boolean displayValues,
int maxGroups)
Get a list of Perforce user groups from the server.
|
java.lang.String |
HelixCommandExecutor.handleFileErrorStr(java.util.Map<java.lang.String,java.lang.Object> map)
Deprecated.
|
java.lang.String |
IHelixCommandExecutor.handleFileErrorStr(java.util.Map<java.lang.String,java.lang.Object> map)
Deprecated.
|
void |
IServer.setCurrentClient(IClient client)
Set the Perforce client associated with this server.
|
boolean |
IServer.supportsSmartMove()
Return true IFF the underlying Perforce server supports the new 2009.1
and later "smart move" command.
|
boolean |
IServer.supportsUnicode()
Return true if the underlying Perforce server supports Unicode (and is
connected).
|
java.lang.String |
IServer.updateUserGroup(IUserGroup group,
boolean updateIfOwner)
Update a Perforce user group on the Perforce server.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
IBranchDelegator.createBranchSpec(IBranchSpec branchSpec)
TODO: This should be moved up to Server and changed to delegate to
createBranchSpec with an options class.
|
java.lang.String |
IClientDelegator.createClient(IClient newClient) |
IJob |
IJobDelegator.createJob(java.util.Map<java.lang.String,java.lang.Object> fieldMap)
Create a new Perforce job in the Perforce server corresponding to the
passed-in Perforce job fields (which in turn should correspond to at
least the mandatory fields defined in the reigning Perforce job spec).
|
java.lang.String |
ILabelDelegator.createLabel(ILabel label)
Create a new Perforce label in the Perforce server.
|
java.lang.String |
IUserDelegator.createUser(IUser user,
boolean force)
Create a new Perforce user on the Perforce server.
|
java.lang.String |
IBranchDelegator.deleteBranchSpec(java.lang.String branchSpecName,
boolean force)
Deprecated.
use
deleteBranchSpec(final String branchSpecName,
final DeleteBranchSpecOptions opts) instead |
java.lang.String |
IClientDelegator.deleteClient(java.lang.String clientName,
boolean force) |
void |
ICounterDelegator.deleteCounter(java.lang.String counterName,
boolean perforceCounter) |
java.lang.String |
IJobDelegator.deleteJob(java.lang.String jobId)
Delete a job from the Perforce server.
|
java.lang.String |
ILabelDelegator.deleteLabel(java.lang.String labelName,
boolean force)
Delete a named Perforce label from the Perforce server.
|
java.lang.String |
IChangeDelegator.deletePendingChangelist(int id)
Delete a pending Perforce changelist.
|
java.lang.String |
IUserDelegator.deleteUser(java.lang.String userName,
boolean force)
Delete a named Perforce user from the Perforce server.
|
java.util.List<IFix> |
IFixDelegator.fixJobs(java.util.List<java.lang.String> jobIds,
int changeListId,
java.lang.String status,
boolean delete)
Mark each named job as being fixed by the changelist number given with
changeListId.
|
IBranchSpec |
IBranchDelegator.getBranchSpec(java.lang.String name)
Get the branch spec for the given name.
|
java.util.List<IBranchSpecSummary> |
IBranchesDelegator.getBranchSpecs(java.lang.String userName,
java.lang.String nameFilter,
int maxReturns)
Old style getBranchSpecs api call.
|
IChangelist |
IChangeDelegator.getChangelist(int id)
Get a specific Perforce changelist from a Perforce server.
|
java.io.InputStream |
IDescribeDelegator.getChangelistDiffsStream(int id,
DescribeOptions options)
Get an InputStream onto the file diffs associated with a specific
submitted changelist.
|
java.util.List<IFileSpec> |
IDescribeDelegator.getChangelistFiles(int id)
Get a list of the Perforce depot files associated with a Perforce
changelist.
|
java.util.List<IFileSpec> |
IDescribeDelegator.getChangelistFiles(int id,
int max)
Get a list of the Perforce depot files associated with a Perforce
changelist.
|
java.util.List<IChangelistSummary> |
IChangesDelegator.getChangelists(int maxMostRecent,
java.util.List<IFileSpec> fileSpecs,
java.lang.String clientName,
java.lang.String userName,
boolean includeIntegrated,
boolean submittedOnly,
boolean pendingOnly,
boolean longDesc)
Gets the changelists.
|
java.util.List<IChangelistSummary> |
IChangesDelegator.getChangelists(int maxMostRecent,
java.util.List<IFileSpec> fileSpecs,
java.lang.String clientName,
java.lang.String userName,
boolean includeIntegrated,
IChangelist.Type type,
boolean longDesc)
Gets the changelists.
|
IClient |
IClientDelegator.getClient(IClientSummary clientSummary) |
IClient |
IClientDelegator.getClient(java.lang.String clientName) |
java.util.List<IClientSummary> |
IClientsDelegator.getClients(java.lang.String userName,
java.lang.String nameFilter,
int maxResults)
Get a list of IClientSummary objects for all Perforce clients known to this Perforce
server.
|
IClient |
IClientDelegator.getClientTemplate(java.lang.String clientName) |
IClient |
IClientDelegator.getClientTemplate(java.lang.String clientName,
boolean allowExistent) |
java.lang.String |
ICounterDelegator.getCounter(java.lang.String counterName) |
java.util.Map<java.lang.String,java.lang.String> |
ICountersDelegator.getCounters()
This is here to allow access via both IOptionsServer and IServer, the underlying
delegator implementation provides the concrete method.
|
java.util.List<IFileSpec> |
IFilesDelegator.getDepotFiles(java.util.List<IFileSpec> fileSpecs,
boolean allRevs)
List all Perforce depot files known to the Perforce server that conform
to the passed-in wild-card file specification(s).
|
java.util.List<IDepot> |
IDepotsDelegator.getDepots()
Gets the depots.
|
java.util.List<IFileSpec> |
IDirsDelegator.getDirectories(java.util.List<IFileSpec> fileSpecs,
boolean clientOnly,
boolean deletedOnly,
boolean haveListOnly)
List any directories matching the passed-in file specifications
and other options.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
IExportDelegator.getExportRecords(boolean useJournal,
long maxRecs,
int sourceNum,
long offset,
boolean format,
java.lang.String journalPrefix,
java.lang.String filter)
Get a list of exported journal or checkpoint records (admin / superuser
command).
|
java.util.List<IExtendedFileSpec> |
IFstatDelegator.getExtendedFiles(java.util.List<IFileSpec> fileSpecs,
int maxFiles,
int sinceChangelist,
int affectedByChangelist,
FileStatOutputOptions outputOptions,
FileStatAncilliaryOptions ancilliaryOptions)
Return a list of everything Perforce knows about a possibly very large
set of Perforce files.
|
java.util.List<IFileAnnotation> |
IFileAnnotateDelegator.getFileAnnotations(java.util.List<IFileSpec> fileSpecs,
DiffType diffType,
boolean allResults,
boolean useChangeNumbers,
boolean followBranches) |
java.io.InputStream |
IPrintDelegator.getFileContents(java.util.List<IFileSpec> fileSpecs,
boolean allRevs,
boolean noHeaderLine) |
java.util.List<IFileDiff> |
IDiff2Delegator.getFileDiffs(IFileSpec file1,
IFileSpec file2,
java.lang.String branchSpecName,
DiffType diffType,
boolean quiet,
boolean includeNonTextDiffs,
boolean gnuDiffs)
Run diff on the Perforce server of two files in the depot.
|
java.util.List<IFix> |
IFixesDelegator.getFixList(java.util.List<IFileSpec> fileSpecs,
int changeListId,
java.lang.String jobId,
boolean includeIntegrations,
int maxFixes)
Return a list of all Perforce jobs with fix records associated with them,
along with the changelist number of the fix.
|
IJob |
IJobDelegator.getJob(java.lang.String jobId)
Get a specific job.
|
java.util.List<IJob> |
IJobsDelegator.getJobs(java.util.List<IFileSpec> fileSpecs,
int maxJobs,
boolean longDescriptions,
boolean reverseOrder,
boolean includeIntegrated,
java.lang.String jobView)
Return a list of Perforce jobs.
|
IJobSpec |
IJobSpecDelegator.getJobSpec()
Return the Perforce jobspec associated with this Perforce server.
|
ILabel |
ILabelDelegator.getLabel(java.lang.String labelName)
Get a specific named Perforce label.
|
java.util.List<ILabelSummary> |
ILabelsDelegator.getLabels(java.lang.String user,
int maxLabels,
java.lang.String nameFilter,
java.util.List<IFileSpec> fileList)
Get a list of Perforce labels, optionally tied to a specific set of
files.
|
java.util.List<IFileSpec> |
IOpenedDelegator.getOpenedFiles(java.util.List<IFileSpec> fileSpecs,
boolean allClients,
java.lang.String clientName,
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<IProtectionEntry> |
IProtectsDelegator.getProtectionEntries(boolean allUsers,
java.lang.String hostName,
java.lang.String userName,
java.lang.String groupName,
java.util.List<IFileSpec> fileList)
Get a list of Perforce protection entries for the passed-in arguments.
|
java.util.List<IRepo> |
IReposDelegator.getRepos()
Gets the repos.
|
java.util.List<IRepo> |
IReposDelegator.getRepos(java.lang.String clientName)
Gets the repos mapped within the client's view.
|
java.util.List<IUserSummary> |
IReviewsDelegator.getReviews(int changelistId,
java.util.List<IFileSpec> fileSpecs)
Get a list of all users who have subscribed to review the named files,
the files in the numbered changelist, or all files by default.
|
java.util.Map<IFileSpec,java.util.List<IFileRevisionData>> |
IFileLogDelegator.getRevisionHistory(java.util.List<IFileSpec> fileSpecs,
int maxRevs,
boolean contentHistory,
boolean includeInherited,
boolean longOutput,
boolean truncatedLongOutput)
Get the revision history data for one or more Perforce files.
|
java.io.InputStream |
IDiff2Delegator.getServerFileDiffs(IFileSpec file1,
IFileSpec file2,
java.lang.String branchSpecName,
DiffType diffType,
boolean quiet,
boolean includeNonTextDiffs,
boolean gnuDiffs)
Run diff on the Perforce server of two files in the depot.
|
IServerInfo |
IInfoDelegator.getServerInfo()
Gets the server info.
|
java.util.List<IServerProcess> |
IMonitorDelegator.getServerProcesses()
Return a list of Perforce server processes active on the Perforce server.
|
java.util.List<IFileSpec> |
IIntegratedDelegator.getSubmittedIntegrations(java.util.List<IFileSpec> fileSpecs,
java.lang.String branchSpec,
boolean reverseMappings)
Get a list of submitted integrations for the passed-in filespecs.
|
IUser |
IUserDelegator.getUser(java.lang.String userName)
Get the user details of a specific Perforce user from the Perforce
server.
|
IUserGroup |
IGroupDelegator.getUserGroup(java.lang.String name)
Get the named Perforce user group.
|
java.util.List<IUserSummary> |
IUsersDelegator.getUsers(java.util.List<java.lang.String> userList,
int maxUsers)
Get a list of Perforce users known to this Perforce server.
|
void |
ILoginDelegator.login(java.lang.String password)
Convenience method for login(password, false).
|
void |
ILoginDelegator.login(java.lang.String password,
boolean allHosts)
Log the current user (if any) in to a Perforce server, optionally
arranging to be logged in for all hosts.
|
void |
ILogoutDelegator.logout()
Log the current Perforce user out of a Perforce server session.
|
java.util.List<IFileSpec> |
IMoveDelegator.moveFile(int changelistId,
boolean listOnly,
boolean noClientMove,
java.lang.String fileType,
IFileSpec fromFile,
IFileSpec toFile)
Move a file already opened for edit or add (the fromFile) to the
destination file (the toFile).
|
void |
ICounterDelegator.setCounter(java.lang.String counterName,
java.lang.String value,
boolean perforceCounter) |
java.util.List<IFileSpec> |
ITagDelegator.tagFiles(java.util.List<IFileSpec> fileSpecs,
java.lang.String labelName,
boolean listOnly,
boolean delete)
Tag files with a Perforce label.
|
java.lang.String |
IBranchDelegator.updateBranchSpec(IBranchSpec branchSpec)
Update the data fields in an existing branch spec.
|
java.lang.String |
IClientDelegator.updateClient(IClient client) |
java.lang.String |
IClientDelegator.updateClient(IClient client,
boolean force)
Update an existing Perforce client on the current Perforce server.
|
java.lang.String |
IJobDelegator.updateJob(IJob job)
Update a Perforce job on the Perforce server.
|
java.lang.String |
ILabelDelegator.updateLabel(ILabel label)
Update an existing Perforce label in the Perforce server.
|
java.lang.String |
IUserDelegator.updateUser(IUser user,
boolean force)
Update a Perforce user on the Perforce server.
|
Copyright © 2018 Perforce Software. All Rights Reserved.