com.atlassian.jira.web.component.subtask
Class ColumnLayoutItemFactory

java.lang.Object
  extended by com.atlassian.jira.web.component.subtask.ColumnLayoutItemFactory

public class ColumnLayoutItemFactory
extends Object

Factory class used to create specific ColumnLayoutItem object. This replaces SubTaskColumnLayoutFactory to becaome a more generic one.

Since:
4.0

Constructor Summary
ColumnLayoutItemFactory(PermissionManager permissionManager, com.atlassian.velocity.VelocityManager velocityManager, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
 ColumnLayoutItem getActionsAndOperationsColumn()
          Creates a ColumnLayoutItem that displays an AJAX dropdown that displays a list of all available actions and operations for that issue.
 ColumnLayoutItem getSubTaskDisplaySequenceColumn()
          Displays a simple ColumnLayoutItem that displays a sequence.
 ColumnLayoutItem getSubTaskReorderColumn(User user, Issue parentIssue, SubTaskBean subTaskBean, String subTaskView)
          Create a column for SubTaskView for reordering (displaying reorder arrows)
 ColumnLayoutItem getSubTaskSimpleSummaryColumn()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnLayoutItemFactory

public ColumnLayoutItemFactory(PermissionManager permissionManager,
                               com.atlassian.velocity.VelocityManager velocityManager,
                               ApplicationProperties applicationProperties,
                               JiraAuthenticationContext authenticationContext)
Method Detail

getSubTaskReorderColumn

public ColumnLayoutItem getSubTaskReorderColumn(User user,
                                                Issue parentIssue,
                                                SubTaskBean subTaskBean,
                                                String subTaskView)
Create a column for SubTaskView for reordering (displaying reorder arrows)

Parameters:
user - The current user
parentIssue - The parent issue of the subtasks
subTaskBean - The subtask bean containing subtasks in sequence
subTaskView - The view being displayed - SubTaskBean.SUB_TASK_VIEW_ALL or SubTaskBean.SUB_TASK_VIEW_UNRESOLVED
Returns:
The column layout item used to render the reordering column.

getActionsAndOperationsColumn

public ColumnLayoutItem getActionsAndOperationsColumn()
Creates a ColumnLayoutItem that displays an AJAX dropdown that displays a list of all available actions and operations for that issue.

Returns:
The ColumnLayoutItem that displays an AJAX dropdown

getSubTaskDisplaySequenceColumn

public ColumnLayoutItem getSubTaskDisplaySequenceColumn()
Displays a simple ColumnLayoutItem that displays a sequence. I.e. 1, 2, 3, 4 ,..

Returns:
a simple ColumnLayoutItem that displays a sequence.

getSubTaskSimpleSummaryColumn

public ColumnLayoutItem getSubTaskSimpleSummaryColumn()


Copyright © 2002-2009 Atlassian. All Rights Reserved.