Package com.atlassian.jira.sharing.type
Class AuthenticatedUserShareTypeRenderer
java.lang.Object
com.atlassian.jira.sharing.type.AuthenticatedUserShareTypeRenderer
- All Implemented Interfaces:
ShareTypeRenderer
A renderer for the
AuthenticatedUserShareType.- Since:
- v7.2.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.sharing.type.ShareTypeRenderer
ShareTypeRenderer.RenderMode -
Constructor Summary
Constructors -
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.booleanReturn whether or not the component needs a button.renderPermission(SharePermission permission, JiraAuthenticationContext authenticationContext) Return HTML that shows the configured share.
-
Constructor Details
-
AuthenticatedUserShareTypeRenderer
public AuthenticatedUserShareTypeRenderer()
-
-
Method Details
-
isAddButtonNeeded
Description copied from interface:ShareTypeRendererReturn whether or not the component needs a button.- Specified by:
isAddButtonNeededin interfaceShareTypeRenderer- Parameters:
userCtx- the context of the user calling this method.- Returns:
- true if the HTML component needs a button or false otherwise.