Class ProjectTypeValidator

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

public class ProjectTypeValidator extends Object
Validator for project types.
  • Constructor Details

    • ProjectTypeValidator

      public ProjectTypeValidator(ProjectTypeManager projectTypeManager)
  • Method Details

    • isValid

      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