com.atlassian.jira.web.bean
Class BulkEditBean

java.lang.Object
  extended bycom.atlassian.jira.web.bean.BulkEditBean

public class BulkEditBean
extends java.lang.Object

Used in the BulkEdit Wizard Stores in session: currentStep action selected and values associated with that action issues selected


Field Summary
(package private)  java.lang.String[] actions
           
static java.lang.String BULK_AFFECTSVERSION
           
static java.lang.String BULK_ASSIGN
           
static java.lang.String BULK_COMPONENT
           
static java.lang.String BULK_CUSTOMFIELDS
           
static java.lang.String BULK_DELETE
           
static java.lang.String BULK_FIXFOR
           
static java.lang.String BULK_PRIORITY
           
static java.lang.String BULKEDIT_PREFIX
           
(package private)  int currentStep
           
 
Constructor Summary
BulkEditBean(VersionManager versionManager)
           
 
Method Summary
 void addAvailablePreviousStep(int stepId)
           
 void clearAvailablePreviousSteps()
           
 java.lang.String[] getActions()
           
 java.util.List getActionValues(java.lang.String action)
          The new values entered in by the user for each of the fields they want to edit are stored in this bean as a string array of ids.
 java.lang.String getAssignee()
           
 java.lang.String getCheckboxName(org.ofbiz.core.entity.GenericValue issue)
           
 java.lang.String[] getComponents()
           
 int getCurrentStep()
           
 CustomField getCustomField(java.lang.String customFieldKey)
           
 java.util.Map getCustomFieldValues()
           
 java.util.Map getCustomFieldValuesHolder()
           
 java.lang.String getCustomFieldView(CustomField customField)
           
 java.lang.String[] getFixVersions()
           
 java.util.Collection getIssuesFromSearchRequest()
           
 java.util.Collection getIssuesInUse()
           
 java.util.List getIssueTypes()
           
 long getMaxIssues()
           
 java.lang.String getNiceName(java.lang.String action)
          Returns a nice name for the bulk actions for display in the changes summary table
 int getPagerStart()
           
 java.util.Map getParams()
           
 java.lang.String getPriority()
           
 org.ofbiz.core.entity.GenericValue getProject()
           
 java.util.List getProjectIds()
          returns a list of project ids for projects which the currently selected issues belong to.
 java.util.List getSelectedIds()
          Get a list of issue id's corresponding to the issues that have been selected in the first step of bulk edit
 java.util.List getSelectedIssues()
          retrieves a list of selected issues (this may be a subset of the original list created by a search request)
 java.util.List getUniqueIssueTypeList()
          This method will return an EMPTY list if the selected issues are NOT of the same issue type.
 java.lang.String[] getVersions()
           
 boolean isAvailablePreviousStep(int stepId)
           
 boolean isChecked(org.ofbiz.core.entity.GenericValue issue)
           
 boolean isMultipleProjects()
           
 void setActions(java.lang.String[] actions)
           
 void setAssignee(java.lang.String assignee)
           
 void setComponents(java.lang.String[] components)
           
 void setCurrentStep(int currentStep)
           
 void setCustomFieldValues(java.util.Map customFieldValues)
           
 void setFixVersions(java.lang.String[] fixVersions)
           
 void setIssuesFromSearchRequest(java.util.Collection issuesFromSearchRequest)
           
 void setIssuesInUse(java.util.Collection issuesInUse)
           
 void setMaxIssues(long maxIssues)
           
 void setPagerStart(int pagerStart)
           
 void setParams(java.util.Map params)
           
 void setPriority(java.lang.String priority)
           
 void setSelectedIssues(java.util.List issues)
          Use for testing ONLY
 void setVersions(java.lang.String[] affectsVersions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentStep

int currentStep

actions

java.lang.String[] actions

BULK_FIXFOR

public static final java.lang.String BULK_FIXFOR
See Also:
Constant Field Values

BULK_AFFECTSVERSION

public static final java.lang.String BULK_AFFECTSVERSION
See Also:
Constant Field Values

BULK_ASSIGN

public static final java.lang.String BULK_ASSIGN
See Also:
Constant Field Values

BULK_PRIORITY

public static final java.lang.String BULK_PRIORITY
See Also:
Constant Field Values

BULK_DELETE

public static final java.lang.String BULK_DELETE
See Also:
Constant Field Values

BULK_COMPONENT

public static final java.lang.String BULK_COMPONENT
See Also:
Constant Field Values

BULK_CUSTOMFIELDS

public static final java.lang.String BULK_CUSTOMFIELDS
See Also:
Constant Field Values

BULKEDIT_PREFIX

public static final java.lang.String BULKEDIT_PREFIX
See Also:
Constant Field Values
Constructor Detail

BulkEditBean

public BulkEditBean(VersionManager versionManager)
Method Detail

getSelectedIds

public java.util.List getSelectedIds()
Get a list of issue id's corresponding to the issues that have been selected in the first step of bulk edit

Returns:

getSelectedIssues

public java.util.List getSelectedIssues()
retrieves a list of selected issues (this may be a subset of the original list created by a search request)


setSelectedIssues

public void setSelectedIssues(java.util.List issues)
Use for testing ONLY

Parameters:
issues -

isChecked

public boolean isChecked(org.ofbiz.core.entity.GenericValue issue)

isMultipleProjects

public boolean isMultipleProjects()

getProject

public org.ofbiz.core.entity.GenericValue getProject()
                                              throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getProjectIds

public java.util.List getProjectIds()
returns a list of project ids for projects which the currently selected issues belong to.


getIssueTypes

public java.util.List getIssueTypes()

getUniqueIssueTypeList

public java.util.List getUniqueIssueTypeList()
                                      throws org.ofbiz.core.entity.GenericEntityException
This method will return an EMPTY list if the selected issues are NOT of the same issue type. Otherwise the list with only that issue type is returned.

Returns:
Throws:
org.ofbiz.core.entity.GenericEntityException

getCheckboxName

public java.lang.String getCheckboxName(org.ofbiz.core.entity.GenericValue issue)

getNiceName

public java.lang.String getNiceName(java.lang.String action)
Returns a nice name for the bulk actions for display in the changes summary table

Returns:

getActionValues

public java.util.List getActionValues(java.lang.String action)
                               throws org.ofbiz.core.entity.GenericEntityException,
                                      com.opensymphony.user.EntityNotFoundException
The new values entered in by the user for each of the fields they want to edit are stored in this bean as a string array of ids. This function fetches the GenericValue's for each of these ids in order to display a more friendly value in the changes summary table in the confirmation page.

That is, takes a array of ids and returns a list of value names

Parameters:
action -
Returns:
Throws:
org.ofbiz.core.entity.GenericEntityException
com.opensymphony.user.EntityNotFoundException

getCustomField

public CustomField getCustomField(java.lang.String customFieldKey)
                           throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getCustomFieldView

public java.lang.String getCustomFieldView(CustomField customField)
                                    throws CustomFieldValidationException
Throws:
CustomFieldValidationException

setParams

public void setParams(java.util.Map params)

getParams

public java.util.Map getParams()

setIssuesInUse

public void setIssuesInUse(java.util.Collection issuesInUse)

getIssuesFromSearchRequest

public java.util.Collection getIssuesFromSearchRequest()

setIssuesFromSearchRequest

public void setIssuesFromSearchRequest(java.util.Collection issuesFromSearchRequest)

getCurrentStep

public int getCurrentStep()

setCurrentStep

public void setCurrentStep(int currentStep)

getActions

public java.lang.String[] getActions()

setActions

public void setActions(java.lang.String[] actions)

getFixVersions

public java.lang.String[] getFixVersions()

setFixVersions

public void setFixVersions(java.lang.String[] fixVersions)

getVersions

public java.lang.String[] getVersions()

setVersions

public void setVersions(java.lang.String[] affectsVersions)

getAssignee

public java.lang.String getAssignee()

setAssignee

public void setAssignee(java.lang.String assignee)

getComponents

public java.lang.String[] getComponents()

setComponents

public void setComponents(java.lang.String[] components)

getPriority

public java.lang.String getPriority()

setPriority

public void setPriority(java.lang.String priority)

setCustomFieldValues

public void setCustomFieldValues(java.util.Map customFieldValues)

getCustomFieldValues

public java.util.Map getCustomFieldValues()

getCustomFieldValuesHolder

public java.util.Map getCustomFieldValuesHolder()

getIssuesInUse

public java.util.Collection getIssuesInUse()

addAvailablePreviousStep

public void addAvailablePreviousStep(int stepId)

clearAvailablePreviousSteps

public void clearAvailablePreviousSteps()

isAvailablePreviousStep

public boolean isAvailablePreviousStep(int stepId)

getMaxIssues

public long getMaxIssues()

setMaxIssues

public void setMaxIssues(long maxIssues)

getPagerStart

public int getPagerStart()

setPagerStart

public void setPagerStart(int pagerStart)


Copyright © 2002-2005 Atlassian. All Rights Reserved.