Class ReviewDelegator
java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.ReviewDelegator
- All Implemented Interfaces:
IReviewDelegator
Implementation to handle the Review command.
-
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
ConstructorsConstructorDescriptionReviewDelegator(IOptionsServer server) Instantiate a new ReviewDelegator, providing the server object that will be used to execute Perforce Helix attribute commands. -
Method Summary
Modifier and TypeMethodDescriptionGet a list of all submitted changelists equal or above a provided changelist number that have not been reviewed before.
-
Constructor Details
-
ReviewDelegator
Instantiate a new ReviewDelegator, providing the server object that will be used to execute Perforce Helix attribute commands.- Parameters:
server- a concrete implementation of a Perforce Helix Server
-
-
Method Details
-
getReviewChangelists
public List<IReviewChangelist> getReviewChangelists(GetReviewChangelistsOptions opts) throws P4JavaException Description copied from interface:IReviewDelegatorGet a list of all submitted changelists equal or above a provided changelist number that have not been reviewed before.If only the 'changelistId' option is provided, return a list of changelists that have not been reviewed before, equal or above the specified changelist#.
If only the 'counter' option is provided, return a list of changelists that have not been reviewed before, above the specified counter's changelist#.
If both the 'changelistId' and 'counter' options are specified, 'p4 review' sets the counter to that changelist# and produces no output. This functionality has been superceded by the 'p4 counter' command. The user must have permission to set counters.
- Specified by:
getReviewChangelistsin interfaceIReviewDelegator- Parameters:
opts- GetReviewChangelistsOptions object describing optional parameters; if null, no options are set.- Returns:
- non-null but possibly empty list of IReviewChangelist objects; note that these objects will have null update and access fields.
- Throws:
P4JavaException- if any error occurs in the processing of this method.
-