com.atlassian.jira.web.component.issuesummary
Class IssueSummaryWebComponent

java.lang.Object
  extended by com.atlassian.jira.web.component.AbstractWebComponent
      extended by com.atlassian.jira.web.component.issuesummary.IssueSummaryWebComponent

public class IssueSummaryWebComponent
extends AbstractWebComponent


Field Summary
 
Fields inherited from class com.atlassian.jira.web.component.AbstractWebComponent
applicationProperties, velocityManager
 
Constructor Summary
IssueSummaryWebComponent(com.atlassian.velocity.VelocityManager velocityManager, com.atlassian.plugin.PluginAccessor pluginAccessor, ApplicationProperties applicationProperties, PermissionManager permissionManager, IssueUtilsBean issueUtilsBean, JiraAuthenticationContext authenticationContext, WatcherManager watcherManager, IssueUtilsBean issueUtils, UserFormatManager userFormatManager)
           
 
Method Summary
 String getAssigneeDisplayHtml(Issue issue)
          Returns a HTML displayable string of the issues assignee.
 Map getAvailableActions(Issue issue)
           
 String getHtml(IssueSummaryLayoutBean layout, Issue issue, User remoteUser)
           
 Collection getIssueViews()
           
 String getReporterDisplayHtml(Issue issue)
          Returns a HTML displayable string of the issues reporter.
 Collection getViewableOperationDescriptors(Issue issue)
           
 String getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
           
 String getWorkflowTransitionDisplayName(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
          Get the i18n'ed name of a workflow action (eg.
 boolean isLazyDecoratable(Issue issue, com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
           
 
Methods inherited from class com.atlassian.jira.web.component.AbstractWebComponent
getHtml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueSummaryWebComponent

public IssueSummaryWebComponent(com.atlassian.velocity.VelocityManager velocityManager,
                                com.atlassian.plugin.PluginAccessor pluginAccessor,
                                ApplicationProperties applicationProperties,
                                PermissionManager permissionManager,
                                IssueUtilsBean issueUtilsBean,
                                JiraAuthenticationContext authenticationContext,
                                WatcherManager watcherManager,
                                IssueUtilsBean issueUtils,
                                UserFormatManager userFormatManager)
Method Detail

getHtml

public String getHtml(IssueSummaryLayoutBean layout,
                      Issue issue,
                      User remoteUser)

getIssueViews

public Collection getIssueViews()

getAvailableActions

public Map getAvailableActions(Issue issue)

getWorkflowTransitionDisplayName

public String getWorkflowTransitionDisplayName(com.opensymphony.workflow.loader.ActionDescriptor descriptor)
Get the i18n'ed name of a workflow action (eg. 'Start Progress').

Parameters:
descriptor - Descriptor eg. from JiraWorkflow.getDescriptor()
Returns:
i18n'ed name of a workflow action

getWorkflowTransitionDescription

public String getWorkflowTransitionDescription(com.opensymphony.workflow.loader.ActionDescriptor descriptor)

getViewableOperationDescriptors

public Collection getViewableOperationDescriptors(Issue issue)
Parameters:
issue - issue
Returns:
A collection of IssueOperationModuleDescriptor objects

isLazyDecoratable

public boolean isLazyDecoratable(Issue issue,
                                 com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)

getAssigneeDisplayHtml

public String getAssigneeDisplayHtml(Issue issue)
Returns a HTML displayable string of the issues assignee. if the issue:

Parameters:
issue - issue to get the assignee from
Returns:
HTML displayable string of the issues assignee

getReporterDisplayHtml

public String getReporterDisplayHtml(Issue issue)
Returns a HTML displayable string of the issues reporter. if the issue:

Parameters:
issue - issue to get the reporter from
Returns:
HTML displayable string of the issues reporter


Copyright © 2002-2008 Atlassian. All Rights Reserved.