Package net.sf.collabreview.hooks

Examples of net.sf.collabreview.hooks.SetReviewHook


   */
  private List<Hook> registeredHooks = new LinkedList<Hook>();

  @Override
  protected void configure(ConfigurationData configuration) {
    SetReviewHook setReviewHook = new SetReviewHook() {
      @Override
      public int getPriority() {
        return PRIORITY_MEDIUM;
      }

View Full Code Here


  public void testSetReviewHook() {
    storeAuthors();
    repository.addArtifact(identifier[0], null, content[0], authors[0]);
    repository.setReview(identifier[0], alice, 0, "old", false);
    repository.registerSetReviewHook(new SetReviewHook() {
      @Override
      public int getPriority() {
        return PRIORITY_MEDIUM;
      }
View Full Code Here

  }

  @Override
  public void start() {
    logger.debug("Registering SetReviewHook to enable sending of status mails");
    collabReview.getRepository().registerSetReviewHook(new SetReviewHook() {
      @Override
      public synchronized void reviewUpdated(Repository repository, Review oldReview, Review newReview) {
        logger.debug("Review updated, scheduling MessageSender to run in " + messageDelay / 1000 + "s");
        if (mailSender != null) {
          mailSender.cancel();
View Full Code Here

  }

  @Override
  public void configure(final CollabReview collabReview, ConfigurationData configurationData) {
    logger.info("Register SendMoknowpediaEventMails hooks");
    collabReview.getRepository().registerSetReviewHook(new SetReviewHook() {
      @Override
      public void reviewUpdated(Repository repository, Review oldReview, Review newReview) {
        if (oldReview != null && oldReview.getRejectedBy() == null && newReview.getRejectedBy() != null) {

        }
View Full Code Here

TOP

Related Classes of net.sf.collabreview.hooks.SetReviewHook

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.