Package com.atlassian.jira.web.bean
Interface BulkEditBean
- All Superinterfaces:
OperationContext
,SingleIssueModeEditBean
- All Known Implementing Classes:
BulkEditBeanImpl
Used in the BulkEdit Wizard
Stores in session:
currentStep
action selected and values associated with that action
issues selected
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAvailablePreviousStep
(int stepId) void
addIssues
(Collection<Issue> issues) void
addRetainValue
(String fieldId) void
addTransitionErrors
(String issueKey, Collection<String> errors) void
Deprecated.Since 7.1.ReturnsBulkEditMultiSelectFieldBean
which stores change mode options for system fields with multiple change modes configured.getCheckboxName
(Issue issue) int
Deprecated.Since 7.1.getCustomField
(String customFieldKey) getCustomFieldView
(CustomField customField) Returns all the unique field layouts of the selected issuesThis method is used to get a target issue that will provide the correct context (i.e.Gets issues whose status is nullCollection<org.ofbiz.core.entity.GenericValue>
Gets a set of invalid statuses that are not valid in the destination workflowint
getInvalidSubTaskStatusesByType
(String subTaskTypeId) Collection<?>
getKey()
Returns a string that represents a "unique" identifier for this bulke edit beanint
If there is a limit on the number of issues that can be bulk edited, this will return that number, otherwise -1.Map<?,
?> Collection<?>
Gets the destination parent issue for issue->subtask conversion.returns object from database, the object is queried bygetParentIssueKey()
.Deprecated.UsegetSingleProject()
instead.returns a list of project ids for projects which the currently selected issues belong to.Collection<org.ofbiz.core.entity.GenericValue>
Deprecated.UsegetProjectObjects()
instead.Returns the redirect URL.Collection<?>
Deprecated.Since 7.1.Deprecated.Since 7.1.Returns the single Project if there is only one Project in this BulkEditBean, otherwise throws an IllegalStateException.Deprecated.Since 7.1.getTargetFieldLayoutForType
(String targetTypeId) List<org.ofbiz.core.entity.GenericValue>
This is a convinience method for converting the list of objects to a list of GenericValuesgetTargetStatus
(Issue issue) getTargetStatusObject
(Issue issue) Deprecated.getTargetWorkflowByType
(String issueTypeId) getTransitionErrors
(Integer maxCount) Get the transition errors after bulk issue transitiongetTransitionIdsForWorkflow
(String workflowName) getTransitionIssueKeys
(WorkflowTransitionKey workflowTransitionKey) getTransitionName
(String workflowName, String actionDescriptorId) org.apache.commons.collections.MultiMap
void
void
void
initSelectedIssues
(Collection<Issue> selectedIssues) Deprecated.Since 7.1.boolean
isAvailablePreviousStep
(int stepId) boolean
boolean
Check if a mail server has been specified.boolean
boolean
boolean
boolean
Whether the URL to return to has been set yet.boolean
isRetainChecked
(String fieldId) boolean
boolean
Since 8.1.boolean
Since 8.1.boolean
boolean
boolean
isTranisitionErrorsLimited
(Integer maxCount) boolean
isTransitionChecked
(WorkflowTransitionKey workflowTransitionKey) void
void
void
void
void
setActions
(Map<String, BulkEditAction> actions) Deprecated.Since 7.1.void
setCurrentStep
(int currentStep) Deprecated.Since 7.1.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
setIssuesToSubtasks
(Map<Long, List<Issue>> issuesToSubtasks) 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
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
setParentIssueKey
(String parentIssueKey) Sets the destination parent issue for issue->subtask conversion.void
setRedirectUrl
(String redirectUrl) Sets the URL to which user should be redirected once the bulk operation is finished.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) Deprecated.Since 7.1.void
Sets the targetFieldLayout to the appropriate FieldLayout (aka "Field Configuration"); for the target Project and Issue Type.void
setTargetIssueObjects
(Map<Issue, Issue> targetIssueObjects) void
void
setTargetProject
(Project project) void
setTargetProject
(org.ofbiz.core.entity.GenericValue project) Deprecated.UsesetTargetProject(com.atlassian.jira.project.Project)
instead.void
setWorkflowTransitionMap
(org.apache.commons.collections.MultiMap workflowTransitionMap) Methods inherited from interface com.atlassian.jira.web.bean.SingleIssueModeEditBean
getSingleIssueKey, isSingleMode, setSingleIssueKey
-
Field Details
-
SUBTASK_STATUS_INFO
- See Also:
-
BULK_MOVE_OP
- See Also:
-
BULK_DELETE_OP
- See Also:
-
BULK_EDIT_OP
- See Also:
-
BULK_DELETE
- See Also:
-
BULKEDIT_PREFIX
- See Also:
-
-
Method Details
-
getParentBulkEditBean
BulkEditBean getParentBulkEditBean() -
initSelectedIssues
Deprecated.Since 7.1. Storing this on the httpsession does not work for cloud. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0.Initialises theBulkEditBean
with the selected issues- Parameters:
selectedIssues
- Required selected Issues.
-
addIssues
-
getSelectedIssues
Deprecated.Since 7.1. Storing this on the httpsession does not work for cloud. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0.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.
- Returns:
- List of the Selected Issues
-
getSelectedIssuesIncludingSubTasks
Deprecated.Since 7.1. Storing this on the httpsession does not work for cloud. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. -
isChecked
-
isMultipleProjects
boolean isMultipleProjects() -
isMutipleIssueTypes
boolean isMutipleIssueTypes() -
getProject
Project getProject()Deprecated.UsegetSingleProject()
instead. Since v5.2. -
getSingleProject
Project getSingleProject()Returns the single Project if there is only one Project in this BulkEditBean, otherwise throws an IllegalStateException.- Returns:
- the single Project if there is only one Project in this BulkEditBean, otherwise throws an IllegalStateException.
- See Also:
-
getIssueType
IssueType getIssueType() -
getFieldLayouts
Collection<FieldLayout> getFieldLayouts()Returns all the unique field layouts of the selected issues- Returns:
- Collection of the FieldLayouts.
-
getKey
String getKey()Returns a string that represents a "unique" identifier for this bulke edit bean- Returns:
- unique key formed from projects, issue types, target project if a subtask only bulkeditbean and size of the bean
-
getProjectIds
Collection<Long> getProjectIds()returns a list of project ids for projects which the currently selected issues belong to.- Returns:
- A list of project ids for projects which the currently selected issues belong to.
-
getProjects
Deprecated.UsegetProjectObjects()
instead. Since v5.2.- Returns:
-
getProjectObjects
Collection<Project> getProjectObjects() -
getIssueTypes
Collection<String> getIssueTypes() -
getIssueTypeObjects
Collection<IssueType> getIssueTypeObjects() -
getParentIssueKeys
Collection<String> getParentIssueKeys() -
getParentIssueIds
Collection<Long> getParentIssueIds() -
getCheckboxName
-
getCustomField
CustomField getCustomField(String customFieldKey) throws org.ofbiz.core.entity.GenericEntityException - Throws:
org.ofbiz.core.entity.GenericEntityException
-
getCustomFieldView
- Throws:
FieldValidationException
-
setParams
-
getParams
-
setIssuesInUse
-
addAvailablePreviousStep
void addAvailablePreviousStep(int stepId) -
clearAvailablePreviousSteps
void clearAvailablePreviousSteps() -
isAvailablePreviousStep
boolean isAvailablePreviousStep(int stepId) -
isHasMailServer
boolean isHasMailServer()Check if a mail server has been specified.- Returns:
- boolean true if a mail server has been specified
-
getMoveFieldLayoutItems
Collection<?> getMoveFieldLayoutItems() -
setMoveFieldLayoutItems
-
getTargetPid
Long getTargetPid() -
setTargetProject
void setTargetProject(org.ofbiz.core.entity.GenericValue project) Deprecated.UsesetTargetProject(com.atlassian.jira.project.Project)
instead. Since v5.2. -
setTargetProject
-
getTargetProject
Project getTargetProject() -
setTargetIssueTypeId
-
getTargetIssueTypeId
String getTargetIssueTypeId() -
getTargetIssueType
IssueType getTargetIssueType() -
getTargetIssueTypeObject
IssueType getTargetIssueTypeObject() -
populateStatusHolder
- Throws:
WorkflowException
-
getInvalidStatuses
Gets a set of invalid statuses that are not valid in the destination workflow- Returns:
- Set of
GenericValue
objects - Throws:
WorkflowException
-
getInvalidIssues
Gets issues whose status is null- Returns:
- Set of
Issue
objects. Emoty Set if no invalid issues - Throws:
WorkflowException
-
getInvalidSubTaskTypes
- Throws:
WorkflowException
-
getInvalidSubTaskStatusesByType
- Throws:
WorkflowException
-
setTargetFieldLayout
void setTargetFieldLayout()Sets the targetFieldLayout to the appropriate FieldLayout (aka "Field Configuration"); for the target Project and Issue Type. -
getTargetFieldLayout
FieldLayout getTargetFieldLayout() -
getTargetFieldLayoutForType
-
getTargetWorkflow
- Throws:
WorkflowException
-
getFirstTargetIssueObject
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.- Returns:
- an issue whose project and issue type are of where the you are moving to.
-
getTargetIssueObjects
-
setTargetIssueObjects
-
getTargetIssueGVs
List<org.ofbiz.core.entity.GenericValue> getTargetIssueGVs()This is a convinience method for converting the list of objects to a list of GenericValues- Returns:
- list of GenericValue issue objects
-
getTargetStatusObject
Deprecated.UsegetTargetStatusObject(com.atlassian.jira.issue.Issue)
instead. Since v7.0 -
getTargetStatus
-
getStatusMapHolder
-
getRemovedFields
Collection<?> getRemovedFields() -
setRemovedFields
-
resetMoveData
void resetMoveData() -
populateSubTaskStatusHolder
- Throws:
WorkflowException
-
getTargetWorkflowByType
- Throws:
WorkflowException
-
getSubTaskStatusHolder
Collection<String> getSubTaskStatusHolder() -
isRetainChecked
-
isSubTaskCollection
boolean isSubTaskCollection() -
isSubTaskOnly
boolean isSubTaskOnly() -
getOperationName
String getOperationName() -
setOperationName
-
setInvalidSubTaskStatusesByType
-
setInvalidSubTaskTypes
-
getInvalidSubTaskCount
int getInvalidSubTaskCount() -
getRetainValues
-
setRetainValues
-
addRetainValue
-
isServiceDeskProjectIssuesPresent
@ExperimentalApi boolean isServiceDeskProjectIssuesPresent()Since 8.1. Returns true if any of selected issues belong to ServiceDesk project types -
isSoftwareProjectIssuesPresent
@ExperimentalApi boolean isSoftwareProjectIssuesPresent()Since 8.1. Returns true if any of selected issues belong to Software project types -
getSubTaskOfSelectedIssues
Deprecated.Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. -
setSubTaskOfSelectedIssues
Deprecated.Since 7.1. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. -
getIssuesToSubtasks
-
setIssuesToSubtasks
-
getIssuesFromSearchRequest
-
setIssuesFromSearchRequest
-
getCurrentStep
Deprecated.Since 7.1. Storing this on the httpsession does not work for cloud. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. -
setCurrentStep
Deprecated.Since 7.1. Storing this on the httpsession does not work for cloud. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. -
getActions
Deprecated.Since 7.1. Storing this on the httpsession does not work for cloud. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. -
setActions
Deprecated.Since 7.1. Storing this on the httpsession does not work for cloud. Storing information on the httpsession is obsoleted. Please move this functionality to the frontend or other type of storage. This method will be removed in 8.0. -
getFieldValues
-
getFieldValuesHolder
- Specified by:
getFieldValuesHolder
in interfaceOperationContext
-
getIssueOperation
IssueOperation getIssueOperation()- Specified by:
getIssueOperation
in interfaceOperationContext
-
getIssuesInUse
Collection<?> getIssuesInUse() -
getSubTaskBulkEditBean
BulkEditBean getSubTaskBulkEditBean() -
setSubTaskBulkEditBean
-
getRelatedMultiBulkMoveBean
MultiBulkMoveBean getRelatedMultiBulkMoveBean() -
setRelatedMultiBulkMoveBean
-
isSendBulkNotification
boolean isSendBulkNotification() -
setSendBulkNotification
void setSendBulkNotification(boolean sendBulkNotification) -
getWorkflowTransitionMap
org.apache.commons.collections.MultiMap getWorkflowTransitionMap() -
setWorkflowTransitionMap
void setWorkflowTransitionMap(org.apache.commons.collections.MultiMap workflowTransitionMap) -
getWorkflowsInUse
-
getTransitionIdsForWorkflow
-
getTransitionName
-
getTransitionIssueKeys
-
setSelectedWFTransitionKey
-
getSelectedWFTransitionKey
WorkflowTransitionKey getSelectedWFTransitionKey() -
resetWorkflowTransitionSelection
void resetWorkflowTransitionSelection() -
isTransitionChecked
-
getSelectedTransitionName
String getSelectedTransitionName() -
setFieldScreenRenderer
-
getFieldScreenRenderer
FieldScreenRenderer getFieldScreenRenderer() -
getMessagedFieldLayoutItems
Map<?,?> getMessagedFieldLayoutItems() -
setMessagedFieldLayoutItems
-
initMultiBulkBean
void initMultiBulkBean() -
initMultiBulkBeanWithSubTasks
void initMultiBulkBeanWithSubTasks() -
isOnlyContainsSubTasks
boolean isOnlyContainsSubTasks() -
getTransitionErrors
Get the transition errors after bulk issue transition- Parameters:
maxCount
- max count of errors to return ornull
for no limits.- Returns:
- transition errors after bulk issue transition
-
addTransitionErrors
-
isTranisitionErrorsLimited
- Returns:
true
if there is more errors on transitioned issues thanmaxCount
.
-
setParentBulkEditBean
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.- Parameters:
parentBulkEditBean
- The BulkEditBean that contains parent issues of the issues (subtasks); in this BulkEditBean.
-
getMaxIssues
int getMaxIssues()If there is a limit on the number of issues that can be bulk edited, this will return that number, otherwise -1.- Returns:
- -1 to indicate no limit on bulk editing issues, otherwise the number of the limit.
-
setMaxIssues
void setMaxIssues(int maxIssues) Sets the maximum number of issues allowed to be bulk edited at once. Use -1 to indicate no limit.- Parameters:
maxIssues
- either -1 or a positive integer representing the maximum number of issues allowed for bulk edit.
-
getFieldSubstitutionMap
-
getRedirectUrl
String getRedirectUrl()Returns the redirect URL. SeesetRedirectUrl(String)
. -
setRedirectUrl
Sets the URL to which user should be redirected once the bulk operation is finished. This is used only if a progress indicator is displayed to the user while the operation is being executed. -
isRedirectUrlSet
boolean isRedirectUrlSet()Whether the URL to return to has been set yet.- Returns:
- true if
setRedirectUrl(String)
has been called before.
-
getBulkEditMultiSelectFieldBean
ReturnsBulkEditMultiSelectFieldBean
which stores change mode options for system fields with multiple change modes configured.- Returns:
BulkEditMultiSelectFieldBean
for bulk edit operation- Since:
- v6.4
-
getParentIssueKey
Gets the destination parent issue for issue->subtask conversion.- Returns:
- Destination parent issue key
- Since:
- 7.0
-
setParentIssueKey
Sets the destination parent issue for issue->subtask conversion.- Parameters:
parentIssueKey
- Parent issue key- Since:
- 7.0
-
getParentIssueObject
returns object from database, the object is queried bygetParentIssueKey()
.- Returns:
Issue
obtained from database, queried bygetParentIssueKey()
.- Since:
- 7.0
-