com.atlassian.jira.web.bean
Class ShareTypeRendererBean

java.lang.Object
  extended by com.atlassian.jira.web.bean.ShareTypeRendererBean

public class ShareTypeRendererBean
extends Object

Helper class that is used to render share types.

Since:
v3.13

Constructor Summary
ShareTypeRendererBean(ShareType shareType, JiraAuthenticationContext authenticationContext, ShareTypeRenderer.RenderMode renderMode, SharedEntity.TypeDescriptor typeDescriptor)
           
 
Method Summary
 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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShareTypeRendererBean

public ShareTypeRendererBean(ShareType shareType,
                             JiraAuthenticationContext authenticationContext,
                             ShareTypeRenderer.RenderMode renderMode,
                             SharedEntity.TypeDescriptor typeDescriptor)
Method Detail

getShareType

public String getShareType()

getShareTypeEditor

public String getShareTypeEditor()
Return the HTML of the component that is used to configure the ShareType when necessary.

Returns:
The HTML component to render the ShareType.

getShareTypeSelector

public String getShareTypeSelector()
Return the HTML of the component that is used to select the ShareType instance when necessary.

Returns:
The HTML component to render the ShareType selector.

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.

getShareTypeLabel

public String getShareTypeLabel()
Return a string that can be used to differentiate the associated ShareType. This string is used in the web component that selects a particular ShareType.

Returns:
A ShareType description.

getTranslatedTemplates

public Map 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.


Copyright © 2002-2012 Atlassian. All Rights Reserved.