Examples of storeAuthor()


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

  public void setUp() {
    collabReview = AutoConfigurator.newConfiguredApplication();
    repository = (BasicRepository) collabReview.getRepository();
    repository.reset();
    AuthorManager authorManager = collabReview.getAuthorManager();
    authorManager.storeAuthor(new Author("alice"));
    authorManager.storeAuthor(new Author("bob"));
    authorManager.storeAuthor(new Author("chris"));
    artifactAuthor = new Author[]{
        authorManager.getAuthor("alice"),
        authorManager.getAuthor("bob"),
View Full Code Here

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

    collabReview = AutoConfigurator.newConfiguredApplication();
    repository = (BasicRepository) collabReview.getRepository();
    repository.reset();
    AuthorManager authorManager = collabReview.getAuthorManager();
    authorManager.storeAuthor(new Author("alice"));
    authorManager.storeAuthor(new Author("bob"));
    authorManager.storeAuthor(new Author("chris"));
    artifactAuthor = new Author[]{
        authorManager.getAuthor("alice"),
        authorManager.getAuthor("bob"),
        authorManager.getAuthor("alice"),
View Full Code Here

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

    repository = (BasicRepository) collabReview.getRepository();
    repository.reset();
    AuthorManager authorManager = collabReview.getAuthorManager();
    authorManager.storeAuthor(new Author("alice"));
    authorManager.storeAuthor(new Author("bob"));
    authorManager.storeAuthor(new Author("chris"));
    artifactAuthor = new Author[]{
        authorManager.getAuthor("alice"),
        authorManager.getAuthor("bob"),
        authorManager.getAuthor("alice"),
        authorManager.getAuthor("bob"),
View Full Code Here

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

      }
      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);
      }
View Full Code Here

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

    AuthorManager authorManager = agentManager.getCollabReview().getAuthorManager();
    Author author = authorManager.getAuthor(reviewerName);
    if (author == null) {
      logger.info("Registering a new author for the MicroEditCastigator: " + reviewerName);
      author = authorManager.createAuthor(reviewerName);
      authorManager.storeAuthor(author);
    }
  }

  @Override
  public String getProposedName() {
View Full Code Here

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

    AuthorManager manager = agentManager.getCollabReview().getAuthorManager();
    Author author = manager.getAuthor(getProposedName());
    if (author == null) {
      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();
      }
    }
View Full Code Here

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

        String pack = matcher.group(1);
        assert pack != null;
        Author author = authorManager.getAuthor(pack);
        if (author == null) {
          author = authorManager.createAuthor(pack);
          authorManager.storeAuthor(author);
          authorManager.commit();
        }
        packages.add(author);
      }
      // normalize
View Full Code Here

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

    AuthorManager authorManager = collabReview.getAuthorManager();
    state = null;
    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]),
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.