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

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


        EntityRepository repository = dao.findByID(repositoryToMinerId, EntityRepository.class);
        int i = 0;
        calculeSubProgress(i, gitTeams.size());
        while (!canceled && i < gitTeams.size()) {
            Team gitTeam = gitTeams.get(i);
            EntityTeam team = minerTeam(gitTeam);
            repository.addTeam(team);
            dao.edit(team);
            i++;
            calculeSubProgress(i, gitTeams.size());
        }
View Full Code Here


            calculeSubProgress(i, gitTeams.size());
        }
    }

    private EntityTeam minerTeam(Team gitTeam) {
        EntityTeam team = null;
        try {
            team = TeamServices.createEntity(gitTeam, dao);
            out.printLog("Team gravado com sucesso: " + gitTeam.getName() + " - ID: " + gitTeam.getId());
        } catch (Exception ex) {
            ex.printStackTrace();
View Full Code Here

    public static EntityTeam createEntity(Team gitTeam, GenericDao dao) {
        if (gitTeam == null) {
            return null;
        }

        EntityTeam team = getTeamByTeamID(gitTeam.getId(), dao);

        if (team == null) {
            team = new EntityTeam();
        }

        team.setIdTeam(gitTeam.getId());
        team.setMembersCount(gitTeam.getMembersCount());
        team.setName(gitTeam.getName());
        team.setPermission(gitTeam.getPermission());
        team.setReposCount(gitTeam.getReposCount());
        team.setUrl(gitTeam.getUrl());

        if (team.getId() == null || team.getId().equals(0l)) {
            dao.insert(team);
        } else {
            dao.edit(team);
        }
View Full Code Here

TOP

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

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.