public class ChangesDelegator extends BaseDelegator implements IChangesDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
ChangesDelegator(IOptionsServer server)
Instantiates a new changes delegator.
|
| Modifier and Type | Method and Description |
|---|---|
List<IChangelistSummary> |
getChangelists(int maxMostRecent,
List<IFileSpec> fileSpecs,
String clientName,
String userName,
boolean includeIntegrated,
boolean submittedOnly,
boolean pendingOnly,
boolean longDesc)
Gets the changelists.
|
List<IChangelistSummary> |
getChangelists(int maxMostRecent,
List<IFileSpec> fileSpecs,
String clientName,
String userName,
boolean includeIntegrated,
IChangelist.Type type,
boolean longDesc)
Gets the changelists.
|
List<IChangelistSummary> |
getChangelists(List<IFileSpec> fileSpecs,
GetChangelistsOptions opts)
Get a list of Perforce changelist summary objects from the Perforce
server.
|
public ChangesDelegator(IOptionsServer server)
server - the serverpublic List<IChangelistSummary> getChangelists(int maxMostRecent, List<IFileSpec> fileSpecs, String clientName, String userName, boolean includeIntegrated, IChangelist.Type type, boolean longDesc) throws ConnectionException, RequestException, AccessException
IChangesDelegatorgetChangelists in interface IChangesDelegatormaxMostRecent - the max most recentfileSpecs - the file specsclientName - the client nameuserName - the user nameincludeIntegrated - the include integratedtype - the typelongDesc - the long descConnectionException - the connection exceptionRequestException - the request exceptionAccessException - the access exceptionpublic List<IChangelistSummary> getChangelists(int maxMostRecent, List<IFileSpec> fileSpecs, String clientName, String userName, boolean includeIntegrated, boolean submittedOnly, boolean pendingOnly, boolean longDesc) throws ConnectionException, RequestException, AccessException
IChangesDelegatorgetChangelists in interface IChangesDelegatormaxMostRecent - the max most recentfileSpecs - the file specsclientName - the client nameuserName - the user nameincludeIntegrated - the include integratedsubmittedOnly - the submitted onlypendingOnly - the pending onlylongDesc - the long descConnectionException - the connection exceptionRequestException - the request exceptionAccessException - the access exceptionpublic List<IChangelistSummary> getChangelists(List<IFileSpec> fileSpecs, GetChangelistsOptions opts) throws P4JavaException
getChangelists in interface IChangesDelegatorfileSpecs - if non-empty, limits the results to changelists that affect
the specified files. If the file specification includes a
revision range, limits its results to submitted changelists
that affect those particular revisionsopts - GetChangelistsOptions object describing optional parameters;
if null, no options are set.P4JavaException - if any error occurs in the processing of this methodCopyright © 2017 Perforce Software. All Rights Reserved.