Class PostCommitNotificationServiceImpl
- java.lang.Object
-
- org.guvnor.structure.backend.repositories.git.hooks.impl.PostCommitNotificationServiceImpl
-
- All Implemented Interfaces:
PostCommitNotificationService
@ApplicationScoped @Startup public class PostCommitNotificationServiceImpl extends Object implements PostCommitNotificationService
-
-
Field Summary
-
Fields inherited from interface org.guvnor.structure.backend.repositories.git.hooks.PostCommitNotificationService
BUNDLE_PARAM
-
-
Constructor Summary
Constructors Constructor Description PostCommitNotificationServiceImpl(org.uberfire.rpc.SessionInfo sessionInfo, javax.enterprise.event.Event<org.guvnor.structure.repositories.impl.git.event.PostCommitNotificationEvent> notificationEvent, MessageReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
void
notifyUser(org.guvnor.structure.repositories.impl.git.GitRepository repo, Integer exitCode)
Triggers the notification for a given repo & exitCode
-
-
-
Constructor Detail
-
PostCommitNotificationServiceImpl
@Inject public PostCommitNotificationServiceImpl(org.uberfire.rpc.SessionInfo sessionInfo, javax.enterprise.event.Event<org.guvnor.structure.repositories.impl.git.event.PostCommitNotificationEvent> notificationEvent, MessageReader reader)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
notifyUser
public void notifyUser(org.guvnor.structure.repositories.impl.git.GitRepository repo, Integer exitCode)
Description copied from interface:PostCommitNotificationService
Triggers the notification for a given repo & exitCode- Specified by:
notifyUser
in interfacePostCommitNotificationService
- Parameters:
repo
- TheGitRepository
that triggered the post-commit git hookexitCode
- The exit code of the post-commit script
-
-