com.atlassian.jira.web.bean
Class ShareTypeRendererBean

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

public class ShareTypeRendererBean
extends java.lang.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
 java.lang.String getShareType()
           
 java.lang.String getShareTypeEditor()
          Return the HTML of the component that is used to configure the ShareType when necessary.
 java.lang.String getShareTypeLabel()
          Return a string that can be used to differentiate the associated ShareType.
 java.lang.String getShareTypeSelector()
          Return the HTML of the component that is used to select the ShareType instance when necessary.
 java.util.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 java.lang.String getShareType()

getShareTypeEditor

public java.lang.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 java.lang.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 java.lang.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 java.util.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-2010 Atlassian. All Rights Reserved.