public class

ProjectTypeValidator

extends Object
java.lang.Object
   ↳ com.atlassian.jira.bc.project.ProjectTypeValidator

Class Overview

Validator for project types.

Summary

Public Constructors
ProjectTypeValidator(ProjectTypeManager projectTypeManager)
Public Methods
boolean isValid(ApplicationUser user, ProjectTypeKey projectTypeKey)
Validates the given project type.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProjectTypeValidator (ProjectTypeManager projectTypeManager)

Public Methods

public boolean isValid (ApplicationUser user, ProjectTypeKey projectTypeKey)

Validates the given project type. A project type can not be null and its value must be defined on the JIRA instance.

Parameters
user The user that performs the action during which the project type gets validated
projectTypeKey The project type key to validate
Returns
  • Whether the project type is valid or not