public class ShareTypeRendererBean extends Object
Constructor and Description |
---|
ShareTypeRendererBean(ShareType shareType,
JiraAuthenticationContext authenticationContext,
ShareTypeRenderer.RenderMode renderMode,
SharedEntity.TypeDescriptor typeDescriptor) |
Modifier and Type | Method and Description |
---|---|
String |
getShareType() |
String |
getShareTypeEditor()
Return the HTML of the component that is used to configure the ShareType when necessary.
|
String |
getShareTypeLabel()
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 context
|
String |
getShareTypeSelector()
Return the HTML of the component that is used to select the ShareType instance when necessary.
|
Map |
getTranslatedTemplates()
Return a map of key-> message templates for inclusion in the Javascript that renders the shares.
|
boolean |
isAddButtonNeeded()
Return whether or not the component needs a button.
|
boolean |
isAvailable()
Return true if the share types is available to be used.
|
public ShareTypeRendererBean(ShareType shareType, JiraAuthenticationContext authenticationContext, ShareTypeRenderer.RenderMode renderMode, SharedEntity.TypeDescriptor typeDescriptor)
public String getShareType()
public String getShareTypeEditor()
public String getShareTypeSelector()
public boolean isAddButtonNeeded()
public String getShareTypeLabel()
public boolean isAvailable()
public Map getTranslatedTemplates()
public static Collection<ShareTypeRendererBean> getShareTypeRendererBeans(JiraAuthenticationContext authCtx, ShareTypeFactory shareTypeFactory, ShareType.UsageContextType usageContextType, SharedEntity.TypeDescriptor typeDescriptor)
authCtx
- used to initialize the beanshareTypeFactory
- used to get share typesusageContextType
- used to filter share types by specified contexttypeDescriptor
- used to initialize the beanCopyright © 2002-2019 Atlassian. All Rights Reserved.