Class InaccessibleProjectTypeDialogDataProviderImpl

java.lang.Object
com.atlassian.jira.project.type.warning.InaccessibleProjectTypeDialogDataProviderImpl
All Implemented Interfaces:
InaccessibleProjectTypeDialogDataProvider

public class InaccessibleProjectTypeDialogDataProviderImpl extends Object implements InaccessibleProjectTypeDialogDataProvider
  • Constructor Details

  • Method Details

    • shouldDisplayInaccessibleWarning

      public boolean shouldDisplayInaccessibleWarning(ApplicationUser user, Project project)
      Description copied from interface: InaccessibleProjectTypeDialogDataProvider
      Indicates whether the inaccessible project type warning should be displayed or not, on a page that is displaying a single project.
      Specified by:
      shouldDisplayInaccessibleWarning in interface InaccessibleProjectTypeDialogDataProvider
      Parameters:
      user - The user for which we are performing the check.
      project - The project with the type for which we will display the warning
      Returns:
      Whether the inaccessible project type warning should be displayed.
    • provideData

      public void provideData(com.atlassian.webresource.api.assembler.WebResourceAssembler assembler, ApplicationUser user, Project project)
      Description copied from interface: InaccessibleProjectTypeDialogDataProvider
      Provides the data needed to render the dialog attached to the warning symbols displayed for the project type of the given project.

      This method should be used when the warning symbols are displayed on a page that is displaying a single project, since the messages of the dialogs will have nouns in singular form.

      Specified by:
      provideData in interface InaccessibleProjectTypeDialogDataProvider
      Parameters:
      assembler - The assembler to be used to provide the data
      user - The user for which the warning dialog will be rendered
      project - The keys of the project types for which the warning dialogs will be rendered
    • getJsonable

      protected com.atlassian.json.marshal.Jsonable getJsonable(InaccessibleProjectTypeDialogContent content)