Package | Description |
---|---|
com.perforce.p4java.client |
Provides interfaces for accessing and manipulating Perforce client workspaces and associated objects.
|
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.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.func.client | |
com.perforce.p4java.impl.mapbased.server | |
com.perforce.p4java.impl.mapbased.server.cmd | |
com.perforce.p4java.option |
Provides a series of classes that implement P4Java-wide server, client, and other class method
options definitions and processing.
|
com.perforce.p4java.option.changelist | |
com.perforce.p4java.option.client | |
com.perforce.p4java.option.server | |
com.perforce.p4java.server |
Provides interfaces and classes for accessing Perforce SCM servers and associated server-level services.
|
Modifier and Type | Method and Description |
---|---|
IServer |
IClient.getServer()
Return the IServer object representing the Perforce server associated with this
Perforce client.
|
Modifier and Type | Method and Description |
---|---|
void |
IClient.setServer(IServer server)
Set the Perforce server associated with this client.
|
Modifier and Type | Method and Description |
---|---|
IServer |
ILabel.getServer()
Get the Perforce server object associated with this label.
|
Modifier and Type | Method and Description |
---|---|
void |
ILabel.setServer(IServer server)
Set the Perforce server object associated with this label.
|
void |
IServerResource.setServer(IServer server)
Set the server associated with this resource.
|
Modifier and Type | Field and Description |
---|---|
protected IServer |
ServerResource.server
Server instance
|
Modifier and Type | Method and Description |
---|---|
IServer |
Changelist.getServer() |
IServer |
Label.getServer() |
Modifier and Type | Method and Description |
---|---|
static Changelist |
Changelist.newChangelist(IServer server,
java.lang.String clientName,
java.lang.String description)
Return a new local Changelist object with default values.
|
static Job |
Job.newJob(IServer server,
java.util.Map<java.lang.String,java.lang.Object> map)
Simple factory method for creating a new Job class.
|
static Label |
Label.newLabel(IServer server,
java.lang.String name,
java.lang.String description,
java.lang.String[] mapping)
Create a new local Label object with the given name, description, and
view mapping.
|
void |
ServerResource.setServer(IServer server) |
void |
Label.setServer(IServer server) |
Constructor and Description |
---|
BranchSpec(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server)
Construct a BranchSpec from a map passed back from the Perforce
server in response to a getBranchSpec command.
|
Changelist(IChangelistSummary summary,
IServer server,
boolean refresh)
Deprecated.
|
Changelist(java.util.Map<java.lang.String,java.lang.Object> map,
IServer serverImpl)
Deprecated.
|
ChangelistSummary(boolean complete,
boolean completable,
boolean refreshable,
boolean updateable,
IServer server)
Explicit-value pass-through constructor for the ServerResource fields.
|
ChangelistSummary(java.util.Map<java.lang.String,java.lang.Object> map,
boolean summaryOnly,
IServer server)
Construct a ChangelistSummary from a suitable map returned from
the Perforce server.
|
Job(IServer server,
java.util.Map<java.lang.String,java.lang.Object> map) |
Job(IServer server,
java.util.Map<java.lang.String,java.lang.Object> map,
boolean longDescriptions) |
JobSpec(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server) |
Label(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server)
Construct a new Label from the map passed back from the
IServer's getLabel method or from a similar map, and the current
server object (if any).
|
ServerResource(boolean refreshable,
boolean updateable,
IServer server)
Explicit all-value constructor.
|
ServerResource(IServer server)
Sets complete to true, completable, refreshable, and
updateable to false, and server to the passed-in value.
|
Stream(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server)
Construct a Stream from a map passed back from the Perforce server in
response to a getStream command.
|
User(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server)
Constructs a User from the passed-in map.
|
Constructor and Description |
---|
ExtendedFileSpec(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server,
int index)
Construct an ExtendedFileSpec object from the passed-in map.
|
FileSpec(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server,
int index)
Try to construct a FileSpec from a passed-in map as returned from a
Perforce server.
|
Modifier and Type | Method and Description |
---|---|
IServer |
Client.getServer() |
Modifier and Type | Method and Description |
---|---|
void |
Client.setServer(IServer server)
Note that this will fail with a class cast exception if the passed-in
server is not a mapbased ServerImpl object.
|
Constructor and Description |
---|
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.
|
Client(IServer server)
Note that any IServer object returned by the ServerFactory will work for the serverImpl
parameter; if not, a suitable cast exception will be thrown.
|
Client(IServer serverImpl,
java.util.Map<java.lang.String,java.lang.Object> map)
Construct a suitable Client object from an IServer and a map
returned from the Perforce server.
|
Client(java.lang.String name,
java.util.Date accessed,
java.util.Date updated,
java.lang.String description,
java.lang.String hostName,
java.lang.String ownerName,
java.lang.String root,
IClientSummary.ClientLineEnd lineEnd,
IClientSummary.IClientOptions options,
IClientSummary.IClientSubmitOptions submitOptions,
java.util.List<java.lang.String> alternateRoots,
IServer serverImpl,
ClientView clientView)
Construct a new Client object from explicit fields.
|
Client(java.lang.String name,
java.util.Date accessed,
java.util.Date updated,
java.lang.String description,
java.lang.String hostName,
java.lang.String ownerName,
java.lang.String root,
IClientSummary.ClientLineEnd lineEnd,
IClientSummary.IClientOptions options,
IClientSummary.IClientSubmitOptions submitOptions,
java.util.List<java.lang.String> alternateRoots,
IServer serverImpl,
ClientView clientView,
java.lang.String stream,
java.lang.String type)
Construct a new Client object from explicit fields.
|
Modifier and Type | Class and Description |
---|---|
class |
NtsServerImpl
NTS (non-thread-safe) version of the P4Java RPC implementation.
|
class |
OneShotServerImpl
A one-shot (connection-per-command) version of the RPC protocol
implementation.
|
class |
RpcServer
RPC-based Perforce server implementation superclass.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
ClientHelper.buildParallelOptions(IServer serverImpl,
java.util.List<IFileSpec> fileSpecs,
SyncOptions syncOpts,
ParallelSyncOptions pSyncOpts)
Helper method that build the parallel sync options
|
Modifier and Type | Class and Description |
---|---|
class |
Server
Generic abstract superclass for implementation-specific server
implementations that use a command-style server interface implementation.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
Parameters.processParameters(Options opts,
IFileSpec fromFile,
IFileSpec toFile,
java.lang.String branchSpec,
IServer server)
Specialized parameter processing method for the Client.integrateFiles and
IOptionsServer.getFileDiffs methods.
|
static java.lang.String[] |
Parameters.processParameters(Options opts,
IFileSpec fromFileSpec,
java.util.List<IFileSpec> toFileSpecs,
java.lang.String[] stringParams,
IServer server)
Specialized parameter processing method for commands with 'fromFile' and
'toFiles' parameters.
|
static java.lang.String[] |
Parameters.processParameters(Options opts,
IServer server)
Version of processParameters for those rare methods that have no
non-Options arguments.
|
static java.lang.String[] |
Parameters.processParameters(Options opts,
java.util.List<IFileSpec> fileSpecs,
IServer server)
Process options and filespecs arguments for common methods that use a
single file spec list and an options object.
|
static java.lang.String[] |
Parameters.processParameters(Options opts,
java.util.List<IFileSpec> fromFiles,
java.util.List<IFileSpec> toFiles,
java.lang.String branchSpec,
IServer server)
Specialized parameter processing method for the
IOptionsServer.getInterchanges method.
|
static java.lang.String[] |
Parameters.processParameters(Options opts,
java.util.List<IFileSpec> fileSpecs,
java.lang.String[] stringParams,
boolean annotateFiles,
IServer server)
Omnibus processParameters method.
|
static java.lang.String[] |
Parameters.processParameters(Options opts,
java.util.List<IFileSpec> fileSpecs,
java.lang.String[] stringParams,
IServer server)
Process options, filespecs arguments, and string arguments for common
methods.
|
static java.lang.String[] |
Parameters.processParameters(Options opts,
java.util.List<IFileSpec> fileSpecs,
java.lang.String stringParam,
IServer server)
Process options, filespecs arguments, and a single string argument for
common methods.
|
Modifier and Type | Method and Description |
---|---|
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) |
static java.util.List<IFileSpec> |
ResultMapParser.parseCommandResultMapAsFileSpecs(int id,
IServer server,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> resultMaps)
Parses the command result map as file specs.
|
static java.util.List<IFileSpec> |
ResultMapParser.parseGraphCommandResultMapAsFileSpecs(IServer server,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> resultMaps)
Parses the graph command result map as file specs.
|
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<java.lang.String> |
Options.processOptions(IServer server)
Turn this (specific) options object into a list of strings to be sent to
the Perforce server as options for a specific command.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
SubmitOptions.processOptions(IServer server)
Note that the implementation of the various options here is less straightforward
than for typical server-based Options classes due to the lack of one-to-one correspondence
between options and flags and the need for strict option ordering.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
CopyFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
SyncOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
LabelSyncOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetDiffFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
ReconcileFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
ResolveFilesAutoOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
UnlockFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
ShelveFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
AddFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
MergeFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
ResolvedFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
PopulateFilesOptions.processOptions(IServer server)
Process options.
|
java.util.List<java.lang.String> |
UnshelveFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
IntegrateFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
LockFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
DeleteFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
ReopenFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
RevertFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
EditFilesOptions.processOptions(IServer server) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
ListOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetUserGroupsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
ChangelistOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetChangelistDiffsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetDirectoriesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetCountersOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
UpdateClientOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetClientsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
ExportRecordsOptions.processOptions(IServer server)
Process options.
|
java.util.List<java.lang.String> |
PropertyOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
KeyOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
SetFileAttributesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetBranchSpecOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
StreamOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
LoginOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
DescribeOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
DeleteBranchSpecOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetJobsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
MatchingLinesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetFileAnnotationsOptions.processOptions(IServer server)
If the wsOpts field is non-null, those values will override
the corresponding explicit boolean fields.
|
java.util.List<java.lang.String> |
ObliterateFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
UpdateUserOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
DeleteLabelOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
ReloadOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
FixJobsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetPropertyOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
CounterOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
TagFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
TrustOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetChangelistsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
LogTailOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetSubmittedIntegrationsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GraphReceivePackOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
DeleteClientOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
SwitchClientViewOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
JournalWaitOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetReviewChangelistsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetUsersOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
SearchJobsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetStreamsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetFileSizesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetFileDiffsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetInterchangesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetStreamOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
DuplicateRevisionsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetClientTemplateOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetReviewsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GraphRevListOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetDepotFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GraphCommitLogOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetFixesOptions.processOptions(IServer server)
IServer.getFixList-specific options processing.
|
java.util.List<java.lang.String> |
VerifyFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetFileContentsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetRevisionHistoryOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
UpdateUserGroupOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetLabelsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetExtendedFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
UnloadOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
StreamIntegrationStatusOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
OpenedFilesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetBranchSpecsOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetProtectionEntriesOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetKeysOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
ReposOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GraphShowRefOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
MoveFileOptions.processOptions(IServer server) |
java.util.List<java.lang.String> |
GetServerProcessesOptions.processOptions(IServer server) |
Modifier and Type | Interface and Description |
---|---|
interface |
IOptionsServer
An extension of the basic IServer interface to provide Options object-based
method access to Perforce server functionality and objects.
|
interface |
IStreamingServer |
Modifier and Type | Method and Description |
---|---|
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.
|
Copyright © 2018 Perforce Software. All Rights Reserved.