Class IntegratedDelegator
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
-
- com.perforce.p4java.impl.mapbased.server.cmd.IntegratedDelegator
-
- All Implemented Interfaces:
IIntegratedDelegator
public class IntegratedDelegator extends BaseDelegator implements IIntegratedDelegator
Implementation for integrated delegator.
-
-
Field Summary
-
Fields inherited from class com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION
-
-
Constructor Summary
Constructors Constructor Description IntegratedDelegator(IOptionsServer server)
Instantiates a new integrated delegator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IFileSpec>
getSubmittedIntegrations(java.util.List<IFileSpec> fileSpecs, GetSubmittedIntegrationsOptions opts)
Get a list of submitted integrations for the passed-in filespecs.java.util.List<IFileSpec>
getSubmittedIntegrations(java.util.List<IFileSpec> fileSpecs, java.lang.String branchSpec, boolean reverseMappings)
Get a list of submitted integrations for the passed-in filespecs.
-
-
-
Constructor Detail
-
IntegratedDelegator
public IntegratedDelegator(IOptionsServer server)
Instantiates a new integrated delegator.- Parameters:
server
- the server
-
-
Method Detail
-
getSubmittedIntegrations
public java.util.List<IFileSpec> getSubmittedIntegrations(java.util.List<IFileSpec> fileSpecs, java.lang.String branchSpec, boolean reverseMappings) throws ConnectionException, RequestException, AccessException
Description copied from interface:IIntegratedDelegator
Get a list of submitted integrations for the passed-in filespecs.- Specified by:
getSubmittedIntegrations
in interfaceIIntegratedDelegator
- Parameters:
fileSpecs
- if null or ommitted, all qualifying depot files are used.branchSpec
- if non-null, only files integrated from the source to target files in the branch view are shown. Qualified files are displayed even if they were integrated without using the branch view itself.reverseMappings
- if true,reverses the mappings in the branch view, with the target files and source files exchanging place. This requires the branchSpec to be non-null.- Returns:
- a non-null but possibly empty list of IFileSpec representing qualifying integrations.
- Throws:
ConnectionException
- if the Perforce server is unreachable or is not connected.RequestException
- if the Perforce server encounters an error during its processing of the requestAccessException
- if the Perforce server denies access to the caller
-
getSubmittedIntegrations
public java.util.List<IFileSpec> getSubmittedIntegrations(java.util.List<IFileSpec> fileSpecs, GetSubmittedIntegrationsOptions opts) throws P4JavaException
Description copied from interface:IIntegratedDelegator
Get a list of submitted integrations for the passed-in filespecs.- Specified by:
getSubmittedIntegrations
in interfaceIIntegratedDelegator
- Parameters:
fileSpecs
- if null or omitted, all qualifying depot files are used.opts
- GetSubmittedIntegrations object describing optional parameters; if null, no options are set.- Returns:
- a non-null but possibly empty list of IFileSpec representing qualifying integrations.
- Throws:
P4JavaException
- if an error occurs processing this method and its parameters.
-
-