Package com.atlassian.jira.sharing.type
Interface ShareTypeRenderer
- All Known Implementing Classes:
AuthenticatedUserShareTypeRenderer,GlobalShareTypeRenderer,GroupShareTypeRenderer,ProjectShareTypeRenderer,UserShareTypeRenderer,VelocityShareTypeRenderer
public interface ShareTypeRenderer
Implemented by
ShareTypes to render their representation on
the UI.- Since:
- v3.13
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classEnumeration representing the modes that shared can be rendered in Javascript. -
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.
-
Method Details
-
isAddButtonNeeded
Return 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.