public class

ProjectTypeUpdatedRegistrarImpl

extends Object
implements ProjectTypeUpdatedNotifier ProjectTypeUpdatedRegistrar
java.lang.Object
   ↳ com.atlassian.jira.project.type.ProjectTypeUpdatedRegistrarImpl

Summary

Fields
protected final Map<StringProjectTypeUpdatedHandler> handlers
Public Constructors
ProjectTypeUpdatedRegistrarImpl()
Public Methods
boolean notifyAllHandlers(ApplicationUser user, Project project, ProjectTypeKey oldProjectType, ProjectTypeKey newProjectType)
Notifies all ProjectTypeUpdatedHandler objects that a project type update has happened.
void register(ProjectTypeUpdatedHandler handlerToAdd)
Registers a handler that will get notifications every time the type of a project is updated.
void unregister(ProjectTypeUpdatedHandler handlerToRemove)
Unregisters a handler, which means that it will stop getting notifications for project type updates.
Protected Methods
Collection<ProjectTypeUpdatedHandler> getHandlers()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.project.type.ProjectTypeUpdatedNotifier
From interface com.atlassian.jira.project.type.ProjectTypeUpdatedRegistrar

Fields

protected final Map<StringProjectTypeUpdatedHandler> handlers

Public Constructors

public ProjectTypeUpdatedRegistrarImpl ()

Public Methods

public boolean notifyAllHandlers (ApplicationUser user, Project project, ProjectTypeKey oldProjectType, ProjectTypeKey newProjectType)

Notifies all ProjectTypeUpdatedHandler objects that a project type update has happened.

Parameters
user The user performing the project update
project The project for which the project type has been updated
oldProjectType The old project type
newProjectType The new project type
Returns
  • False if any of the handlers failed while handling the notification. True if everything went ok.

public void register (ProjectTypeUpdatedHandler handlerToAdd)

Registers a handler that will get notifications every time the type of a project is updated.

Parameters
handlerToAdd The handler to register.

public void unregister (ProjectTypeUpdatedHandler handlerToRemove)

Unregisters a handler, which means that it will stop getting notifications for project type updates.

Parameters
handlerToRemove The handler to unregister.

Protected Methods

protected Collection<ProjectTypeUpdatedHandler> getHandlers ()