Package br.edu.utfpr.cm.JGitMinerWeb.model.miner

Examples of br.edu.utfpr.cm.JGitMinerWeb.model.miner.EntityLabel


*/
public class LabelServices implements Serializable {

    public static void addLabels(EntityIssue issue, List<Label> gitLabels, GenericDao dao) {
        for (Label gitLabel : gitLabels) {
            EntityLabel label = getLabelByName(gitLabel.getName(), dao);
            if (label == null) {
                label = new EntityLabel();
                label.setMineredAt(new Date());
                label.setName(gitLabel.getName());
                label.setColor(gitLabel.getColor());
                label.setUrl(gitLabel.getUrl());

                dao.insert(label);
            }
            issue.addLabel(label);
        }
View Full Code Here

TOP

Related Classes of br.edu.utfpr.cm.JGitMinerWeb.model.miner.EntityLabel

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.