public interface ProjectCreateHandler
Implementations of this class need to be registered through ProjectCreateRegistrar.register(ProjectCreateHandler)
for the notifications to be triggered.
Modifier and Type | Method and Description |
---|---|
String |
getHandlerId()
Returns a unique identifier for the handler.
|
void |
onProjectCreated(ProjectCreatedData projectCreatedData)
Method called every time a project is created.
|
void |
onProjectCreationRolledBack(ProjectCreatedData projectCreatedData)
This method will only be called if the creation of the project is rolled back.
|
String getHandlerId()
void onProjectCreated(ProjectCreatedData projectCreatedData) throws CreateException
projectCreatedData
- Object encapsulating the information about the recently created project.CreateException
- An exception if something went wrong.void onProjectCreationRolledBack(ProjectCreatedData projectCreatedData)
That could happen if one of the ProjectCreateHandler
returns an error on #onProjectCreated(Project)
On this method, the handler should undo all of the changes made by it when #onProjectCreated(Project)
was called.
The parameters passed to this method will be exactly the same as the ones when #onProjectCreated(Project)
was called.
projectCreatedData
- Object encapsulating the information about the recently created project.Copyright © 2002-2024 Atlassian. All Rights Reserved.