@PublicApi public class

ProjectCreatedData

extends Object
java.lang.Object
   ↳ com.atlassian.jira.project.ProjectCreatedData

@PublicApi

This class is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Class Overview

Holds the information about a recently created project. This will be passed to ProjectCreateHandlers that are registered to receive notifications about created projects.

Summary

Nested Classes
class ProjectCreatedData.Builder Builder for ProjectCreatedData  
enum ProjectCreatedData.Type  
Public Methods
boolean equals(Object o)
Optional<Long> getExistingProjectId()
Returns the id of the the existing project that was used as a template for the new project
Project getProject()
Returns the created project.
Optional<ProjectTemplateKey> getProjectTemplateKey()
Returns the key of the project template used to create the project.
ProjectCreatedData.Type getType()
Returns CREATE if this is a normal project create call.
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean equals (Object o)

public Optional<Long> getExistingProjectId ()

Returns the id of the the existing project that was used as a template for the new project

Returns
  • The id of the the existing project that was used as a template for the new project

public Project getProject ()

Returns the created project.

Returns
  • The created project.

public Optional<ProjectTemplateKey> getProjectTemplateKey ()

Returns the key of the project template used to create the project.

Returns
  • The key of the project template used to create the project.

public ProjectCreatedData.Type getType ()

Returns CREATE if this is a normal project create call. If this project was created based on shared config with an existing project it will return CREATE_WITH_SHARED_CONFIG

Returns
  • the create operation type

public int hashCode ()