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

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


        if (issue.getEvents().size() < gitIssueEvents.size()) {
            out.printLog("Issue Events baixados: " + gitIssueEvents.size());
            int i = 0;
            while (!canceled && i < gitIssueEvents.size()) {
                IssueEvent gitIssueEvent = gitIssueEvents.get(i);
                EntityIssueEvent issueEvent = minerIssueEvent(gitIssueEvent);
                issueEvent.setIssue(issue);
                dao.edit(issueEvent);
                i++;
            }
        } else {
            out.printLog("Issue Events já minerados anteriormente: " + gitIssueEvents.size());
View Full Code Here


            out.printLog("Issue Events já minerados anteriormente: " + gitIssueEvents.size());
        }
    }

    private EntityIssueEvent minerIssueEvent(IssueEvent gitIssueEvent) {
        EntityIssueEvent issueEvent = null;
        try {
            issueEvent = IssueEventServices.createEntity(gitIssueEvent, dao);
            out.printLog("Issue Event gravado com sucesso: " + gitIssueEvent.getEvent() + " - Number: " + gitIssueEvent.getId());
        } catch (Exception ex) {
            ex.printStackTrace();
View Full Code Here

    public static EntityIssueEvent createEntity(IssueEvent gitIssueEvent, GenericDao dao) {
        if (gitIssueEvent == null) {
            return null;
        }

        EntityIssueEvent issueEvent = getEventByIssueEventID(gitIssueEvent.getId(), dao);

        if (issueEvent == null) {
            issueEvent = new EntityIssueEvent();

            issueEvent.setMineredAt(new Date());
            issueEvent.setCreatedAt(gitIssueEvent.getCreatedAt());
            issueEvent.setActor(UserServices.createEntity(gitIssueEvent.getActor(), dao, false));
            issueEvent.setCommitId(gitIssueEvent.getCommitId());
            issueEvent.setEvent(gitIssueEvent.getEvent());
            issueEvent.setIdIssueEvent(gitIssueEvent.getId());
            issueEvent.setUrl(gitIssueEvent.getUrl());

            dao.insert(issueEvent);
        }

        return issueEvent;
View Full Code Here

TOP

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

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.