public class ReviewsDelegator extends BaseDelegator implements IReviewsDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION
Constructor and Description |
---|
ReviewsDelegator(IOptionsServer server)
Instantiate a new ReviewsDelegator, providing the server object that will be used to
execute Perforce Helix attribute commands.
|
Modifier and Type | Method and Description |
---|---|
List<IUserSummary> |
getReviews(int changelistId,
List<IFileSpec> fileSpecs)
Get a list of all users who have subscribed to review the named files,
the files in the numbered changelist, or all files by default.
|
List<IUserSummary> |
getReviews(List<IFileSpec> fileSpecs,
GetReviewsOptions opts)
Get a list of all users who have subscribed to review the named files.
|
public ReviewsDelegator(IOptionsServer server)
server
- a concrete implementation of a Perforce Helix Serverpublic List<IUserSummary> getReviews(List<IFileSpec> fileSpecs, GetReviewsOptions opts) throws P4JavaException
IReviewsDelegator
Note that the returned IUserSummary objects will have null access and update dates associated with them.
getReviews
in interface IReviewsDelegator
fileSpecs
- if not null, use this list as the list of named files rather
than all files.opts
- GetReviewsOptions object describing optional parameters; if
null, no options are set.P4JavaException
- if any error occurs in the processing of this method.public List<IUserSummary> getReviews(int changelistId, List<IFileSpec> fileSpecs) throws ConnectionException, RequestException, AccessException
IReviewsDelegator
Note that the returned IUserSummary objects will have null access and update dates associated with them.
getReviews
in interface IReviewsDelegator
changelistId
- if not IChangelist.UNKNOWN, use this changelist ID.fileSpecs
- if not null, use this list as the list of named files rather
than all files.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 callerCopyright © 2017 Perforce Software. All Rights Reserved.