Package net.sf.collabreview.core.users

Examples of net.sf.collabreview.core.users.AuthorManager.commit()


      addedFiles.removeAll(incrementBySameOwner);
      Author ownerAuthor = authorManager.getAuthor(owner);
      if (ownerAuthor == null) {
        ownerAuthor = authorManager.createAuthor(owner);
        authorManager.storeAuthor(ownerAuthor);
        authorManager.commit();
      }
      if (revision > 1) {
        repository.getArtifact(new ArtifactIdentifier(printPath, revision - 1, "")).setObsoleteDate(newRevisionDate);
      }
      repository.addArtifact(new ArtifactIdentifier(printPath, revision, ""),
View Full Code Here


      logger.info("Registering a new author for the CheckstyleAgent: " + getProposedName());
      author = manager.createAuthor(getProposedName());
      if (manager.storeAuthor(author) == null) {
        logger.error("Failed to register the new author");
      } else {
        manager.commit();
      }
    }
    // input filter
    ConfigurationData filterConfig = config.getSubElement("filter");
    if (filterConfig != null) {
View Full Code Here

        assert pack != null;
        Author author = authorManager.getAuthor(pack);
        if (author == null) {
          author = authorManager.createAuthor(pack);
          authorManager.storeAuthor(author);
          authorManager.commit();
        }
        packages.add(author);
      }
      // normalize
      NavigableMap<Author, Float> result = new TreeMap<Author, Float>();
View Full Code Here

    repository = collabReview.getRepository();
    repository.reset();
    for (String name : authorNames) {
      authorManager.storeAuthor(authorManager.createAuthor(name));
    }
    authorManager.commit();
    authors = new Author[]{
        authorManager.getAuthor(authorNames[0]),
        authorManager.getAuthor(authorNames[1]),
        authorManager.getAuthor(authorNames[1]),
    };
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.