Class ChangesDelegator
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
-
- com.perforce.p4java.impl.mapbased.server.cmd.ChangesDelegator
-
- All Implemented Interfaces:
IChangesDelegator
public class ChangesDelegator extends BaseDelegator implements IChangesDelegator
ChangesDelegator implementation.
-
-
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 ChangesDelegator(IOptionsServer server)
Instantiates a new changes delegator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IChangelistSummary>
getChangelists(int maxMostRecent, java.util.List<IFileSpec> fileSpecs, java.lang.String clientName, java.lang.String userName, boolean includeIntegrated, boolean submittedOnly, boolean pendingOnly, boolean longDesc)
Gets the changelists.java.util.List<IChangelistSummary>
getChangelists(int maxMostRecent, java.util.List<IFileSpec> fileSpecs, java.lang.String clientName, java.lang.String userName, boolean includeIntegrated, IChangelist.Type type, boolean longDesc)
Gets the changelists.java.util.List<IChangelistSummary>
getChangelists(java.util.List<IFileSpec> fileSpecs, GetChangelistsOptions opts)
Get a list of Perforce changelist summary objects from the Perforce server.
-
-
-
Constructor Detail
-
ChangesDelegator
public ChangesDelegator(IOptionsServer server)
Instantiates a new changes delegator.- Parameters:
server
- the server
-
-
Method Detail
-
getChangelists
public java.util.List<IChangelistSummary> getChangelists(int maxMostRecent, java.util.List<IFileSpec> fileSpecs, java.lang.String clientName, java.lang.String userName, boolean includeIntegrated, IChangelist.Type type, boolean longDesc) throws ConnectionException, RequestException, AccessException
Description copied from interface:IChangesDelegator
Gets the changelists.- Specified by:
getChangelists
in interfaceIChangesDelegator
- Parameters:
maxMostRecent
- the max most recentfileSpecs
- the file specsclientName
- the client nameuserName
- the user nameincludeIntegrated
- the include integratedtype
- the typelongDesc
- the long desc- Returns:
- the changelists
- Throws:
ConnectionException
- the connection exceptionRequestException
- the request exceptionAccessException
- the access exception
-
getChangelists
public java.util.List<IChangelistSummary> getChangelists(int maxMostRecent, java.util.List<IFileSpec> fileSpecs, java.lang.String clientName, java.lang.String userName, boolean includeIntegrated, boolean submittedOnly, boolean pendingOnly, boolean longDesc) throws ConnectionException, RequestException, AccessException
Description copied from interface:IChangesDelegator
Gets the changelists.- Specified by:
getChangelists
in interfaceIChangesDelegator
- Parameters:
maxMostRecent
- the max most recentfileSpecs
- the file specsclientName
- the client nameuserName
- the user nameincludeIntegrated
- the include integratedsubmittedOnly
- the submitted onlypendingOnly
- the pending onlylongDesc
- the long desc- Returns:
- the changelists
- Throws:
ConnectionException
- the connection exceptionRequestException
- the request exceptionAccessException
- the access exception
-
getChangelists
public java.util.List<IChangelistSummary> getChangelists(java.util.List<IFileSpec> fileSpecs, GetChangelistsOptions opts) throws P4JavaException
Get a list of Perforce changelist summary objects from the Perforce server.- Specified by:
getChangelists
in interfaceIChangesDelegator
- Parameters:
fileSpecs
- 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.- Returns:
- a non-null (but possibly empty) list of qualifying changelists.
- Throws:
P4JavaException
- if any error occurs in the processing of this method
-
-