Class InaccessibleProjectTypeDialogDataProviderImpl
java.lang.Object
com.atlassian.jira.project.type.warning.InaccessibleProjectTypeDialogDataProviderImpl
- All Implemented Interfaces:
InaccessibleProjectTypeDialogDataProvider
public class InaccessibleProjectTypeDialogDataProviderImpl
extends Object
implements InaccessibleProjectTypeDialogDataProvider
Default implementation of
InaccessibleProjectTypeDialogDataProvider-
Constructor Summary
ConstructorsConstructorDescriptionInaccessibleProjectTypeDialogDataProviderImpl(GlobalPermissionManager globalPermissionManager, PermissionManager permissionManager, ProjectTypeManager projectTypeManager, InaccessibleProjectTypeDialogContentProvider dialogContentProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.atlassian.json.marshal.JsonablevoidprovideData(com.atlassian.webresource.api.assembler.WebResourceAssembler assembler, ApplicationUser user, Project project) Provides the data needed to render the dialog attached to the warning symbols displayed for the project type of the given project.booleanshouldDisplayInaccessibleWarning(ApplicationUser user, Project project) Indicates whether the inaccessible project type warning should be displayed or not, on a page that is displaying a single project.
-
Constructor Details
-
InaccessibleProjectTypeDialogDataProviderImpl
public InaccessibleProjectTypeDialogDataProviderImpl(GlobalPermissionManager globalPermissionManager, PermissionManager permissionManager, ProjectTypeManager projectTypeManager, InaccessibleProjectTypeDialogContentProvider dialogContentProvider)
-
-
Method Details
-
shouldDisplayInaccessibleWarning
Description copied from interface:InaccessibleProjectTypeDialogDataProviderIndicates whether the inaccessible project type warning should be displayed or not, on a page that is displaying a single project.- Specified by:
shouldDisplayInaccessibleWarningin interfaceInaccessibleProjectTypeDialogDataProvider- 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:InaccessibleProjectTypeDialogDataProviderProvides 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:
provideDatain interfaceInaccessibleProjectTypeDialogDataProvider- Parameters:
assembler- The assembler to be used to provide the datauser- The user for which the warning dialog will be renderedproject- The keys of the project types for which the warning dialogs will be rendered
-
getJsonable
protected com.atlassian.json.marshal.Jsonable getJsonable(InaccessibleProjectTypeDialogContent content)
-