public class

ProjectTypeIconRendererImpl

extends Object
implements ProjectTypeIconRenderer
java.lang.Object
   ↳ com.atlassian.jira.project.type.ProjectTypeIconRendererImpl

Class Overview

Default implementation for ProjectTypeIconRenderer

Summary

Public Constructors
ProjectTypeIconRendererImpl(ProjectTypeManager projectTypeManager)
Public Methods
Optional<String> getIconToRender(ProjectTypeKey key)
Returns the icon to render for the project type with the given key.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.project.type.ProjectTypeIconRenderer

Public Constructors

public ProjectTypeIconRendererImpl (ProjectTypeManager projectTypeManager)

Public Methods

public Optional<String> getIconToRender (ProjectTypeKey key)

Returns the icon to render for the project type with the given key.

The icon to be rendered will be the one defined for the project type with the given key as long as that project type is installed on the JIRA instance.

Otherwise, the icon will be a grayed out one, indicating that the project type is not accessible.

Parameters
key The project type key.
Returns
  • The icon to be rendered. The returned Optional will be empty if project types is disabled.