com.atlassian.jira.web.bean
Class BulkEditBeanImpl

java.lang.Object
  extended by com.atlassian.jira.web.bean.BulkEditBeanImpl
All Implemented Interfaces:
OperationContext, BulkEditBean

public class BulkEditBeanImpl
extends Object
implements BulkEditBean

Implementation of BulkEditBean.

BulkEditBean was originally a concrete class, but it has been made abstract in order to separate API and implementation in JIRA.

Since:
v4.3

Field Summary
 
Fields inherited from interface com.atlassian.jira.web.bean.BulkEditBean
BULK_DELETE, BULK_DELETE_OP, BULK_EDIT_OP, BULK_MOVE_OP, BULKEDIT_PREFIX, SUBTASK_STATUS_INFO
 
Constructor Summary
BulkEditBeanImpl(IssueManager issueManager)
           
 
Method Summary
 void _setSelectedIssueGVsForTesting(List<org.ofbiz.core.entity.GenericValue> issues)
          Deprecated.  
 void addAvailablePreviousStep(int stepId)
           
 void addIssues(Collection<Issue> issues)
           
 void addRetainValue(String fieldId)
           
 void clearAvailablePreviousSteps()
           
 Map<String,BulkEditAction> getActions()
           
 String getCheckboxName(Issue issue)
           
 int getCurrentStep()
           
 CustomField getCustomField(String customFieldKey)
           
 String getCustomFieldView(CustomField customField)
           
 Collection<FieldLayout> getFieldLayouts()
          Returns all the unique field layouts of the selected issues
 FieldScreenRenderer getFieldScreenRenderer()
           
 Map<String,Map<Long,Long>> getFieldSubstitutionMap()
           
 Map<String,Object> getFieldValues()
           
 Map<String,Object> getFieldValuesHolder()
           
 Issue getFirstTargetIssueObject()
          This method is used to get a target issue that will provide the correct context (i.e.
 Set<Issue> getInvalidIssues()
          Gets issues whose status is null
 Collection<org.ofbiz.core.entity.GenericValue> getInvalidStatuses()
          Gets a set of invalid statuses that are not valid in the destination workflow
 int getInvalidSubTaskCount()
           
 Set<String> getInvalidSubTaskStatusesByType(String subTaskTypeId)
           
 Set<String> getInvalidSubTaskTypes()
           
 IssueOperation getIssueOperation()
           
 List<Issue> getIssuesFromSearchRequest()
           
 Collection<?> getIssuesInUse()
           
 org.ofbiz.core.entity.GenericValue getIssueType()
           
 Collection<IssueType> getIssueTypeObjects()
           
 Collection<String> getIssueTypes()
           
 String getKey()
          Returns a string that represents a "unique" identifier for this bulke edit bean
 int getMaxIssues()
          If there is a limit on the number of issues that can be bulk edited, this will return that number, otherwise -1.
 Map<?,?> getMessagedFieldLayoutItems()
           
 Collection<?> getMoveFieldLayoutItems()
           
 String getOperationName()
           
 Map<String,?> getParams()
           
 BulkEditBean getParentBulkEditBean()
           
 org.ofbiz.core.entity.GenericValue getProject()
           
 Collection<Long> getProjectIds()
          returns a list of project ids for projects which the currently selected issues belong to.
 Collection<Project> getProjectObjects()
           
 Collection<org.ofbiz.core.entity.GenericValue> getProjects()
           
 MultiBulkMoveBean getRelatedMultiBulkMoveBean()
           
 Collection<?> getRemovedFields()
           
 Set<String> getRetainValues()
           
 List<Issue> getSelectedIssues()
          Returns a list of "selected" issues.
 List<Issue> getSelectedIssuesIncludingSubTasks()
           
 String getSelectedTransitionName()
           
 WorkflowTransitionKey getSelectedWFTransitionKey()
           
 Project getSingleProject()
          Returns the single Project if there is only one Project in this BulkEditBean, otherwise throws an IllegalStateException.
 Map<String,String> getStatusMapHolder()
           
 BulkEditBean getSubTaskBulkEditBean()
           
 List<Issue> getSubTaskOfSelectedIssues()
           
 Collection<String> getSubTaskStatusHolder()
           
 FieldLayout getTargetFieldLayout()
           
 FieldLayout getTargetFieldLayoutForType(String targetTypeId)
           
 List<org.ofbiz.core.entity.GenericValue> getTargetIssueGVs()
          This is a convinience method for converting the list of objects to a list of GenericValues
 Map<Issue,Issue> getTargetIssueObjects()
           
 org.ofbiz.core.entity.GenericValue getTargetIssueTypeGV()
           
 String getTargetIssueTypeId()
           
 IssueType getTargetIssueTypeObject()
           
 Long getTargetPid()
           
 Project getTargetProject()
           
 org.ofbiz.core.entity.GenericValue getTargetProjectGV()
           
 org.ofbiz.core.entity.GenericValue getTargetStatus(Issue issue)
           
 Status getTargetStatusObject(Issue issue)
           
 JiraWorkflow getTargetWorkflow()
           
 JiraWorkflow getTargetWorkflowByType(String issueTypeId)
           
 List<WorkflowTransitionKey> getTransitionIdsForWorkflow(String workflowName)
           
 List<String> getTransitionIssueKeys(WorkflowTransitionKey workflowTransitionKey)
           
 String getTransitionName(String workflowName, String actionDescriptorId)
           
 Set<String> getWorkflowsInUse()
           
 org.apache.commons.collections.MultiMap getWorkflowTransitionMap()
           
 void initMultiBulkBean()
           
 void initMultiBulkBeanWithSubTasks()
           
 void initSelectedIssues(Collection<Issue> selectedIssues)
          Initialises the BulkEditBean with the selected issues
 boolean isAvailablePreviousStep(int stepId)
           
 boolean isChecked(Issue issue)
           
 boolean isHasMailServer()
          Check if a mail server has been specified.
 boolean isMultipleProjects()
           
 boolean isMutipleIssueTypes()
           
 boolean isOnlyContainsSubTasks()
           
 boolean isRetainChecked(String fieldId)
           
 boolean isSendBulkNotification()
           
 boolean isSubTaskCollection()
           
 boolean isSubTaskOnly()
           
 boolean isTransitionChecked(WorkflowTransitionKey workflowTransitionKey)
           
 void populateStatusHolder()
           
 void populateSubTaskStatusHolder()
           
 void resetMoveData()
           
 void resetWorkflowTransitionSelection()
           
 void setActions(Map<String,BulkEditAction> actions)
           
 void setCurrentStep(int currentStep)
           
 void setFieldScreenRenderer(FieldScreenRenderer fieldScreenRenderer)
           
 void setInvalidSubTaskStatusesByType(Map<String,Set<String>> invalidSubTaskStatusesByType)
           
 void setInvalidSubTaskTypes(Set<String> invalidSubTaskTypes)
           
 void setIssuesFromSearchRequest(List<Issue> issuesFromSearchRequest)
           
 void setIssuesInUse(Collection<?> issuesInUse)
           
 void setMaxIssues(int maxIssues)
          Sets the maximum number of issues allowed to be bulk edited at once.
 void setMessagedFieldLayoutItems(Map<?,?> messagedFieldLayoutItems)
           
 void setMoveFieldLayoutItems(Collection<?> moveFieldLayoutItems)
           
 void setOperationName(String operationName)
           
 void setParams(Map<String,?> params)
           
 void setParentBulkEditBean(BulkEditBean parentBulkEditBean)
          If this BulkEditBean contains subtasks of another BulkEditBean, then we can set a pointer back to the BulkEditBean containing the parent issues.
 void setRelatedMultiBulkMoveBean(MultiBulkMoveBean relatedMultiBulkMoveBean)
           
 void setRemovedFields(Set<?> removedFields)
           
 void setRetainValues(Set<String> retainValues)
           
 void setSelectedWFTransitionKey(WorkflowTransitionKey workflowTransitionKey)
           
 void setSendBulkNotification(boolean sendBulkNotification)
           
 void setSubTaskBulkEditBean(BulkEditBean subTaskBulkEditBean)
           
 void setSubTaskOfSelectedIssues(List<Issue> subTaskOfSelectedIssues)
           
 void setTargetFieldLayout()
          Sets the targetFieldLayout to the appropriate FieldLayout (aka "Field Configuration") for the target Project and Issue Type.
 void setTargetIssueObjects(Map<Issue,Issue> targetIssueObjects)
           
 void setTargetIssueTypeId(String id)
           
 void setTargetProject(org.ofbiz.core.entity.GenericValue project)
           
 void setTargetProject(Project project)
           
 void setWorkflowTransitionMap(org.apache.commons.collections.MultiMap workflowTransitionMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkEditBeanImpl

public BulkEditBeanImpl(IssueManager issueManager)
Method Detail

getParentBulkEditBean

public BulkEditBean getParentBulkEditBean()
Specified by:
getParentBulkEditBean in interface BulkEditBean

initSelectedIssues

public void initSelectedIssues(Collection<Issue> selectedIssues)
Initialises the BulkEditBean with the selected issues

Specified by:
initSelectedIssues in interface BulkEditBean
Parameters:
selectedIssues - Required selected Issues.

addIssues

public void addIssues(Collection<Issue> issues)
Specified by:
addIssues in interface BulkEditBean

getSelectedIssues

public List<Issue> getSelectedIssues()
Returns a list of "selected" issues. For the "top level" BulkEditBean this should be the actual issues chosen by the user for the bulk operation.

The Bulk Move operation will then break this list up in groups of project and issue type and store each of these types in its own BulkEditBean, so for these nested BulkEditBeans this list may be a subset of the original selected issues. Furthermore when moving parent issues to a new Project, we will have to move any subtasks as well. In this case a third level of BulkEditBean is created and these ones will have subtasks that may not have been explicitly selected by the user at all.

Specified by:
getSelectedIssues in interface BulkEditBean
Returns:
List of the Selected Issues

getSelectedIssuesIncludingSubTasks

public List<Issue> getSelectedIssuesIncludingSubTasks()
Specified by:
getSelectedIssuesIncludingSubTasks in interface BulkEditBean

isChecked

public boolean isChecked(Issue issue)
Specified by:
isChecked in interface BulkEditBean

isMultipleProjects

public boolean isMultipleProjects()
Specified by:
isMultipleProjects in interface BulkEditBean

isMutipleIssueTypes

public boolean isMutipleIssueTypes()
Specified by:
isMutipleIssueTypes in interface BulkEditBean

getProject

public org.ofbiz.core.entity.GenericValue getProject()
Specified by:
getProject in interface BulkEditBean

getSingleProject

public Project getSingleProject()
Description copied from interface: BulkEditBean
Returns the single Project if there is only one Project in this BulkEditBean, otherwise throws an IllegalStateException.

Specified by:
getSingleProject in interface BulkEditBean
Returns:
the single Project if there is only one Project in this BulkEditBean, otherwise throws an IllegalStateException.
See Also:
BulkEditBean.isMultipleProjects()

getIssueType

public org.ofbiz.core.entity.GenericValue getIssueType()
Specified by:
getIssueType in interface BulkEditBean

getFieldLayouts

public Collection<FieldLayout> getFieldLayouts()
Returns all the unique field layouts of the selected issues

Specified by:
getFieldLayouts in interface BulkEditBean
Returns:
Collection of the FieldLayouts.

getKey

public String getKey()
Returns a string that represents a "unique" identifier for this bulke edit bean

Specified by:
getKey in interface BulkEditBean
Returns:
unique key formed from projects, issue types, target project if a subtask only bulkeditbean and size of the bean

getProjectIds

public Collection<Long> getProjectIds()
returns a list of project ids for projects which the currently selected issues belong to.

Specified by:
getProjectIds in interface BulkEditBean
Returns:
A list of project ids for projects which the currently selected issues belong to.

getProjects

public Collection<org.ofbiz.core.entity.GenericValue> getProjects()
Specified by:
getProjects in interface BulkEditBean
Returns:

getProjectObjects

public Collection<Project> getProjectObjects()
Specified by:
getProjectObjects in interface BulkEditBean

getIssueTypes

public Collection<String> getIssueTypes()
Specified by:
getIssueTypes in interface BulkEditBean

getIssueTypeObjects

public Collection<IssueType> getIssueTypeObjects()
Specified by:
getIssueTypeObjects in interface BulkEditBean

getCheckboxName

public String getCheckboxName(Issue issue)
Specified by:
getCheckboxName in interface BulkEditBean

getCustomField

public CustomField getCustomField(String customFieldKey)
                           throws org.ofbiz.core.entity.GenericEntityException
Specified by:
getCustomField in interface BulkEditBean
Throws:
org.ofbiz.core.entity.GenericEntityException

getCustomFieldView

public String getCustomFieldView(CustomField customField)
                          throws FieldValidationException
Specified by:
getCustomFieldView in interface BulkEditBean
Throws:
FieldValidationException

setParams

public void setParams(Map<String,?> params)
Specified by:
setParams in interface BulkEditBean

getParams

public Map<String,?> getParams()
Specified by:
getParams in interface BulkEditBean

setIssuesInUse

public void setIssuesInUse(Collection<?> issuesInUse)
Specified by:
setIssuesInUse in interface BulkEditBean

addAvailablePreviousStep

public void addAvailablePreviousStep(int stepId)
Specified by:
addAvailablePreviousStep in interface BulkEditBean

clearAvailablePreviousSteps

public void clearAvailablePreviousSteps()
Specified by:
clearAvailablePreviousSteps in interface BulkEditBean

isAvailablePreviousStep

public boolean isAvailablePreviousStep(int stepId)
Specified by:
isAvailablePreviousStep in interface BulkEditBean

isHasMailServer

public boolean isHasMailServer()
Check if a mail server has been specified.

Specified by:
isHasMailServer in interface BulkEditBean
Returns:
boolean true if a mail server has been specified

getMoveFieldLayoutItems

public Collection<?> getMoveFieldLayoutItems()
Specified by:
getMoveFieldLayoutItems in interface BulkEditBean

setMoveFieldLayoutItems

public void setMoveFieldLayoutItems(Collection<?> moveFieldLayoutItems)
Specified by:
setMoveFieldLayoutItems in interface BulkEditBean

getTargetPid

public Long getTargetPid()
Specified by:
getTargetPid in interface BulkEditBean

setTargetProject

public void setTargetProject(org.ofbiz.core.entity.GenericValue project)
Specified by:
setTargetProject in interface BulkEditBean

setTargetProject

public void setTargetProject(Project project)
Specified by:
setTargetProject in interface BulkEditBean

getTargetProject

public Project getTargetProject()
Specified by:
getTargetProject in interface BulkEditBean

getTargetProjectGV

public org.ofbiz.core.entity.GenericValue getTargetProjectGV()
Specified by:
getTargetProjectGV in interface BulkEditBean

setTargetIssueTypeId

public void setTargetIssueTypeId(String id)
Specified by:
setTargetIssueTypeId in interface BulkEditBean

getTargetIssueTypeId

public String getTargetIssueTypeId()
Specified by:
getTargetIssueTypeId in interface BulkEditBean

getTargetIssueTypeGV

public org.ofbiz.core.entity.GenericValue getTargetIssueTypeGV()
Specified by:
getTargetIssueTypeGV in interface BulkEditBean

getTargetIssueTypeObject

public IssueType getTargetIssueTypeObject()
Specified by:
getTargetIssueTypeObject in interface BulkEditBean

populateStatusHolder

public void populateStatusHolder()
                          throws WorkflowException
Specified by:
populateStatusHolder in interface BulkEditBean
Throws:
WorkflowException

getInvalidStatuses

public Collection<org.ofbiz.core.entity.GenericValue> getInvalidStatuses()
                                                                  throws WorkflowException
Gets a set of invalid statuses that are not valid in the destination workflow

Specified by:
getInvalidStatuses in interface BulkEditBean
Returns:
Set of GenericValue objects
Throws:
WorkflowException

getInvalidIssues

public Set<Issue> getInvalidIssues()
                            throws WorkflowException
Gets issues whose status is null

Specified by:
getInvalidIssues in interface BulkEditBean
Returns:
Set of Issue objects. Emoty Set if no invalid issues
Throws:
WorkflowException

getInvalidSubTaskTypes

public Set<String> getInvalidSubTaskTypes()
                                   throws WorkflowException
Specified by:
getInvalidSubTaskTypes in interface BulkEditBean
Throws:
WorkflowException

getInvalidSubTaskStatusesByType

public Set<String> getInvalidSubTaskStatusesByType(String subTaskTypeId)
                                            throws WorkflowException
Specified by:
getInvalidSubTaskStatusesByType in interface BulkEditBean
Throws:
WorkflowException

setTargetFieldLayout

public void setTargetFieldLayout()
Sets the targetFieldLayout to the appropriate FieldLayout (aka "Field Configuration") for the target Project and Issue Type.

Specified by:
setTargetFieldLayout in interface BulkEditBean

getTargetFieldLayout

public FieldLayout getTargetFieldLayout()
Specified by:
getTargetFieldLayout in interface BulkEditBean

getTargetFieldLayoutForType

public FieldLayout getTargetFieldLayoutForType(String targetTypeId)
Specified by:
getTargetFieldLayoutForType in interface BulkEditBean

getTargetWorkflow

public JiraWorkflow getTargetWorkflow()
                               throws WorkflowException
Specified by:
getTargetWorkflow in interface BulkEditBean
Throws:
WorkflowException

getFirstTargetIssueObject

public Issue getFirstTargetIssueObject()
This method is used to get a target issue that will provide the correct context (i.e. project and issue type), for where you are moving to. The object returned is not mapped to a specific selected issue.

Specified by:
getFirstTargetIssueObject in interface BulkEditBean
Returns:
an issue whose project and issue type are of where the you are moving to.

getTargetIssueObjects

public Map<Issue,Issue> getTargetIssueObjects()
Specified by:
getTargetIssueObjects in interface BulkEditBean

setTargetIssueObjects

public void setTargetIssueObjects(Map<Issue,Issue> targetIssueObjects)
Specified by:
setTargetIssueObjects in interface BulkEditBean

getTargetIssueGVs

public List<org.ofbiz.core.entity.GenericValue> getTargetIssueGVs()
This is a convinience method for converting the list of objects to a list of GenericValues

Specified by:
getTargetIssueGVs in interface BulkEditBean
Returns:
list of GenericValue issue objects

getTargetStatusObject

public Status getTargetStatusObject(Issue issue)
Specified by:
getTargetStatusObject in interface BulkEditBean

getTargetStatus

public org.ofbiz.core.entity.GenericValue getTargetStatus(Issue issue)
Specified by:
getTargetStatus in interface BulkEditBean

getStatusMapHolder

public Map<String,String> getStatusMapHolder()
Specified by:
getStatusMapHolder in interface BulkEditBean

getRemovedFields

public Collection<?> getRemovedFields()
Specified by:
getRemovedFields in interface BulkEditBean

setRemovedFields

public void setRemovedFields(Set<?> removedFields)
Specified by:
setRemovedFields in interface BulkEditBean

resetMoveData

public void resetMoveData()
Specified by:
resetMoveData in interface BulkEditBean

populateSubTaskStatusHolder

public void populateSubTaskStatusHolder()
                                 throws WorkflowException
Specified by:
populateSubTaskStatusHolder in interface BulkEditBean
Throws:
WorkflowException

getTargetWorkflowByType

public JiraWorkflow getTargetWorkflowByType(String issueTypeId)
                                     throws WorkflowException
Specified by:
getTargetWorkflowByType in interface BulkEditBean
Throws:
WorkflowException

getSubTaskStatusHolder

public Collection<String> getSubTaskStatusHolder()
Specified by:
getSubTaskStatusHolder in interface BulkEditBean

isRetainChecked

public boolean isRetainChecked(String fieldId)
Specified by:
isRetainChecked in interface BulkEditBean

isSubTaskCollection

public boolean isSubTaskCollection()
Specified by:
isSubTaskCollection in interface BulkEditBean

isSubTaskOnly

public boolean isSubTaskOnly()
Specified by:
isSubTaskOnly in interface BulkEditBean

getOperationName

public String getOperationName()
Specified by:
getOperationName in interface BulkEditBean

setOperationName

public void setOperationName(String operationName)
Specified by:
setOperationName in interface BulkEditBean

setInvalidSubTaskStatusesByType

public void setInvalidSubTaskStatusesByType(Map<String,Set<String>> invalidSubTaskStatusesByType)
Specified by:
setInvalidSubTaskStatusesByType in interface BulkEditBean

setInvalidSubTaskTypes

public void setInvalidSubTaskTypes(Set<String> invalidSubTaskTypes)
Specified by:
setInvalidSubTaskTypes in interface BulkEditBean

getInvalidSubTaskCount

public int getInvalidSubTaskCount()
Specified by:
getInvalidSubTaskCount in interface BulkEditBean

getRetainValues

public Set<String> getRetainValues()
Specified by:
getRetainValues in interface BulkEditBean

setRetainValues

public void setRetainValues(Set<String> retainValues)
Specified by:
setRetainValues in interface BulkEditBean

addRetainValue

public void addRetainValue(String fieldId)
Specified by:
addRetainValue in interface BulkEditBean

getSubTaskOfSelectedIssues

public List<Issue> getSubTaskOfSelectedIssues()
Specified by:
getSubTaskOfSelectedIssues in interface BulkEditBean

setSubTaskOfSelectedIssues

public void setSubTaskOfSelectedIssues(List<Issue> subTaskOfSelectedIssues)
Specified by:
setSubTaskOfSelectedIssues in interface BulkEditBean

getIssuesFromSearchRequest

public List<Issue> getIssuesFromSearchRequest()
Specified by:
getIssuesFromSearchRequest in interface BulkEditBean

setIssuesFromSearchRequest

public void setIssuesFromSearchRequest(List<Issue> issuesFromSearchRequest)
Specified by:
setIssuesFromSearchRequest in interface BulkEditBean

getCurrentStep

public int getCurrentStep()
Specified by:
getCurrentStep in interface BulkEditBean

setCurrentStep

public void setCurrentStep(int currentStep)
Specified by:
setCurrentStep in interface BulkEditBean

getActions

public Map<String,BulkEditAction> getActions()
Specified by:
getActions in interface BulkEditBean

setActions

public void setActions(Map<String,BulkEditAction> actions)
Specified by:
setActions in interface BulkEditBean

getFieldValues

public Map<String,Object> getFieldValues()
Specified by:
getFieldValues in interface BulkEditBean

getFieldValuesHolder

public Map<String,Object> getFieldValuesHolder()
Specified by:
getFieldValuesHolder in interface OperationContext
Specified by:
getFieldValuesHolder in interface BulkEditBean

getIssueOperation

public IssueOperation getIssueOperation()
Specified by:
getIssueOperation in interface OperationContext
Specified by:
getIssueOperation in interface BulkEditBean

getIssuesInUse

public Collection<?> getIssuesInUse()
Specified by:
getIssuesInUse in interface BulkEditBean

getSubTaskBulkEditBean

public BulkEditBean getSubTaskBulkEditBean()
Specified by:
getSubTaskBulkEditBean in interface BulkEditBean

setSubTaskBulkEditBean

public void setSubTaskBulkEditBean(BulkEditBean subTaskBulkEditBean)
Specified by:
setSubTaskBulkEditBean in interface BulkEditBean

getRelatedMultiBulkMoveBean

public MultiBulkMoveBean getRelatedMultiBulkMoveBean()
Specified by:
getRelatedMultiBulkMoveBean in interface BulkEditBean

setRelatedMultiBulkMoveBean

public void setRelatedMultiBulkMoveBean(MultiBulkMoveBean relatedMultiBulkMoveBean)
Specified by:
setRelatedMultiBulkMoveBean in interface BulkEditBean

isSendBulkNotification

public boolean isSendBulkNotification()
Specified by:
isSendBulkNotification in interface BulkEditBean

setSendBulkNotification

public void setSendBulkNotification(boolean sendBulkNotification)
Specified by:
setSendBulkNotification in interface BulkEditBean

getWorkflowTransitionMap

public org.apache.commons.collections.MultiMap getWorkflowTransitionMap()
Specified by:
getWorkflowTransitionMap in interface BulkEditBean

setWorkflowTransitionMap

public void setWorkflowTransitionMap(org.apache.commons.collections.MultiMap workflowTransitionMap)
Specified by:
setWorkflowTransitionMap in interface BulkEditBean

getWorkflowsInUse

public Set<String> getWorkflowsInUse()
Specified by:
getWorkflowsInUse in interface BulkEditBean

getTransitionIdsForWorkflow

public List<WorkflowTransitionKey> getTransitionIdsForWorkflow(String workflowName)
Specified by:
getTransitionIdsForWorkflow in interface BulkEditBean

getTransitionName

public String getTransitionName(String workflowName,
                                String actionDescriptorId)
Specified by:
getTransitionName in interface BulkEditBean

getTransitionIssueKeys

public List<String> getTransitionIssueKeys(WorkflowTransitionKey workflowTransitionKey)
Specified by:
getTransitionIssueKeys in interface BulkEditBean

setSelectedWFTransitionKey

public void setSelectedWFTransitionKey(WorkflowTransitionKey workflowTransitionKey)
Specified by:
setSelectedWFTransitionKey in interface BulkEditBean

getSelectedWFTransitionKey

public WorkflowTransitionKey getSelectedWFTransitionKey()
Specified by:
getSelectedWFTransitionKey in interface BulkEditBean

resetWorkflowTransitionSelection

public void resetWorkflowTransitionSelection()
Specified by:
resetWorkflowTransitionSelection in interface BulkEditBean

isTransitionChecked

public boolean isTransitionChecked(WorkflowTransitionKey workflowTransitionKey)
Specified by:
isTransitionChecked in interface BulkEditBean

getSelectedTransitionName

public String getSelectedTransitionName()
Specified by:
getSelectedTransitionName in interface BulkEditBean

setFieldScreenRenderer

public void setFieldScreenRenderer(FieldScreenRenderer fieldScreenRenderer)
Specified by:
setFieldScreenRenderer in interface BulkEditBean

getFieldScreenRenderer

public FieldScreenRenderer getFieldScreenRenderer()
Specified by:
getFieldScreenRenderer in interface BulkEditBean

_setSelectedIssueGVsForTesting

@Deprecated
public void _setSelectedIssueGVsForTesting(List<org.ofbiz.core.entity.GenericValue> issues)
Deprecated. 

Use for testing ONLY

Parameters:
issues -

getMessagedFieldLayoutItems

public Map<?,?> getMessagedFieldLayoutItems()
Specified by:
getMessagedFieldLayoutItems in interface BulkEditBean

setMessagedFieldLayoutItems

public void setMessagedFieldLayoutItems(Map<?,?> messagedFieldLayoutItems)
Specified by:
setMessagedFieldLayoutItems in interface BulkEditBean

initMultiBulkBean

public void initMultiBulkBean()
Specified by:
initMultiBulkBean in interface BulkEditBean

initMultiBulkBeanWithSubTasks

public void initMultiBulkBeanWithSubTasks()
Specified by:
initMultiBulkBeanWithSubTasks in interface BulkEditBean

isOnlyContainsSubTasks

public boolean isOnlyContainsSubTasks()
Specified by:
isOnlyContainsSubTasks in interface BulkEditBean

setParentBulkEditBean

public void setParentBulkEditBean(BulkEditBean parentBulkEditBean)
If this BulkEditBean contains subtasks of another BulkEditBean, then we can set a pointer back to the BulkEditBean containing the parent issues. This is used so that the subtask issues have access to the new values in their parent issues. See JRA-13937 where we had to ensure that the subtasks in a Bulk Move could get to the new Security Level of their parents.

Specified by:
setParentBulkEditBean in interface BulkEditBean
Parameters:
parentBulkEditBean - The BulkEditBean that contains parent issues of the issues (subtasks) in this BulkEditBean.

getMaxIssues

public int getMaxIssues()
If there is a limit on the number of issues that can be bulk edited, this will return that number, otherwise -1.

Specified by:
getMaxIssues in interface BulkEditBean
Returns:
-1 to indicate no limit on bulk editing issues, otherwise the number of the limit.

setMaxIssues

public void setMaxIssues(int maxIssues)
Sets the maximum number of issues allowed to be bulk edited at once. Use -1 to indicate no limit.

Specified by:
setMaxIssues in interface BulkEditBean
Parameters:
maxIssues - either -1 or a positive integer representing the maximum number of issues allowed for bulk edit.

getFieldSubstitutionMap

public Map<String,Map<Long,Long>> getFieldSubstitutionMap()
Specified by:
getFieldSubstitutionMap in interface BulkEditBean


Copyright © 2002-2013 Atlassian. All Rights Reserved.