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.PluginManager pluginManager, ApplicationProperties applicationProperties, PermissionManager permissionManager, IssueUtilsBean issueUtilsBean, JiraAuthenticationContext authenticationContext, WatcherManager watcherManager, IssueUtilsBean issueUtils)
           
 
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.
protected  String getUrlToUserProfile(User 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.PluginManager pluginManager,
                                ApplicationProperties applicationProperties,
                                PermissionManager permissionManager,
                                IssueUtilsBean issueUtilsBean,
                                JiraAuthenticationContext authenticationContext,
                                WatcherManager watcherManager,
                                IssueUtilsBean issueUtils)
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()

getWorkflowTransitionDescription

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

getViewableOperationDescriptors

public Collection getViewableOperationDescriptors(Issue issue)
Parameters:
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

getUrlToUserProfile

protected String getUrlToUserProfile(User reporter)


Copyright © 2002-2007 Atlassian. All Rights Reserved.