@PublicApi public final class

ProjectType

extends Object
java.lang.Object
   ↳ com.atlassian.jira.project.type.ProjectType

@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

Represents a project type defined by a JiraApplication.

Summary

Public Constructors
ProjectType(ProjectTypeKey key, String descriptionI18nKey, String icon, String color, int weight)
Public Methods
boolean equals(Object o)
String getColor()
String getDescriptionI18nKey()
String getIcon()
ProjectTypeKey getKey()
int getWeight()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProjectType (ProjectTypeKey key, String descriptionI18nKey, String icon, String color, int weight)

Parameters
key A unique identifier for a project type. This should be a semi-human readable string that can be shown in the UI of an application in the absence of this pluggable project type definition.
descriptionI18nKey The i18n description key for this project type
icon A Base64 representation of a SVG image that represents the icon for the projects of this type.
color A string representing the color to be used on lozenges that are displayed for projects of this type. It should be in hex RGB format (i.e "#AABBCC")
weight An integer used for sorting project types when displaying.

Public Methods

public boolean equals (Object o)

public String getColor ()

public String getDescriptionI18nKey ()

public String getIcon ()

public ProjectTypeKey getKey ()

public int getWeight ()

public int hashCode ()

public String toString ()