Examples of NewBranchEvent


Examples of org.guvnor.structure.repositories.NewBranchEvent

        }
    }

    @Override
    public SocialActivitiesEvent toSocial(Object object) {
        NewBranchEvent event = (NewBranchEvent) object;

        return new SocialActivitiesEvent(
                new SocialUser("Mr. Process"),
                AssetManagementEventTypes.BRANCH_CREATED.name(),
                new Date(event.getTimestamp())
        ).withAdicionalInfo("Branch " + event.getBranchName() + " created for repository " + event.getRepositoryAlias());
    }
View Full Code Here

Examples of org.guvnor.structure.repositories.NewBranchEvent

        Path branchPath = ioService.get(URI.create("default://" + branchName + "@" + gitRepo));
        Path branchOriginPath = ioService.get(URI.create("default://" + branchOriginName + "@" + gitRepo));

        ioService.copy(branchOriginPath, branchPath);

        beanManager.fireEvent( new NewBranchEvent( gitRepo, branchName, Paths.convert(branchPath), System.currentTimeMillis() ) );

        ExecutionResults results = new ExecutionResults();
        return results;
    }
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.