Examples of visitAllArtifacts()


Examples of net.sf.collabreview.core.Grouping.visitAllArtifacts()

  private void delete(ActionData actionData) {
    Grouping target = repository.getGrouping(actionData.getSourcePath());
    if (target != null) {
      logger.debug("Deleting Grouping: " + target.getName());
      final Date date = actionData.getDate();
      target.visitAllArtifacts(new Grouping.ArtifactVisitListener() {
        public void visit(Grouping grouping, ArtifactIdentifier aid) {
          Artifact obsArt = repository.getArtifact(aid);
          obsArt.setObsoleteDate(date);
          grouping.removeArtifact(obsArt);
        }
View Full Code Here

Examples of net.sf.collabreview.core.Grouping.visitAllArtifacts()

    if (origin == null) {
      logger.warn("No origin grouping to copy from: " + copiedFrom);
      return;
    }
    // ... if yes, copy all Artifacts to the new Grouping
    origin.visitAllArtifacts(new Grouping.ArtifactVisitListener() {
      public void visit(Grouping grouping, ArtifactIdentifier aid) {
        rebranch(grouping, copiedFrom, aid, actionData);
      }
    });
  }
View Full Code Here

Examples of net.sf.collabreview.core.Grouping.visitAllArtifacts()

    if (!branches.hasChange()) {
      return;
    }
    logger.debug("changing for " + target.getName() + " branch from " + branches.oldBranch + " to " + branches.newBranch + ", and prefix from " + branches.oldPrefix + " to " + branches.newPrefix);
    // change the names of all contained artifacts by replacing the old prefix with the new one
    target.visitAllArtifacts(new Grouping.ArtifactVisitListener() {
      public void visit(Grouping grouping, ArtifactIdentifier oldId) {
        String newName = oldId.getName();
        if (oldId.getName().startsWith(branches.oldPrefix)) {
          newName = branches.newPrefix + oldId.getName().substring(branches.oldPrefix.length());
        }
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.