Package com.atlassian.jira.sharing.type
Class GroupShareTypeRenderer
java.lang.Object
com.atlassian.jira.sharing.type.VelocityShareTypeRenderer
com.atlassian.jira.sharing.type.GroupShareTypeRenderer
- All Implemented Interfaces:
ShareTypeRenderer
Renderer for the
GroupShareType.- 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
ConstructorsConstructorDescriptionGroupShareTypeRenderer(EncodingConfiguration encoding, VelocityTemplatingEngine templatingEngine, GroupManager groupManager, GlobalPermissionManager globalPermissionManager, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptiongetShareTypeEditor(JiraAuthenticationContext authenticationContext) Render a group picker if the user can share with all groups, or a dropdown with limited set of results otherwise.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
-
GroupShareTypeRenderer
public GroupShareTypeRenderer(EncodingConfiguration encoding, VelocityTemplatingEngine templatingEngine, GroupManager groupManager, GlobalPermissionManager globalPermissionManager, FeatureManager featureManager)
-
-
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.