test.plugin
Class ContextToLabelsEventListener
java.lang.Object
test.plugin.ContextToLabelsEventListener
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean
public class ContextToLabelsEventListener
- extends java.lang.Object
- implements org.springframework.beans.factory.DisposableBean
Adds parameters from the page or blog post create context as labels when the page or blog post
has been created.
Used for checking that PageCreateEvent
and BlogPostCreateEvent
contain expected
parameters in their context property.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextToLabelsEventListener
public ContextToLabelsEventListener(com.atlassian.event.api.EventPublisher eventPublisher,
LabelManager labelManager)
handlePageCreate
@EventListener
public void handlePageCreate(PageCreateEvent event)
handleBlogCreate
@EventListener
public void handleBlogCreate(BlogPostCreateEvent event)
keepLabelAddedDuringPageCreation
@EventListener
public void keepLabelAddedDuringPageCreation(LabelRemoveEvent event)
destroy
public void destroy()
throws java.lang.Exception
- Specified by:
destroy
in interface org.springframework.beans.factory.DisposableBean
- Throws:
java.lang.Exception
Copyright © 2003-2013 Atlassian. All Rights Reserved.