public class ProjectTypeUpdatedRegistrarImpl extends Object implements ProjectTypeUpdatedRegistrar, ProjectTypeUpdatedNotifier
Modifier and Type | Field and Description |
---|---|
protected Map<String,ProjectTypeUpdatedHandler> |
handlers |
Constructor and Description |
---|
ProjectTypeUpdatedRegistrarImpl() |
Modifier and Type | Method and Description |
---|---|
protected Collection<ProjectTypeUpdatedHandler> |
getHandlers() |
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 final Map<String,ProjectTypeUpdatedHandler> handlers
public boolean notifyAllHandlers(ApplicationUser user, Project project, ProjectTypeKey oldProjectType, ProjectTypeKey newProjectType)
ProjectTypeUpdatedNotifier
ProjectTypeUpdatedHandler
objects that a project type update has happened.notifyAllHandlers
in interface ProjectTypeUpdatedNotifier
user
- The user performing the project updateproject
- The project for which the project type has been updatedoldProjectType
- The old project typenewProjectType
- The new project typeprotected Collection<ProjectTypeUpdatedHandler> getHandlers()
public void register(ProjectTypeUpdatedHandler handlerToAdd)
ProjectTypeUpdatedRegistrar
register
in interface ProjectTypeUpdatedRegistrar
handlerToAdd
- The handler to register.public void unregister(ProjectTypeUpdatedHandler handlerToRemove)
ProjectTypeUpdatedRegistrar
unregister
in interface ProjectTypeUpdatedRegistrar
handlerToRemove
- The handler to unregister.Copyright © 2002-2019 Atlassian. All Rights Reserved.