Package com.atlassian.jira.sharing.type
Class UserShareTypeRenderer
java.lang.Object
com.atlassian.jira.sharing.type.VelocityShareTypeRenderer
com.atlassian.jira.sharing.type.UserShareTypeRenderer
- All Implemented Interfaces:
ShareTypeRenderer
A
ShareTypeRenderer for the UserShareType.- Since:
- v7.12
-
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
ConstructorsConstructorDescriptionUserShareTypeRenderer(EncodingConfiguration encoding, VelocityTemplatingEngine templatingEngine, UserManager userManager, GlobalPermissionManager globalPermissionManager) -
Method Summary
Modifier and TypeMethodDescriptionReturn the HTML of the component that is used to configure the ShareType when necessary.Return a string that can be used to differentiate the associated ShareType.getSimpleDescription(SharePermission permission, JiraAuthenticationContext userCtx) Return a simple text only description of the share.getTranslatedTemplates(JiraAuthenticationContext userCtx, SharedEntity.TypeDescriptor<? extends SharedEntity> type, ShareTypeRenderer.RenderMode mode) Return map of key -> template that can be used to show a configured shares in Javascript.booleanReturn whether or not the component needs a button.renderPermission(SharePermission permission, JiraAuthenticationContext userCtx) Return HTML that shows the configured share.Methods inherited from class com.atlassian.jira.sharing.type.VelocityShareTypeRenderer
renderVelocity
-
Constructor Details
-
UserShareTypeRenderer
public UserShareTypeRenderer(EncodingConfiguration encoding, VelocityTemplatingEngine templatingEngine, UserManager userManager, GlobalPermissionManager globalPermissionManager)
-
-
Method Details
-
isAddButtonNeeded
Description copied from interface:ShareTypeRendererReturn whether or not the component needs a button.- Parameters:
userCtx- the context of the user calling this method.- Returns:
- true if the HTML component needs a button or false otherwise.