public class InaccessibleProjectTypeDialogDataProviderImpl extends Object implements InaccessibleProjectTypeDialogDataProvider
InaccessibleProjectTypeDialogDataProvider| Constructor and Description |
|---|
InaccessibleProjectTypeDialogDataProviderImpl(GlobalPermissionManager globalPermissionManager,
PermissionManager permissionManager,
ProjectTypeManager projectTypeManager,
InaccessibleProjectTypeDialogContentProvider dialogContentProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected com.atlassian.json.marshal.Jsonable |
getJsonable(InaccessibleProjectTypeDialogContent content) |
void |
provideData(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.
|
boolean |
shouldDisplayInaccessibleWarning(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.
|
public InaccessibleProjectTypeDialogDataProviderImpl(GlobalPermissionManager globalPermissionManager, PermissionManager permissionManager, ProjectTypeManager projectTypeManager, InaccessibleProjectTypeDialogContentProvider dialogContentProvider)
public boolean shouldDisplayInaccessibleWarning(ApplicationUser user, Project project)
InaccessibleProjectTypeDialogDataProvidershouldDisplayInaccessibleWarning in interface InaccessibleProjectTypeDialogDataProvideruser - The user for which we are performing the check.project - The project with the type for which we will display the warningpublic void provideData(com.atlassian.webresource.api.assembler.WebResourceAssembler assembler,
ApplicationUser user,
Project project)
InaccessibleProjectTypeDialogDataProviderThis 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.
provideData in interface InaccessibleProjectTypeDialogDataProviderassembler - 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 renderedprotected com.atlassian.json.marshal.Jsonable getJsonable(InaccessibleProjectTypeDialogContent content)
Copyright © 2002-2022 Atlassian. All Rights Reserved.