Package com.atlassian.jira.web.bean
Class ShareTypeRendererBean
java.lang.Object
com.atlassian.jira.web.bean.ShareTypeRendererBean
Helper class that is used to render share types.
- Since:
- v3.13
-
Constructor Summary
ConstructorsConstructorDescriptionShareTypeRendererBean(ShareType shareType, JiraAuthenticationContext authenticationContext, ShareTypeRenderer.RenderMode renderMode, SharedEntity.TypeDescriptor typeDescriptor) -
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.static Collection<ShareTypeRendererBean> getShareTypeRendererBeans(JiraAuthenticationContext authCtx, ShareTypeFactory shareTypeFactory, ShareType.UsageContextType usageContextType, SharedEntity.TypeDescriptor typeDescriptor) Return a collection of renderer beans which can be used in specified contextReturn the HTML of the component that is used to select the ShareType instance when necessary.Return a map of key-> message templates for inclusion in the Javascript that renders the shares.booleanReturn whether or not the component needs a button.booleanReturn true if the share types is available to be used.
-
Constructor Details
-
Method Details
-
isAddButtonNeeded
public boolean isAddButtonNeeded()Return whether or not the component needs a button.- Returns:
- true if the HTML component needs a button or false otherwise.
-
isAvailable
public boolean isAvailable()Return true if the share types is available to be used.- Returns:
- true if the share types is available to be used.
-
getTranslatedTemplates
Return a map of key-> message templates for inclusion in the Javascript that renders the shares.- Returns:
- map of key->message for inclusion in the Javascript that renders the shares.