Package com.atlassian.jira.sharing.type
Class ProjectShareTypeRenderer
java.lang.Object
com.atlassian.jira.sharing.type.VelocityShareTypeRenderer
com.atlassian.jira.sharing.type.ProjectShareTypeRenderer
- All Implemented Interfaces:
ShareTypeRenderer
A
ShareTypeRenderer for the ProjectShareType.- Since:
- v3.13
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.sharing.type.ShareTypeRenderer
ShareTypeRenderer.RenderMode -
Field Summary
Fields inherited from class com.atlassian.jira.sharing.type.VelocityShareTypeRenderer
BOLD_END, BOLD_START -
Constructor Summary
ConstructorsConstructorDescriptionProjectShareTypeRenderer(EncodingConfiguration encoding, VelocityTemplatingEngine templatingEngine, ProjectManager projectManager, ProjectRoleManager projectRoleManager, PermissionManager permissionManager, GlobalPermissionManager globalPermissionManager, FeatureManager featureManager, InternalProjectPermissionHelper projectPermissionHelper) -
Method Summary
Modifier and TypeMethodDescriptiongetShareTypeEditor(JiraAuthenticationContext authenticationContext) Return the HTML of the component that is used to configure the ShareType when necessary.getShareTypeLabel(JiraAuthenticationContext authenticationContext) Return a string that can be used to differentiate the associated ShareType.getSimpleDescription(SharePermission permission, JiraAuthenticationContext authenticationContext) Return a simple text only description of the share.getTranslatedTemplates(JiraAuthenticationContext authenticationContext, SharedEntity.TypeDescriptor<? extends SharedEntity> type, ShareTypeRenderer.RenderMode mode) Return map of key -> template that can be used to show a configured shares in Javascript.booleanisAddButtonNeeded(JiraAuthenticationContext authenticationContext) Return whether or not the component needs a button.renderPermission(SharePermission permission, JiraAuthenticationContext authenticationContext) Return HTML that shows the configured share.Methods inherited from class com.atlassian.jira.sharing.type.VelocityShareTypeRenderer
renderVelocity
-
Constructor Details
-
ProjectShareTypeRenderer
public ProjectShareTypeRenderer(EncodingConfiguration encoding, VelocityTemplatingEngine templatingEngine, ProjectManager projectManager, ProjectRoleManager projectRoleManager, PermissionManager permissionManager, GlobalPermissionManager globalPermissionManager, FeatureManager featureManager, InternalProjectPermissionHelper projectPermissionHelper)
-
-
Method Details
-
isAddButtonNeeded
Description copied from interface:ShareTypeRendererReturn whether or not the component needs a button.- Parameters:
authenticationContext- the context of the user calling this method.- Returns:
- true if the HTML component needs a button or false otherwise.