Package com.google.gerrit.server.changedetail

Examples of com.google.gerrit.server.changedetail.RestoreChange


  @Override
  public ChangeDetail call() throws NoSuchChangeException, OrmException,
      EmailException, NoSuchEntityException, InvalidChangeOperationException,
      PatchSetInfoNotAvailableException, RepositoryNotFoundException,
      IOException {
    final RestoreChange restoreChange = restoreChangeProvider.get();
    restoreChange.setChangeId(patchSetId.getParentKey());
    restoreChange.setMessage(message);
    final ReviewResult result = restoreChange.call();
    if (result.getErrors().size() > 0) {
      throw new NoSuchChangeException(result.getChangeId());
    }
    return changeDetailFactory.create(result.getChangeId()).call();
  }
View Full Code Here


        abandonChange.setChangeId(patchSetId.getParentKey());
        abandonChange.setMessage(changeComment);
        final ReviewResult result = abandonChange.call();
        handleReviewResultErrors(result);
      } else if (restoreChange) {
        final RestoreChange restoreChange = restoreChangeProvider.get();
        restoreChange.setChangeId(patchSetId.getParentKey());
        restoreChange.setMessage(changeComment);
        final ReviewResult result = restoreChange.call();
        handleReviewResultErrors(result);
      }
      if (submitChange) {
        final ReviewResult result = submitFactory.create(patchSetId).call();
        handleReviewResultErrors(result);
View Full Code Here

TOP

Related Classes of com.google.gerrit.server.changedetail.RestoreChange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.