Class InitialWatchersSetup
java.lang.Object
com.atlassian.jira.plugins.initialwatchers.InitialWatchersSetup
- All Implemented Interfaces:
com.atlassian.sal.api.lifecycle.LifecycleAware
public class InitialWatchersSetup
extends Object
implements com.atlassian.sal.api.lifecycle.LifecycleAware
Provides multiple ways to add the Initial watchers field to the create issue form
- Listens for FeatureEnabledEvent
- Listens for ProjectCreatedEvent
On FeatureDisabledEvent, the field will be removed from the different screens.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInitialWatchersSetup(FieldScreenSchemeManager fieldScreenSchemeManager, InitialWatchersFields initialWatchersFields, com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidonFeatureDisabled(FeatureDisabledEvent featureEvent) voidonFeatureEnabled(FeatureEnabledEvent featureEvent) voidvoidonStart()voidonStop()voidregister()void
-
Field Details
-
ASSIGNEE
- See Also:
-
-
Constructor Details
-
InitialWatchersSetup
public InitialWatchersSetup(FieldScreenSchemeManager fieldScreenSchemeManager, InitialWatchersFields initialWatchersFields, com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager)
-
-
Method Details
-
register
@PostConstruct public void register() -
unregister
@PreDestroy public void unregister() -
onStart
public void onStart()- Specified by:
onStartin interfacecom.atlassian.sal.api.lifecycle.LifecycleAware
-
onProjectCreated
-
onFeatureEnabled
-
onFeatureDisabled
-
onStop
public void onStop()- Specified by:
onStopin interfacecom.atlassian.sal.api.lifecycle.LifecycleAware
-