Class FixesDelegator
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
-
- com.perforce.p4java.impl.mapbased.server.cmd.FixesDelegator
-
- All Implemented Interfaces:
IFixesDelegator
public class FixesDelegator extends BaseDelegator implements IFixesDelegator
Implementation of a delegator to support 'p4 fixes'.
-
-
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 FixesDelegator(IOptionsServer server)
Instantiates a new fixes delegator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IFix>
getFixes(java.util.List<IFileSpec> fileSpecs, GetFixesOptions opts)
Return a list of all Perforce jobs with fix records associated with them, along with the changelist number of the fix.java.util.List<IFix>
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.
-
-
-
Constructor Detail
-
FixesDelegator
public FixesDelegator(IOptionsServer server)
Instantiates a new fixes delegator.- Parameters:
server
- the server
-
-
Method Detail
-
getFixList
public java.util.List<IFix> getFixList(java.util.List<IFileSpec> fileSpecs, int changeListId, java.lang.String jobId, boolean includeIntegrations, int maxFixes) throws ConnectionException, RequestException, AccessException
Description copied from interface:IFixesDelegator
Return a list of all Perforce jobs with fix records associated with them, along with the changelist number of the fix. Detailed semantics for this method are given in the main Perforce documentation for the p4 command "fixes".Note that this method (unlike the main file list methods) throws an exception and stops at the first encountered error.
- Specified by:
getFixList
in interfaceIFixesDelegator
- Parameters:
fileSpecs
- if given, restrict output to fixes associated with these fileschangeListId
- if positive, only fixes from the numbered changelist are listed.jobId
- if non-null, only fixes for the named job are listedincludeIntegrations
- if true, include any fixes made by changelists integrated into the specified filesmaxFixes
- if positive, restrict the list to the first maxFixes fixes- Returns:
- non-null but possibly empty list of qualifying IFix fixes.
- 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
-
getFixes
public java.util.List<IFix> getFixes(java.util.List<IFileSpec> fileSpecs, GetFixesOptions opts) throws P4JavaException
Description copied from interface:IFixesDelegator
Return a list of all Perforce jobs with fix records associated with them, along with the changelist number of the fix. Detailed semantics for this method are given in the main Perforce documentation for the p4 command "fixes".Note that this method (unlike the main file list methods) throws an exception and stops at the first encountered error.
- Specified by:
getFixes
in interfaceIFixesDelegator
- Parameters:
fileSpecs
- if given, restrict output to fixes associated with these filesopts
- FixListOptions object describing optional parameters; if null, no options are set- Returns:
- non-null but possibly empty list of qualifying IFix fixes.
- Throws:
P4JavaException
- if any error occurs in the processing of this method.
-
-