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
public class ReviewDelegator extends BaseDelegator implements 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
Constructors Constructor Description ReviewDelegator(IOptionsServer server)
Instantiate a new ReviewDelegator, providing the server object that will be used to execute Perforce Helix attribute commands.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IReviewChangelist>
getReviewChangelists(GetReviewChangelistsOptions opts)
Get a list of all submitted changelists equal or above a provided changelist number that have not been reviewed before.
-
-
-
Constructor Detail
-
ReviewDelegator
public ReviewDelegator(IOptionsServer server)
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 Detail
-
getReviewChangelists
public java.util.List<IReviewChangelist> getReviewChangelists(GetReviewChangelistsOptions opts) throws P4JavaException
Description copied from interface:IReviewDelegator
Get 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:
getReviewChangelists
in 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.
-
-