com.atlassian.jira.web.component.issuesummary
Class IssueSummaryWebComponent
java.lang.Object
com.atlassian.jira.web.component.AbstractWebComponent
com.atlassian.jira.web.component.issuesummary.IssueSummaryWebComponent
public class IssueSummaryWebComponent
- extends AbstractWebComponent
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
getHtml
public String getHtml(IssueSummaryLayoutBean layout,
Issue issue,
User remoteUser)
getIssueViews
public Collection<IssueViewModuleDescriptor> getIssueViews()
getAvailableActions
public Map<Integer,com.opensymphony.workflow.loader.ActionDescriptor> 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<IssueOperationModuleDescriptor> 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:
- is null, returns an empty string.
- has an assignee username but no user with that username, returns just the username
- has a valid assignee, returns the full name of the assignee wrapped in HTML link to the users profile
- has no assignee, returns i18n of 'common.status.unassigned' key
- 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:
- is null, returns an empty string.
- has an reporter username but no user with that username, returns just the username
- has a valid reporter, returns the full name of the reporter wrapped in HTML link to the users profile
- has no reporter, returns i18n of 'common.status.unassigned' key
- Parameters:
issue - issue to get the reporter from
- Returns:
- HTML displayable string of the issues reporter
Copyright © 2002-2009 Atlassian. All Rights Reserved.