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.
  • Constructor Details

    • 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 Details

    • getReviewChangelists

      public 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 interface IReviewDelegator
      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.