public class WhereDelegator extends java.lang.Object implements IWhereDelegator
Constructor and Description |
---|
WhereDelegator(IServer server,
IClient client) |
Modifier and Type | Method and Description |
---|---|
java.util.List<IFileSpec> |
localWhere(java.util.List<IFileSpec> fileSpecs)
For each of the passed-in file specs, show how the named file maps through
the client view.
|
java.util.List<IFileSpec> |
where(java.util.List<IFileSpec> fileSpecs)
For each of the passed-in file specs, show how the named file maps through
the client view.
|
public java.util.List<IFileSpec> where(java.util.List<IFileSpec> fileSpecs) throws ConnectionException, AccessException
IWhereDelegator
Note that this method will return an empty list unless the client is the IServer object's current client.
The returned IFiles contain all three of the depot, client, and local file paths of the corresponding fileSpec array element where appropriate, or the usual server-generated error message if there was no corresponding mapping. The main exception to this is the case when no filespecs are given (i.e. the fileSpecs array is null or empty), when the mappings for '...' (all files in the current directory and below) are returned (if they exist).
where
in interface IWhereDelegator
fileSpecs
- a list of Perforce file specifications; can be empty or even
null (see explanation above).ConnectionException
- if the Perforce server is unreachable or is not
connected.AccessException
- if the Perforce server denies access to the callerIWhereDelegator.where(java.util.List)
public java.util.List<IFileSpec> localWhere(java.util.List<IFileSpec> fileSpecs)
IWhereDelegator
Note that this method will return an empty list unless the client is the IServer object's current client.
The returned IFiles contain all three of the depot, client, and local file paths of the corresponding fileSpec array element where appropriate, or the usual server-generated error message if there was no corresponding mapping. The main exception to this is the case when no filespecs are given (i.e. the fileSpecs array is null or empty), when the mappings for '...' (all files in the current directory and below) are returned (if they exist).
Assumes depot syntax is used for original path.
localWhere
in interface IWhereDelegator
fileSpecs
- a list of Perforce file specifications; can be empty or even
null (see explanation above).IWhereDelegator.localWhere(java.util.List)