Plugin triggered by Authentication events

David Koudela March 10, 2015

Hi,

I would like to implement a plugin which provides some activity when a user is successfully logged-in.

I found an interface in SAL: com.atlassian.sal.api.auth.AuthenticationListener

But I did not find any registration method for the listener registration.

The plugin should be developed for FishEye/Crucible.

 

Could you please tell me how to do it?

 

Thanks,

David.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
David Koudela March 11, 2015

Hi Felipe,

Thanks a lot for your response!

 

Initially, I have started with the Event Listener Module, but the module is not triggered by a successful user login.

On the other hand, I am able to catch following events:
com.atlassian.crucible.event.ReviewCreatedEvent.java
com.atlassian.crucible.event.ReviewItemRevisionDataChangedEvent.java
com.atlassian.crucible.event.ReviewUpdatedEvent.java
com.atlassian.crucible.event.ReviewStateChangedEvent.java
com.atlassian.crucible.event.ReviewDescriptionUpdatedEvent.java
com.atlassian.crucible.event.CommentCreatedEvent.java
com.atlassian.crucible.event.CommentUpdatedEvent.java
com.atlassian.crucible.event.CommentDeletedEvent.java
com.atlassian.crucible.event.ReviewerCompletedEvent.java
com.atlassian.crucible.event.AllReviewersCompletedEvent.java

 

It would be fine if there could be a chance to do an activity before a user gets its Dashboard.
Is it possible to trigger the plugin on such event?

 

BTW, EventListener interface and Event class are deprecated and I did not find the way how to implemented it via the related annotation com.atlassian.event.api.EventListener

 

Thanks a lot,

David.

0 votes
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 11, 2015

Hi David,

I am wondering if you can give the Event Listener Module Type a try? An event listener plugin module is an object which is notified when certain internal Crucible or FishEye events occur.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,
Felipe Kraemer

TAGS
AUG Leaders

Atlassian Community Events